Version: (using KDE 4.2.4) OS: Linux Installed from: Unlisted Binary Package It would be nice to allow multimedia keys work while my screen is locked. For example, I have volume adjust buttons on the side of my laptop and when it is closed and screen locks I want be able to use that buttons to adjust volume without opening laptop, than moving mouse, than typing password, etc. Looking at the problem wider it could be useful to have an ability of making some "keys white list" to allow them work while the screen is locked (e.g. to adjust volume with user-specified shortcuts, not ojnly multimedia keys) Somehow related: https://bugs.kde.org/show_bug.cgi?id=104353 https://bugs.kde.org/show_bug.cgi?id=148228
i don't think such a "white list" is directly possible - the keyboard grab which the screensaver has to do is a whole-sale thing. one could hack some kde-specific event delivery system, but non-kde apps still wouldn't work. i think the only realistic goal is having hotkeys work well for plasma widgets on the screen saver (a kmix plasmoid in your case). i don't know whether this is the case already.
not exactly. you can use the now-playing applet on the screensaver, which has buttons you can click. multimedia keys won't work, though. it might be possible to write a plasmoid that'd fix that.. oh, but the kde global shortcut whatsit might prevent it. :(
(In reply to comment #2) > but the kde global shortcut whatsit might prevent it. :( > it can't. the screen saver (and thus indirectly plasma) gets all the keyboard events by virtue of the global keyboard grab, so a global hotkey dispatcher could be implemented easily. the problem is of course the duplication of functionality in kdeglobalaccel, but with some refactoring it should be possible to simply reuse it with an alternative event source.
The locked-screen-key-white-list seems very useful. Can the event not just be re-emitted to the other apps after it was grabbed by the KDE screen lock? Having functionality to at least adjust the volume using multimedia keys while the screen is locked would be nice though. Maybe some hidden/invisible kmix plasmoid on the screen-lock?
Has anyone thought anymore about this? The wife just complained about not being able to mute the system when I walked away and it locked ;)
*** This bug has been confirmed by popular vote. ***
Git commit fad1eeebc91391729f696f92065a240027d2c746 by Martin Gräßlin. Committed on 06/02/2015 at 07:49. Pushed by graesslin into branch 'master'. [ksmserver/screenlocker] Allow media control global shortcuts White list the media control global shortcuts from plasmashell in the lock screen. FIXED-IN: 5.3.0 REVIEW: 122449 M +4 -0 ksmserver/screenlocker/globalaccel.cpp http://commits.kde.org/plasma-workspace/fad1eeebc91391729f696f92065a240027d2c746