Bug 489907 - screenlocker: display goes to sleep when ESC is pressed
Summary: screenlocker: display goes to sleep when ESC is pressed
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Screen locking (show other bugs)
Version: 6.2.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-08 09:22 UTC by i.Dark_Templar
Modified: 2024-12-18 21:45 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2024-07-08 09:22:04 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When I run kscreenlocker with non-empty background in plasma/X11 session, start entering password, erase password and press ESC, screen goes into powersaving, even though no powersaving for screenlocker looks set. After a bit of testing I've found out that starting writing password is not necessary and just pressing ESC is enough.

STEPS TO REPRODUCE
1. Enable screenlocker, set up non-blank and non-black wallpaper for screenlocker screen
2. Run screenlocker (ctrl+alt+L by default)
3. Press ESC

OBSERVED RESULT
Display goes into powersaving mode, no screenlocker wallpaper is displayed

EXPECTED RESULT
Display should continue to show screenlocker wallpaper unless configured otherwise.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
It didn't happen with plasma 5.27.11.
It doesn't look convenient that when I want to erase password and show screenlocker wallpaper again, my only option is to wait. With plasma 5.27.11 just pressing ESC did it.
Pressing enter to open password prompt wakes up display.
Comment 1 i.Dark_Templar 2024-07-20 08:41:22 UTC
This issue still reproduces with plasma 6.1.3.
Comment 2 Tim D 2024-08-13 20:25:09 UTC
this is "working as expected". https://kde.org/announcements/plasma/5/5.27.0/, search for 'esc'.

quote specifically:
Save power with one keystroke: While on the lock screen, hit the Esc key to turn off the screen and save some power.
Comment 3 i.Dark_Templar 2024-08-15 18:28:03 UTC
(In reply to Tim D from comment #2)
> this is "working as expected".
> https://kde.org/announcements/plasma/5/5.27.0/, search for 'esc'.
> 
> quote specifically:
> Save power with one keystroke: While on the lock screen, hit the Esc key to
> turn off the screen and save some power.

As I wrote originally, it worked fine in plasma 5.27.11. So, despite this announcement, it was not present in plasma 5.27.11. And if it is a feature indeed, and not a bug, it'd be great if it would be configurable, like all other KDE features.

Anyway, thanks for pointing to it. Ripping out Esc key processing from kscreenlocker fixed issue for me.
Comment 4 ratijas 2024-12-18 21:45:32 UTC
Yeah, the change was totally intentional, and I believe they won't consider adding a setting for it because it would be "over-configurability" for such a minor behavior.

I'd rather agree with you that sometimes I'd just like the wallpaper to shine as a screensaver, but all I have is a black screen anyway (due to BUG 483094) so it doesn't really matter to me personally.