https://bugs.kde.org/show_bug.cgi?id=469687
Bug ID: 469687
Summary: Screen does not shut off when sleep inhibitor lock is
created and released
Classification: Plasma
Product: kscreenlocker
Version: 5.27.4
Platform: Gentoo Packages
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: plasma-b...@kde.org
Reporter: ericgh...@gmail.com
Target Milestone: ---
If a sleep inhibitor lock is repeatedly created and released during the
duration of the "Screen Energy Saving" switch off period, the screen will never
switch off on inactivity. I believe this is unintended behavior based on the
similar Bug 464119; screen switch off and sleep should not be correlated.
***
STEPS TO REPRODUCE
1. Set the "Screen Energy Saving" to switch off after 1 minute in Power Devil
2. Run the below script as root:
```
#!/bin/bash
if (( $EUID != 0 )); then
echo "Must run as root"
exit 1
fi
trap exit 1 SIGINT
while true; do
systemd-inhibit --what="sleep" --who="test" --why="test" --mode="block" sleep
5
done
```
OBSERVED RESULT
Screen will not switch off after 1 minute of inactivity.
EXPECTED RESULT
Screen should switch off after 1 minute of inactivity.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo (up to date stable branch 5-10-2023)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.9
ADDITIONAL INFORMATION
Similar behavior was observed on Debian 12, in this case the screen shut off
momentarily and seconds later switched back on without any human interaction.
Linux Version: Debian 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
--
You are receiving this mail because:
You are watching all bug changes.