SUMMARY On Plasma Wayland, media keys from my wireless keyboard are not recognized for shortcuts and do not change system volume, even though the kernel receives correct KEY_VOLUMEUP/KEY_VOLUMEDOWN/KEY_MUTE events. STEPS TO REPRODUCE 1. Connect "ROYUAN 2.4G Wireless Keyboard" (Keydous) via its 2.4G wireless USB dongle. 2. Log into a Plasma Wayland session. 3. Run "libinput list-devices" and note that the keyboard is split into several devices: - ROYUAN 2.4G Wireless Keyboard - ROYUAN 2.4G Wireless Keyboard Consumer Control - ROYUAN 2.4G Wireless Keyboard System Control - ROYUAN 2.4G Wireless Keyboard Mouse 4. Run "sudo evtest /dev/input/event18" (Consumer Control device). 5. Press the keyboard volume wheel/buttons. 6. Open System Settings → Shortcuts → Audio Volume and try to rebind "Increase Volume" and "Decrease Volume" using the keyboard volume wheel. ACTUAL RESULT - evtest shows proper events: - KEY_VOLUMEUP (115) - KEY_VOLUMEDOWN (114) - KEY_MUTE (113) - System Settings does not detect these keys when assigning shortcuts. - The keyboard volume wheel and mute key do not change the system volume in Plasma Wayland. EXPECTED RESULT - Plasma should recognize media keys from the keyboard’s Consumer Control device when assigning shortcuts. - The keyboard volume wheel and mute key should change the system volume, like other media keys. ADDITIONAL INFORMATION - Distribution: Manjaro (Arch-based), Linux. - Session: Plasma Wayland. - Another wireless headset with its own Consumer Control device works fine: its volume buttons change system volume as expected. - The issue seems specific to this keyboard being split into multiple input devices; the kernel receives the events correctly, but Plasma Wayland ignores them.
Thank you for the bug report! However Plasma 6.3.6 no longer receives updates or maintenance from KDE; active versions are 6.4 or newer. Please upgrade to an active version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one. If you need help with Plasma 6.3.6, please contact your distribution, who bears the responsibility of providing help for older releases that are no longer receiving updates from KDE. If you can reproduce the issue after upgrading to an active version, feel free to re-open this bug report.
We managed to repeat the bug on KDE Plasma 6.5.3
If you go to System Settings > Keyboard > Shortcuts > Audio Volume > Increase Volume > Add.… and then press the "volume up" button on your keyboard, what happens? Is a key of some sort recognized by the shortcut input button?
To answer your question: 1. I open System Settings → Shortcuts → Audio Volume. 2. I click on the button to change the shortcut for “Increase Volume”. 3. Then I press or scroll the volume wheel / press the volume up key on my ROYUAN 2.4G Wireless Keyboard (Consumer Control device). Result: - The shortcut input dialog does NOT recognize any key. - Nothing appears in the field, as if I didn’t press any key at all. At the same time, if I run: sudo evtest /dev/input/event18 and press the same volume up control, I see KEY_VOLUMEUP (115) events there. So the kernel receives the key, but Plasma does not. If I press a normal key like F9 instead, the shortcut dialog recognizes it immediately.
Thanks. So either KWin or QT doesn't recognize those codes. Moving to KWin for further triage.
Please run > sudo libinput debug-events and see if that recognizes the key. If yes, please also open the kwin debug console (search for it in krunner) and check if it's also shown there in the "input events" tab.