Bug 498777

Summary: Laptop goes to sleep when lid is closed even when suspend is manually blocked
Product: [Plasma] plasmashell Reporter: Ángel Navarro <jesusnavarrojr188>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CLOSED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ángel Navarro 2025-01-17 06:10:53 UTC
SUMMARY
"Block suspend" setting is completely ignored by Plasma if "What happens when lid is closed" is set to "sleep" even when an application is blocking the suspension and I manually blocked it from the taskbar.

STEPS TO REPRODUCE
1. Set "What happens when lid is closed" to "sleep".
2. Block suspension manually or let a program block it (for example, Elisa).
3. Close the lid.

OBSERVED RESULT
The laptop goes to sleep.

EXPECTED RESULT
The laptop should not sleep when it's been told not to.

PROBLEM
It's reeeeeeeally annoying when I want to listen to music with the lid closed and remote controls. I have to go to settings, set that one to "do nothing" and go back to set it to "sleep" when I'm done, and do it all over again every time. It's very frustrating and it's really affecting my experience.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.0.1

ADDITIONAL INFORMATION
I'm using TLP for battery management.
Laptop does not go to sleep if I don't close the lid. That works fine. The problem comes when I DO close it.
Comment 1 Nate Graham 2025-01-17 15:42:03 UTC
The feature to let apps and Plasma block suspend is intended to blocks suspend based on *inactivity* specifically, not any other factors.