I’m not sure this is the right category for this but I’m not sure where else to put it.
I’ve had this issue for a couple weeks with the following symptoms:
Keyboard frequently fails to register key presses and releases
Microphone frequently cuts out
Crackly audio
Previous media key is randomly pressed
It only seems to happen when running certain programs, specifically Firefox, most intensely when streaming media, and some games.
The peripherals this is affecting are a Keychron V3, Keychron Q0, and an AudioTechnica AT2020USB+ mic, though it seems to affect any USB keyboard I plug in, such as my spare Logitech unit. My mouse and other USB peripherals are unaffected.
journalctl reports the following every few seconds while this is happening:
kernel: usb 3-6.n: reset full-speed USB device number x using xhci_hcd
where x will be the corresponding device number for a keyboard or my microphone and n will be a different number that also seems to be unique to each device, as well as the following that seem to be specific to my microphone, as they disappear when I unplug it:
wireplumber[2487]: spa.alsa: The decibel volume range for element 'PCM' (-4000 dB - -500 dB) has negative maximum. Disabling the decibel range.
wireplumber[2487]: spa.alsa: The decibel volume range for element 'PCM' (-4000 dB - -500 dB) has negative maximum. Disabling the decibel range.
wireplumber[2487]: spa.alsa: The decibel volume range for element 'PCM' (-4000 dB - -500 dB) has negative maximum. Disabling the decibel range.
wireplumber[2487]: spa.alsa: The decibel volume range for element 'PCM' (-4000 dB - -500 dB) has negative maximum. Disabling the decibel range.
wireplumber[2487]: spa.alsa: The decibel volume range for element 'PCM' (-4000 dB - -500 dB) has negative maximum. Disabling the decibel range.
gsd-media-keys[2017]: Unable to get default source
gsd-media-keys[2017]: Error calling method GDBus.Error:org.freedesktop.DBus.Error.Failed: /org/mpris/MediaPlayer2.org.mpris.MediaPlayer2.Player.Previous is not available now
The second two, naturally, seem to coincide with the erroneous Previous key events, and the keyboard and mic input issues seem to be caused by the USB resets. I think it’s worth noting that the audio problems remain whether or not the wireplumber messages are there.
None of this happens on the latest EndeavourOS live ISO, so I’m inclined to assume it’s not hardware related. I’m on the latest kernel (6.13.2-arch1-1), but I’ve tried downgrading to the version used in the live ISO (6.10.10-arch1-1) to no avail.
I’ve been looking into this for days and only hit dead ends. Hoping someone here can help.
What you’re describing is my current experience when gaming, where my SHIFT, CTRL, and ALT keys all don’t work, and I’m playing a 3rd-person shooter — those are all vital keys.
But they work just fine here in Firefox.
However, this only happened today with no updates since Saturday (only update on the weekend), and the only difference between today and yesterday is that I am currently using Cinnamon’s Wayland session to play games. I usually use Hyprland and did not have this issue just yesterday. So, I will be logging into Hyprland to test my theory later or tomorrow, but I’m guessing this is likely DE/WM/WC-specific + maybe whatever kernel you’re using.
Actually, I also booted into the LTS kernel today, so that’s the only other difference.
❯ lsusb -tv
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 002: Dev 002, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 2516:014d Cooler Master Co., Ltd.
|__ Port 002: Dev 002, If 1, Class=Human Interface Device, Driver=usbhid, 12M
ID 2516:014d Cooler Master Co., Ltd.
|__ Port 002: Dev 002, If 2, Class=Human Interface Device, Driver=usbhid, 12M
ID 2516:014d Cooler Master Co., Ltd.
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/10p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 003: Dev 002, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 046d:c537 Logitech, Inc. Cordless Mouse Receiver
|__ Port 003: Dev 002, If 1, Class=Human Interface Device, Driver=usbhid, 12M
ID 046d:c537 Logitech, Inc. Cordless Mouse Receiver
|__ Port 004: Dev 003, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 1050:0407 Yubico.com Yubikey 4/5 OTP+U2F+CCID
|__ Port 004: Dev 003, If 1, Class=Human Interface Device, Driver=usbhid, 12M
ID 1050:0407 Yubico.com Yubikey 4/5 OTP+U2F+CCID
|__ Port 004: Dev 003, If 2, Class=Chip/SmartCard, Driver=[none], 12M
ID 1050:0407 Yubico.com Yubikey 4/5 OTP+U2F+CCID
|__ Port 005: Dev 004, If 0, Class=Wireless, Driver=btusb, 12M
ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
|__ Port 005: Dev 004, If 1, Class=Wireless, Driver=btusb, 12M
ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
|__ Port 006: Dev 005, If 0, Class=Hub, Driver=hub/4p, 480M
ID 05e3:0608 Genesys Logic, Inc. Hub
|__ Port 001: Dev 007, If 0, Class=Video, Driver=uvcvideo, 480M
ID 046d:085b Logitech, Inc.
|__ Port 001: Dev 007, If 1, Class=Video, Driver=uvcvideo, 480M
ID 046d:085b Logitech, Inc.
|__ Port 001: Dev 007, If 2, Class=Audio, Driver=snd-usb-audio, 480M
ID 046d:085b Logitech, Inc.
|__ Port 001: Dev 007, If 3, Class=Audio, Driver=snd-usb-audio, 480M
ID 046d:085b Logitech, Inc.
|__ Port 002: Dev 013, If 0, Class=Audio, Driver=snd-usb-audio, 12M
ID 0909:001c Audio-Technica Corp. AT2020USB+
|__ Port 002: Dev 013, If 1, Class=Audio, Driver=snd-usb-audio, 12M
ID 0909:001c Audio-Technica Corp. AT2020USB+
|__ Port 002: Dev 013, If 2, Class=Audio, Driver=snd-usb-audio, 12M
ID 0909:001c Audio-Technica Corp. AT2020USB+
|__ Port 002: Dev 013, If 3, Class=Human Interface Device, Driver=usbhid, 12M
ID 0909:001c Audio-Technica Corp. AT2020USB+
|__ Port 003: Dev 010, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 3434:0331
|__ Port 003: Dev 010, If 1, Class=Human Interface Device, Driver=usbhid, 12M
ID 3434:0331
|__ Port 003: Dev 010, If 2, Class=Human Interface Device, Driver=usbhid, 12M
ID 3434:0331
|__ Port 004: Dev 011, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 3434:0130
|__ Port 004: Dev 011, If 1, Class=Human Interface Device, Driver=usbhid, 12M
ID 3434:0130
|__ Port 004: Dev 011, If 2, Class=Human Interface Device, Driver=usbhid, 12M
ID 3434:0130
|__ Port 007: Dev 006, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 048d:5702 Integrated Technology Express, Inc. RGB LED Controller
|__ Port 010: Dev 008, If 0, Class=Hub, Driver=hub/4p, 480M
ID 05e3:0608 Genesys Logic, Inc. Hub
/: Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
/: Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
/: Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
|__ Port 002: Dev 002, If 0, Class=Video, Driver=uvcvideo, 5000M
ID 3188:1000
|__ Port 002: Dev 002, If 1, Class=Video, Driver=uvcvideo, 5000M
ID 3188:1000
|__ Port 002: Dev 002, If 2, Class=Audio, Driver=snd-usb-audio, 5000M
ID 3188:1000
|__ Port 002: Dev 002, If 3, Class=Audio, Driver=snd-usb-audio, 5000M
ID 3188:1000
|__ Port 002: Dev 002, If 7, Class=Human Interface Device, Driver=usbhid, 5000M
ID 3188:1000
It looks as though you’re currently hooked up to USB 2.0/1.1 ports (the black ports on your board).
You might try plugging into your USB 3.2 ports. The blue ones are USB 3.2 gen1, and the red ones are USB 3.2 gen2 (see manual page 12). In this instance this is largely just for testing purposes, not performance, as sometimes a different controller won’t have the same issue.
If you’re also using a USB hub, perhaps try without that for now?
I’ve got enough spare USB ports to make this work, but it is disappointing to lose all of those ports. This also doesn’t fix the audio crackling. Still, thanks for your help.
Oh sorry, “Digital Output” would only work if you’re output device is capable of it. If you’re using headphones via a 3.5mm audio jack for example, you’d likely only be able to use “Analog Output”.
How are you hearing the audio? (what device? headphones?)
Tested with digital and analog output on both the built-in audio chip and the external interface, and I got the same result on all four settings, except digital on the built-in audio chip, which I suspect is sending it to the S/PDIF port on the back of the motherboard.
(Probably) Final update for anyone who stumbles upon this thread: It seems to have fixed itself. Before that happened I tried reinstalling EndeavourOS, which didn’t fix it, and then loaded a fresh user profile without any of my configurations or personal files, which did fix it. So I know there was some user-specific setting I could have changed or file in my home directory I could have deleted to fix the problem. No clue what.