Bug 498777 - Laptop goes to sleep when lid is closed even when suspend is manually blocked
Summary: Laptop goes to sleep when lid is closed even when suspend is manually blocked
Status: CLOSED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.2.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-17 06:10 UTC by Ángel Navarro
Modified: 2025-01-17 15:42 UTC (History)
1 user (show)

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 Á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.