-
Notifications
You must be signed in to change notification settings - Fork 807
Description
Distribution
LMDE 7
Package version
Cinnamon 6.4.13
Graphics hardware in use
No response
Frequency
Quite often
Bug description
Systemd 257 made "block" more powerful (https://lwn.net/Articles/1001657/ - See systemd-logind), when a block is in place all of the "When the lid is closed" and "When the power button is pressed" options in Power Settings go from Suspend to blank, as Suspend is not available when there is a block. Even if configured beforehand, the associated actions never trigger.
It is possible for Cinnamon to override these blocks, I think Cinnamon behavior should be modified to do this when the configuration has been set. I am talking especially about Suspend on Lid Close and the Power Button settings, I understand why keeping the Time-based settings as is may be desirable (thinking inhibit applet). The behavior right now, with the new systemd version, causes the system to keep running like normal with the lid closed even when configured otherwise, and the Power Button is ignored outright.
This is especially an issue because Chromium-based browsers are very aggressive in their use of inhibit blocks. Instead of happening only when they're playing media, they can happen often for reasons unknown. I would also argue, if I have the lid closed or power button action configured to suspend, I want the system to suspend even when the browser is playing media.
Steps to reproduce
Open Chromium-based browser, use it for a while although it may even happen at initial startup. Note that inhibit blocks are added in systemd-inhibit --list at various times blocking shutdown:sleep. When in place, the Power Management settings become blank and the behavior is as described.
Expected behavior
Override the browser - go to sleep when I hit the power button or close the lid if I've configured the system to do so.
Additional information
No response