Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 5:40 pm

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue May 19, 2009 3:30 pm 

Joined: Tue May 19, 2009 3:26 pm
Posts: 5
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.

Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Sun May 24, 2009 9:54 am 
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:

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?


Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 5 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group