I tried using the workaround described here:
http://code.google.com/p/yubikey-core/s ... rounds.txtHowever, 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.