Yubico Forum
https://forum.yubico.com/

Yubikey blinks when plugged in on Linux
https://forum.yubico.com/viewtopic.php?f=4&t=120
Page 1 of 1

Author:  Sam [ Thu Jun 26, 2008 7:17 pm ]
Post subject:  Yubikey blinks when plugged in on Linux

I have a typical Ubuntu 8.04 installation on my laptop. My normal behaviour is to put the laptop into hibernation when I am done working. Once the system has been brought back to life I noticed the Yubikey has trouble being recognized as a device. To fix this I simply run the command 'lsusb', which seems to bring the USB hub (within the laptop) back into being powered. After a second the Yubikey stops blinking and works as expected.

This is a bug with the hibernation mode, not the Yubikey. Hopefully this helps others like me who run across this situation.

Author:  paul [ Thu Jun 26, 2008 8:59 pm ]
Post subject:  Re: Yubikey blinks when plugged in on Linux

This is very helpful! I wonder if I can just unplug Yubikey then plug in again to fix the problem?

Thanks

Author:  Sam [ Fri Jun 27, 2008 12:08 am ]
Post subject:  Re: Yubikey blinks when plugged in on Linux

Re-inserting the Yubikey does not work.

Once 'lsusb' has run, /var/log/messages shows the following:

Code:
Jun 26 19:05:51 grey-ghost kernel: [  145.486053] usb usb2: root hub lost power or was reset
Jun 26 19:05:52 grey-ghost kernel: [  145.909366] usb 2-2: new low speed USB device using ohci_hcd and address 5
Jun 26 19:05:52 grey-ghost kernel: [  329.042193] usb 2-2: configuration #1 chosen from 1 choice
Jun 26 19:05:52 grey-ghost kernel: [  329.068190] input: Yubico Yubico Yubikey Touch as /devices/pci0000:00/0000:00:03.1/usb2/2-2/2-2:1.0/input/input18
Jun 26 19:05:52 grey-ghost kernel: [  329.099129] input,hidraw0: USB HID v1.11 Keyboard [Yubico Yubico Yubikey Touch] on usb-0000:00:03.1-2
Jun 26 19:05:52 grey-ghost kernel: [  329.154964] usb usb1: root hub lost power or was reset


I wouldn't know if this is chipset-specific or a general kernel bug.

Author:  paul [ Fri Jun 27, 2008 8:50 pm ]
Post subject:  Re: Yubikey blinks when plugged in on Linux

If you use a memory stick instead of a YubiKey, will that suffer the same problem? I'll ask our h/w firmware expert to look into this.

Thanks
:geek:

Author:  Simon [ Mon Jun 30, 2008 3:08 pm ]
Post subject:  Re: Yubikey blinks when plugged in on Linux

I use debian testing, and haven't noticed this problem. I suspect it is due to some combination of linux kernel or USB hardware, or possibly other software.

Does this happen if the yubikey is the only USB device in your machine? And if you don't have it connected, it works again without doing 'lsusb'?

It is somewhat surprising that 'lsusb' changes anything, I thought it just read information from /proc/bus/usb/...

/Simon

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/