Bug 514783 - Keyboard media keys doesn't work for audio volume shortcuts
Summary: Keyboard media keys doesn't work for audio volume shortcuts
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.5.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-18 09:01 UTC by Mickaël B.
Modified: 2026-01-21 20:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
kwin debug console - keyboard tab (84.22 KB, image/jpeg)
2026-01-21 20:07 UTC, Mickaël B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mickaël B. 2026-01-18 09:01:36 UTC
SUMMARY
None of my keyboard media keys are working as audio volume shortcuts in wayland sessions.
However, all is working as expected in X11 sessions.
Keyboard: Logitech, Inc. UltraX Keyboard (Y-BL49)

* KWin debug console: no input event is detected when I press any of the target keys.
* libinput debug-events: detects all target keys activity.
event5   DEVICE_ADDED                 Logitech HID compliant keyboard Consumer Control seat0 default group5  cap:kp left scroll-nat
event5   KEYBOARD_KEY                 +4.246s  KEY_CONFIG (171) pressed
event5   KEYBOARD_KEY                 +4.358s  KEY_CONFIG (171) released
event5   KEYBOARD_KEY                 +11.190s KEY_PLAYPAUSE (164) pressed
event5   KEYBOARD_KEY                 +11.270s KEY_PLAYPAUSE (164) released
event5   KEYBOARD_KEY                 +11.894s KEY_MUTE (113) pressed
event5   KEYBOARD_KEY                 +12.030s KEY_MUTE (113) released
event5   KEYBOARD_KEY                 +12.518s KEY_VOLUMEDOWN (114) pressed
event5   KEYBOARD_KEY                 +12.638s KEY_VOLUMEDOWN (114) released
event5   KEYBOARD_KEY                 +13.334s KEY_VOLUMEUP (115) pressed
event5   KEYBOARD_KEY                 +13.494s KEY_VOLUMEUP (115) released
event5   KEYBOARD_KEY                 +13.934s KEY_HOMEPAGE (172) pressed
event5   KEYBOARD_KEY                 +14.062s KEY_HOMEPAGE (172) release

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Comment 1 Akseli Lahtinen 2026-01-19 09:15:56 UTC
I can't reproduce this with my Keychron K2 Pro keyboard, all the media keys are recognized for me. Do you have any other keyboards that you could test, to help figure out if it's specific hardware thing or something else?

Operating System: KDE Linux 2026-01-18
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15,5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 2 Vlad Zahorodnii 2026-01-20 10:31:54 UTC
Can you share your ~/.config/kglobalshortcutsrc? Also please check that the corresponding shortcuts are set as expected in shortcuts system settings, the relevant component is "media controller".
Comment 3 Mickaël B. 2026-01-20 15:39:19 UTC
I found an old Logitech keyboard (PS/2 internet keyboard with similar media keys): the keys are working with it.
Your Keychron K2 Pro keyboard seems to be a wireless model.
So the problem could be related to USB bus or my specific keyboard?

The shortcuts are all correct in my config panel, I didn't change the default ones.
The extract from my ~/.config/kglobalshortcutsrc match perfectly (the "kmix" section is more relevant I think):

[kmix]
_k_friendly_name=Volume audio
decrease_microphone_volume=Microphone Volume Down,Microphone Volume Down,Diminuer le volume du microphone
decrease_volume=Volume Down,Volume Down,Diminuer le volume
decrease_volume_small=Shift+Volume Down,Shift+Volume Down,Diminuer le volume de 1 %
increase_microphone_volume=Microphone Volume Up,Microphone Volume Up,Augmenter le volume du microphone
increase_volume=Volume Up,Volume Up,Augmenter le volume
increase_volume_small=Shift+Volume Up,Shift+Volume Up,Augmenter le volume de 1 %
mic_mute=Microphone Mute\tMeta+Volume Mute,Microphone Mute\tMeta+Volume Mute,Couper le son du microphone
mute=Volume Mute,Volume Mute,Muet
Comment 4 David Edmundson 2026-01-21 14:59:23 UTC
The most likely part matching these symptoms in #1 is that the keymap doesn't map the media keys to the relevant XKB keys.

Do you have any custom keyboard layout settings.
Can you post a screenshot of the keyboard tab in the kwin debug console?
Comment 5 Mickaël B. 2026-01-21 20:07:31 UTC
Created attachment 188764 [details]
kwin debug console - keyboard tab
Comment 6 Mickaël B. 2026-01-21 20:13:10 UTC
Screenshot added as attachment.
I have no custom keyboard layout setting.