Do you like hardcore Linux puzzles? Here is one I am unable to solve and it's ma...

@keeya@icy.arcticfluff.eu

Do you like hardcore Linux puzzles? Here is one I am unable to solve and it's making this fox so annoyed they are now writing a post about it! :neofoxshocked:

The short version: my USB keyboard is being reset constantly when there is heavy usage on other USB devices. Means you can't type because random key presses are not registered. It is triggered by running a backup to a USB3 disk and also by listening to music (but only in some players) on bluetooth :neofoxgoogly: headphones.

Why bluetooth you might ask (and I would look puzzled and ask too):

$ lsusb
[…]
Bus 003 Device 007: ID 8087:0026 Intel Corp. AX201 Bluetooth

Shitty intel card, that's why. :p Seriously, who designs a WiFi/BT card and creates this abomination? Intel AX210: System Interface Type: Wi-Fi(PCIe), BT(USB) Well yes, let's connect one function to PCIe and the other to USB! But that's for another rant.

The suspects involved: Debian 13 (6.12 kernel) and a CHERRY G80-3000N FL RGB Keyboard connected via USB port -> USB hub on the monitor -> device. I have connected it directly too, didn't make a difference.

The USB layout that is currently triggering it

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 003: ID 048d:6006 Integrated Technology Express, Inc. ITE Device(8291)
Bus 003 Device 005: ID 04f2:b71a Chicony Electronics Co., Ltd Integrated IR Camera
Bus 003 Device 006: ID 1e7d:2dcd ROCCAT ROCCAT Kone Pure Owl-Eye
Bus 003 Device 007: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 003 Device 008: ID 046a:00de CHERRY G80-3000N FL RGB Keyboard
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 1058:1078 Western Digital Technologies, Inc. Elements Portable (WDBUZG)

Seems every internal device is connected to the same but the disk is connected to a different bus so it's not overloading the bus or something I assume.

Here comes the plot twist:

/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/16p, 480M
    |__ Port 004: Dev 002, If 0, Class=Hub, Driver=hub/2p, 480M
        |__ Port 001: Dev 008, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 001: Dev 008, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 002: Dev 006, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 002: Dev 006, If 1, Class=Human Interface Device, Driver=usbhid, 12M

Device #8 is the keyboard, device #6 is the mouse. They are both connected via the monitor's powered hub. But only the keyboard is being restarted from this.

The kernel log is

usb 3-4.1: reset full-speed USB device number 8 using xhci_hcd
[repeat ad nauseam]

That is Bus #3, port 4 is the hub and on port 1 is device #8 which is the keyboard.

Now I would understand if the whole hub gets reset because of some failure or something but why in the nine hells only the keyboard? :neofoxscreamangry:

It is also, imso (=in my stupid opinion), not an issue of CPU overload because it specifically only happens when playing music with for example Kid3 but never while a game is running. Also it's never triggered by playing a video.

I am truly puzzled by this. It also happened with my previous keyboard and it never happens with the internal laptop's keyboard. It also happened less often, I think, with Bookworm's 6.1 kernel.

Someone save me from going even more insane.