On 24/11/2013 00:58, "Xiaofan Chen" <xiaof...@gmail.com> wrote: > >What is the OS you are concerning here? > >And what do you mean by "detach the driver and >still open the device?" For example, under Linux, >you can detach the joystick driver and then use >libusb to open and operate on the device. But then >the original joystick function supported by the >joystick driver will be lost.
Thanks for answering and sorry for being unclear. This is/was on Linux (Lubuntu). I'm writing a generic library and using a cheap blue no brand game pad from China to test it. I can enumerate and find the device but when I try to open the device I get 13/EACCESS. If I run my code as root then I can open and use the device without any problems, so I guess this access rights problem, not os driver hogging it ? I've added the following udev rules: nyholku@KustinLubuntu:/media/psf/Home/hidapi/linux$ cat /etc/udev/rules.d/10-myrules.rules SUBSYSTEM=="usb", ATTRS{idVendor}=="0810", ATTRS{idProduct}=="0005", MODE="0666" KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="0810", ATTRS{idProduct}=="0005", MODE="0666" Also tried them with 99- prefix, but no joy. br Kusti This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general. ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel