I recently bought a Yubikey 5 USB-C/NFC and use it both in Windows 10 and Ubuntu 22.04 on my Framework Laptop.
When plugging it in while on Windows, the device detection is very fast, without error and I can immediately generate the key upon Yubikey button press. But on Ubuntu, it frequently (not always) takes the device around 10 sec to be detected and for me to be able to generate any keys. Which is a bit annoying, when I quickly want to login.
In the logs, Ubuntu returns a number of generic USB error messages:
21:56:05 kernel: usb usb2-port2: unable to enumerate USB device
21:56:05 kernel: usb usb2-port2: unable to enumerate USB device
21:56:05 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
21:56:01 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
21:55:57 kernel: usb usb2-port2: attempt power cycle
21:55:57 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
21:55:53 kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
Obviously, it’s not a huge problem but I still would like to know whats the issue here. So far I’ve tentatively excluded faulty USB-C hardware (Framework USB-C dongles) and a faulty Yubikey, since it works perfectly in Windows. So I was wondering, if anybody else has experienced said issue on Ubuntu 22.04 to solidify the assumption it’s a software issue in Ubuntu.