In the 0.10.1 API, there is a UsbInterfacePolicy that you can pass to the 
UsbInterface when claiming it, set the UsbInterfacePolicy.forceClaim() 
method to return true, and the Linux 0.10.2 implementation will remove the 
existing driver from the interface and let you claim it.  You need either 
a kernel 2.4.23-pre2 or later, or patch your kernel with this patch:

http://marc.theaimsgroup.com/?l=linux-usb-devel&m=106158782118849&w=2


On Fri, 10 Oct 2003, Aaron Metzger wrote:

>
>This is a usability question in a Linux environment more than it is an 
>API question.
>
>My experience is that I can't "claim" any device with javax-usb that 
>has already been claimed by the Linux kernel drivers.  Unfortunately, 
>the Linux HID driver claims a lot of devices including the one that I 
>would like to control from Java.
>
>Does anyone have any advice as to how to forcefully claim a device 
>from Java or how to prevent the Linux HID driver from claiming one 
>particular HID device out of the many attached to my system?  I'm 
>ready to start hacking hid-core.c unless someone has a more elegant 
>solution.
>
>Thanks in advance for any info.
>
>--
>Aaron
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: SF.net Giveback Program.
>SourceForge.net hosts over 70,000 Open Source Projects.
>See the people who have HELPED US provide better services:
>Click here: http://sourceforge.net/supporters.php
>_______________________________________________
>javax-usb-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>

-- 
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to