Bug 490533

Summary: kscreen-doctor "--dpms off" does not work properly unless final key pressed quickly
Product: [Plasma] KScreen Reporter: saunders
Component: kscreen-doctorAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.1.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description saunders 2024-07-20 01:48:25 UTC
SUMMARY
When using "kscreen-doctor --dpms off" if you don't push the last key quick enough the system will just wake it back up immediately. You have to push the button quickly for it to work. I usually use this "sleep 0.5 ; /usr/bin/kscreen-doctor --dpms off" with hotkeys.

I would like to see a --wait <sec> or something along those lines added.

STEPS TO REPRODUCE
1. equip "kscreen-doctor --dpms off" to a single hotkey.
2. press and hold down that key a fraction of a second too long.

OBSERVED RESULT
screen just comes back immediately.

EXPECTED RESULT
screen turns off.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.10 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Zamundaaa 2025-10-14 15:55:42 UTC
Can't reproduce this on git master, and I recall some changes to not re-enable screens on key repeat, so this should be fixed.