Bug 198097 - Allow multimedia keys work while the scren is locked
Summary: Allow multimedia keys work while the scren is locked
Status: RESOLVED FIXED
Alias: None
Product: ksmserver
Classification: Plasma
Component: lockscreen (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-27 23:45 UTC by Andrey Fraunhoffer
Modified: 2015-02-06 09:07 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Fraunhoffer 2009-06-27 23:45:15 UTC
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
Comment 1 Oswald Buddenhagen 2009-06-28 16:25:38 UTC
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.
Comment 2 Chani 2009-06-29 00:25:33 UTC
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. :(
Comment 3 Oswald Buddenhagen 2009-06-29 09:42:36 UTC
(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.
Comment 4 Dennis Schridde 2010-03-04 14:43:49 UTC
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?
Comment 5 Colin Faber 2014-08-09 00:20:43 UTC
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 ;)
Comment 6 tjb0607 2014-11-03 05:37:29 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Martin Flöser 2015-02-06 09:07:31 UTC
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