Bug 496233

Summary: Manual blocking of display sleep doesnt work after "xset dpms force off"
Product: [Unmaintained] kscreenlocker Reporter: Reinier <rpbikker>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.2.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Reinier 2024-11-13 20:41:36 UTC
SUMMARY
When you choose "Manually block" display sleeping and locking in the Power and Battery applet, it works as advertised on the tin until you let the display sleep with "xset dpms force off" from a terminal. After that screen locking is still blocked, but display sleep is no longer blocked.

STEPS TO REPRODUCE
1. Configure the display to lock after a certain time
2. Choose "Manually block" in the Power and Battery applet
3. Let the display sleep with "xset dpms force off" from a terminal
4. Wake up the display 
5. Wait until screen locking is supposed the happen

OBSERVED RESULT
The display sleeps, but the screen is not locked.

EXPECTED RESULT
No sleeping and locking

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.2
Graphics Platform: X11
Graphics Processor: Mesa IntelĀ® HD Graphics 620
Comment 1 Reinier 2024-11-20 13:42:42 UTC
Addition.

The 'manual blocking' part isn't strictly necessary. The same behaviour can be observed when display sleeping is blocked by an application like gwenview or firefox.
Comment 2 Reinier 2024-11-29 14:04:45 UTC
Actually, strike this bug. The command I used from the terminal was an alias, which apart from the 'xset dpms force off' also contained the command 'xset s on' which of course on X11 reenables the blocked screensaver.