Just got a new wireless keyboard because my previous one was having connectivity problems. The new one is having similar issues, so I suspect the culprit may actually have been software all along.
This keyboard has one feature that may be helpful in troubleshooting: it flashes an LED when it’s trying to reconnect. (The previous one had no indicator.) I can clearly see that, after the keyboard has been idle for a bit, it starts trying to reconnect again. I suspected a power management issue, but I believe I’ve disabled that. I started with a rule in /etc/udev/rules.d/:
I got the IDs with lsusb. I’m assuming the part of the ID before the colon is the vendo ID and the part after is the product ID.
That didn’t seem to help at all, so I tried disabling USB power management with rpm-ostree kargs --append-if-missing="usbcore.autosuspend=-1". That made the problem better, but now it just seems to take longer for the keyboard to lose connectivity.
I’ve kept going since posting this, still without a resolution. Wanted to share what I’ve tried and a few other notes.
I’ve tried changing USB ports, and that doesn’t seem to help.
I don’t think this is a 2.4GHz wireless interference issue because my 2.4GHz mouse is reasonably reliable. If there were interference, I would think I would also have issues with it.
I’ve looked at dmesg, and it doesn’t show any new log entries when the keyboard loses connectivity.
Disconnecting and reconnecting the dongle fixes the problem… until the keyboard loses connectivity again.
The keyboard does not seem to lose connectivity when connected up to my macOS system.
I’ve tried powertop to see if anything up the chain still has autosuspend enabled. Went through tunables and disabled power management (i.e., toggled to “Bad”) for both of the xHCI host controllers just in case that might cause it, but it didn’t help.
Not sure where to go next with this one, but it’s really annoying.
Rii is a brand, I was just checking as I have a couple of these and they suck badly and do a very similar thing, they just go to sleep after 10mins and need to wake up and connect again when you go to use them again, so the first 3 letters typed are not registered, real annoying, but this experience is the same, Linux and Windows, haven’t tested on Mac though.
I’m also having this issue and I do have some logs in dmesg:
$ sudo dmesg | grep 1-9
[ 1.523523] usb 1-9: new full-speed USB device number 4 using xhci_hcd
[ 1.649896] usb 1-9: New USB device found, idVendor=1915, idProduct=1025, bcdDevice= 1.00
[ 1.649901] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.649902] usb 1-9: Product: Smart Control
[ 1.649903] usb 1-9: Manufacturer: 123 COM
[ 1.652291] input: 123 COM Smart Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.2/0003:1915:1025.0002/input/input7
[ 2.030278] input: 123 COM Smart Control Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.3/0003:1915:1025.0003/input/input8
[ 2.030340] input: 123 COM Smart Control Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.3/0003:1915:1025.0003/input/input9
[ 2.080660] input: 123 COM Smart Control System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.3/0003:1915:1025.0003/input/input10
[ 444.672862] usb 1-9: USB disconnect, device number 4
[ 445.136813] usb 1-9: new full-speed USB device number 7 using xhci_hcd
[ 445.249727] usb 1-9: device descriptor read/64, error -71
[ 445.469834] usb 1-9: device descriptor read/64, error -71
[ 445.686795] usb 1-9: new full-speed USB device number 8 using xhci_hcd
[ 445.798881] usb 1-9: device descriptor read/64, error -71
[ 446.015713] usb 1-9: device descriptor read/64, error -71
[ 446.496798] usb 1-9: new full-speed USB device number 9 using xhci_hcd
[ 446.496993] usb 1-9: Device not responding to setup address.
[ 446.701812] usb 1-9: Device not responding to setup address.
[ 446.909651] usb 1-9: device not accepting address 9, error -71
[ 446.909698] usb 1-9: WARN: invalid context state for evaluate context command.
[ 447.021766] usb 1-9: new full-speed USB device number 10 using xhci_hcd
[ 447.021998] usb 1-9: Device not responding to setup address.
[ 447.230993] usb 1-9: Device not responding to setup address.
[ 447.437767] usb 1-9: device not accepting address 10, error -71
[ 447.437802] usb 1-9: WARN: invalid context state for evaluate context command.
[ 2319.537779] usb 1-9: new full-speed USB device number 11 using xhci_hcd
[ 2319.665027] usb 1-9: New USB device found, idVendor=1915, idProduct=1025, bcdDevice= 1.00
[ 2319.665032] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2319.665033] usb 1-9: Product: Smart Control
[ 2319.665034] usb 1-9: Manufacturer: 123 COM
[ 2319.674120] input: 123 COM Smart Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.2/0003:1915:1025.0004/input/input27
[ 2319.759945] input: 123 COM Smart Control Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.3/0003:1915:1025.0005/input/input28
[ 2319.760152] input: 123 COM Smart Control Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.3/0003:1915:1025.0005/input/input29
[ 2319.810978] input: 123 COM Smart Control System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.3/0003:1915:1025.0005/input/input30
[ 2935.632573] usb 1-9: USB disconnect, device number 11
[ 2936.085420] usb 1-9: new full-speed USB device number 12 using xhci_hcd
[ 2936.197528] usb 1-9: device descriptor read/64, error -71
[ 2936.412422] usb 1-9: device descriptor read/64, error -71
[ 2936.628425] usb 1-9: new full-speed USB device number 13 using xhci_hcd
[ 2936.740392] usb 1-9: device descriptor read/64, error -71
[ 2936.956526] usb 1-9: device descriptor read/64, error -71
[ 2937.439471] usb 1-9: new full-speed USB device number 14 using xhci_hcd
[ 2937.439669] usb 1-9: Device not responding to setup address.
[ 2937.644664] usb 1-9: Device not responding to setup address.
[ 2937.852451] usb 1-9: device not accepting address 14, error -71
[ 2937.852496] usb 1-9: WARN: invalid context state for evaluate context command.
[ 2937.964340] usb 1-9: new full-speed USB device number 15 using xhci_hcd
[ 2937.964502] usb 1-9: Device not responding to setup address.
[ 2938.172667] usb 1-9: Device not responding to setup address.
[ 2938.380359] usb 1-9: device not accepting address 15, error -71
[ 2938.380407] usb 1-9: WARN: invalid context state for evaluate context command.
The lines before the first disconnect is on boot. After it disconnected I removed and replugged in the USB dongle and that is the lines [ 2319.xxx]. Then it disconnected again after that. No reboots in between. This is just an example of the wireless mouse/keyboard dongle but it’s also happening for the xbox controller dongle.