[kscreenlocker] [Bug 469687] Screen does not shut off when sleep inhibitor lock is created and released

2023-11-18 Thread Eric G
https://bugs.kde.org/show_bug.cgi?id=469687

--- Comment #2 from Eric G  ---
I'm now unable to reproduce on:
Operating System: Gentoo Linux 2.14
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.1.53-gentoo-r1 (64 bit)
Graphics Platform: Wayland

I recommend closing.  I'm not sure if something was up streamed which would
affect behavior here. So I will leave it to someone with more experience with
this project to tag resolution.  Thank you.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kscreenlocker] [Bug 469687] New: Screen does not shut off when sleep inhibitor lock is created and released

2023-05-12 Thread Eric G
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.