Some Bits: Nelson's log

Rii K22 keyboard reset for Linux

I bought a cheap-but-nice wireless keyboard for occasional use. It works great in the system BIOS (with 2.4GHz) and Windows, but not in Linux. It’d connect but not let me type. Whether connected via 2.4Ghz or Bluetooth.

Turns out this is a known problem with a workaround.

Apparently in this state the keyboard is basically working but somehow the driver didn’t get initialized right and so keyboard and mouse events don’t come through. The workaround is to unbind and rebind the HID just after it’s plugged in using commands like echo 1-2.1.2:1.0 > /sys/bus/usb/drivers/usbhid/bind

I tried a scattershot version of this and it worked once. The permanent fix is to add something to udev that does the unbind/rebind trick when it detects the device is activated. Yuck!

Full details at https://forums.raspberrypi.com/viewtopic.php?t=397618