-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hidapi-libusb don't reattach kernel driver #305
Comments
And what happens when the application crashes or otherwise exits uncleanly? There's no way to ensure that it's ever actually done. HIDAPI is for custom devices. If you have a custom device that you made that you're making the software for, then the default kernel driver won't be of much help. |
Hello, I encounter the same problem, my mouse and my keyboard are stuck when I try to use libusb_attach_kernel_driver(dev->device_handle, dev->interface); Is it intended that you do not reattach the device to the kernel at any moment in the code ? |
hidapi with libusb backend detach device kernel driver in hid_open, but don't reattach it in hid_close. It needs to either call libusb_attach_kernel_driver or use libusb_set_auto_detach_kernel_driver to make libusb automatically detach/attach driver in libusb_claim_interface/libusb_release_interface.
The text was updated successfully, but these errors were encountered: