(This is basically the 5 equivalent of https://bugs.kde.org/show_bug.cgi?id=311116 ) I want a way to blank the screen in the screenlock on demand, via a shortcut or button. Use cases: 1) You're watching the TV and accidentally nudge the mouse - the laptop screen now glows brightly for a few minutes 2) You're using synergy and the screenblanker never blanks by itself (OK so that's synergy or X's problem but still) Reproducible: Always Steps to Reproduce: 1. See Details 2. 3.
So to turn off the screen from the lockscreen?
(In reply to David Edmundson from comment #1) > So to turn off the screen from the lockscreen? Yes. Many older lockscreens years ago would blank if you hit escape. KDE4 didn't but you could just about make a mostly black screen if you went for the advanced screenlocker and set a black background.
I think we should rather just reduce the screen turn off time to 1 minute when the screen is locked?
I agree both to comment #2 and #3. A screen turn-off time of 1 minute sounds reasonable, as does a keyboard shortcut of Esc to blank the screen. By the way, this would also increase consistency with other desktops (e.g. Mac OS screenlock also blanks the screen on Esc).
what would unblank it?
Any input event (keyboard or mouse), as is already the case AFAIR.
(In reply to David Edmundson from comment #5) > what would unblank it? The unblank rules would be the same as now. We may have to be careful that: 1) If we blank on a key press (e.g. escape) then we don't unblank on the keyrelease. 2) If we blank on a button press then the user is still going to have their hand on the mouse/pad so we need to ignore pointer movements for a fraction of a second; I think the right thing here is just to wait a fraction of a second before doing the blank. (Esc to blank is my preferred keystroke, but I think we did at some point make it clear the password entry, so I'm not sure if it's possible).
Seems reasonable. We should probably do this in kscreenlocker itself though so it applies to all themes, rather than doing it only in the Breeze lock screen theme.
Sounds like a good way of doing it. Coincidentally, I did some tests with blanking from kglobalaccel and it has the problem that since actions get triggered on press, the screens gets restored on released the behaviour is quite meh.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/99
Git commit a1744cf6ce1675184efd3c0057964cb29ecdf686 by Aleix Pol. Committed on 03/11/2022 at 19:04. Pushed by apol into branch 'master'. Pressing Escape turns the outputs off M +1 -0 .kde-ci.yml M +1 -0 CMakeLists.txt M +1 -0 greeter/CMakeLists.txt M +8 -0 greeter/greeterapp.cpp https://invent.kde.org/plasma/kscreenlocker/commit/a1744cf6ce1675184efd3c0057964cb29ecdf686
Thanks!