I've tested udev and it works. udev rule is the good walk around for now..<br><br>JAK<br><br><div class="gmail_quote">On Thu, Jul 9, 2009 at 5:14 PM, Greg KH <span dir="ltr"><<a href="mailto:greg@kroah.com">greg@kroah.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, Jul 09, 2009 at 11:54:53PM +0100, Dan wrote:<br>
> Roberto De Ioris wrote:<br>
> > I do not know why hp and samsung has made this decision, but on linux is<br>
> > a pain in the ass setting a configuration for usb devices as the host<br>
> > controller driver get the most useful one using an (IMHO totally wrong)<br>
> > algorithm.<br>
> ><br>
> > The only (raw) solution i found is to unload the usbhid module, then set<br>
> > the first configuration for the usb device using /sys (look for the file<br>
> > bConfigurationValue, it must contain '1' and not '2') and then reload<br>
> > the displaylink module.<br>
> ><br>
> > I must admit that i have no experience on multiple configuration usb<br>
> > device, so probably someone could point me to a real solution.<br>
> ><br>
> Bernie's given a very thorough rationale for the basis of this design -<br>
> it does make a bit harder for linux unfortunately.<br>
><br>
> The libdlo code calls usb_detach_kernel_driver_np, this in turn calls<br>
> <a href="http://lxr.linux.no/linux+v2.6.30/drivers/usb/core/devio.c#L1465" target="_blank">http://lxr.linux.no/linux+v2.6.30/drivers/usb/core/devio.c#L1465</a> .<br>
><br>
> Maybe you can use this code? As a VID/PID match your probe call should<br>
> trump the HID class driver, and when the driver loads it should be able<br>
> to dislodge an existing driver.<br>
<br>
</div>Nope, Linux doesn't work that way :(<br>
<br>
We need to patch the hid driver and add these devices to the blacklist.<br>
Hopefully displaylink will provide me a list of the ids to blacklist and<br>
that will solve the problem.<br>
<br>
thanks,<br>
<br>
greg k-h<br>
<div><div></div><div class="h5">_______________________________________________<br>
Libdlo mailing list<br>
<a href="mailto:Libdlo@lists.freedesktop.org">Libdlo@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libdlo" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libdlo</a><br>
</div></div></blockquote></div><br>