Score:1

Ubuntu 22.04LTS media keys stopped working

us flag

I've been using Ubuntu 22.04LTS Desktop for over a year now (on a Ryzen 9 5950X, which is awesome, but I don't think that matters).

The specific version is:

sudo dmesg | head -1 | fmt -w 80
[    0.000000] Linux version 5.15.0-60-generic (buildd@lcy02-amd64-054)
(gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu)
2.38) #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 (Ubuntu 5.15.0-60.66-generic
5.15.78)

All of a sudden a few weeks ago, probably as a result of some auto-update, the media keys (volume up/down, pause/continue, mute, next song/prev song, etc.) have stopped working altogether. The keyboard is a Microsoft Keyboard 4000, with dedicated media keys (no key combinations e.g. Fn+...).

I've looked at similar questions, but they seem quite old. The most recent answers I found include this answer and that answer. Both recommend restarting pipe-session-manager, but it did nothing to help the situation. On the contrary, it entirely shut down all my audio, and after various attempts to "nicely" revive it, I had to reboot.

What can I do to even diagnose the problem?

FWIW, I tried to monitor events via evtest, tried all 5 devices with a name containing Microsoft_KM-V1.a, but I cannot see any event triggered when I press any of the media keys.

Edit When looking at journalctl --since today | tail just after hitting a few of the media keys, I see the puzzling message:

..... /usr/libexec/gdm-x-session[10302]: (EE) event2  - Microsoft_KM-V1.a: client bug: event processing lagging behind by 37ms, your system is too slow

It is puzzling because the specs of that machine are quite good and it is lightning fast (see the Geekbench 6 results).

guiverc avatar
cn flag
I'd look at what actually changed when the keyboard stopped working as you wanted... ie. if I note a change that was *unexpected* esp. after reboot/login compared to prior session, I explore the system logs & what updated during the last session for changes. Did you look? I assume this is a desktop system (*you didn't actually specify what 22.04*) where a recent change for systems using the HWE kernel was from 5.15 to 5.19 kernel; did you explore if that's why? Did you boot an older kernel at grub & it works again? If so that may give you an alternative (use GA kernel stack) or more info...
Pierre D avatar
us flag
Added specific os version. It would be great if I could pinpoint when exactly it stopped working. No such luck, as I am often on the move. The best I can figure out is that it stopped working within the last 6 weeks or so. Isn't there a way to diagnose what may be happening? I've pored over `/var/log/syslog` etc. but no luck.
Brendan avatar
pl flag
Same issue for me; I upgraded from 20.04 and was then unable to use my keyboard media keys. Even trying to bind it does not work.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.