|libusb claim interface quirk not working on Ubuntu.
|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:
Maintainer: martin f. krafft <firstname.lastname@example.org>
Depends: libc6 (>= 2.7-1), libusb-0.1-4 (>= 2:0.1.12)
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?
|Page 1 of 1||All times are UTC + 1 hour|
|Powered by phpBB® Forum Software © phpBB Group