Bug 496233 - Manual blocking of display sleep doesnt work after "xset dpms force off"
Summary: Manual blocking of display sleep doesnt work after "xset dpms force off"
Status: RESOLVED NOT A BUG
Alias: None
Product: kscreenlocker
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 6.2.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-13 20:41 UTC by Reinier
Modified: 2024-11-29 14:04 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.