Yubico Forum https://forum.yubico.com/ |
|
libusb claim interface quirk not working on Ubuntu. https://forum.yubico.com/viewtopic.php?f=16&t=328 |
Page 1 of 1 |
Author: | btimby [ Tue May 19, 2009 3:30 pm ] |
Post subject: | libusb claim interface quirk not working on Ubuntu. |
I tried using the workaround described here: http://code.google.com/p/yubikey-core/s ... rounds.txt However, this does not work on my system (Ubuntu 9.04). After some investigation, I was able to unbind the usbhid driver using the following commands. # sudo su - # dmesg | grep Yubi [314508.442312] input: Yubico Yubico Yubikey Touch as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input119 [314508.448287] generic-usb 0003:1050:0010.006F: input,hidraw1: USB HID v1.11 Keyboard [Yubico Yubico Yubikey Touch] on usb-0000:00:1d.2-1/input0 # echo 4-1:1.0 > /sys/bus/usb/drivers/usbhid/unbind Also, I wonder if anyone has looked at replacing the use of libusb with libhid, it seems to have a hid_force_open() which will accomplish the unbinding automatically. Once done programming, the user could reset the usb device to reattach it to the hid driver to send OTP. |
Author: | levitte [ Sun May 24, 2009 9:54 am ] |
Post subject: | Re: libusb claim interface quirk not working on Ubuntu. |
I recently had a quick look at the libhid on Debian, and what I get is that it wouldn't give more than libusb already does: Quote: Package: libhid0 Priority: optional Section: libs Installed-Size: 96 Maintainer: martin f. krafft <madduck@debian.org> Architecture: i386 Source: libhid Version: 0.2.15+20060325-2.2 Depends: libc6 (>= 2.7-1), libusb-0.1-4 (>= 2:0.1.12) Filename: pool/main/libh/libhid/libhid0_0.2.15+20060325-2.2_i386.deb Size: 29014 MD5sum: 1dfa6be2c1f1947626081b60b76c8b4c SHA1: 18793b8c254086ce63ed474a082c430925131fd5 SHA256: b627ca336f155e0d80bf0ee423cac93b0a7aa8206904e9b246a75072f789f905 Description: userspace USB HID access library libhid provides a generic and flexible way to access and interact with USB HID devices, much like libusb does for plain USB devices. It is based on libusb, thus it requires no HID support in the kernel and provides means to take control over a device even if the kernel governs it. . This package provides the runtime library for libhid. Is there more than one libhid for Linux that I would need to know about? Cheers, Richard |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |