You are not logged in.
Pages: 1
Hello everyone.
I was wondering if anyone had a solution to preventing a laptop from going to sleep while shutting down. Often I would like to click "Shutdown" close the lid and stuff the laptop in my bag. However currently that causes the laptop to go to sleep part-way though the shutdown process which is something I imagine most people don't want.
I was wondering if anyone has a solution to this? It seems to me like the only time I want suspend on lid close is in multi-user.target. Is blacklisting systemd-logind from other targets somehow a possible way to do this?
Bonus points if anyone has a way to get PackageKit offline updating to work. So I could click "Shutdown", and have it reboot, install updates and power off.
Offline
What desktop environment are you using? What is controlling the sleep on lid close? There are several possibilities -- Several desktop environments will do it, as will systemd and acpi.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I am using GNOME but I'm pretty sure that my suspend is being managed by systemd-logind.
Offline
Take a look at your /etc/systemd/logind.conf
Try changing that file by uncommenting the HandleLidSwitch line and changing the action to ignore
Last edited by ewaller (2016-04-02 17:01:25)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I don't want to disable HandleLidSwitch in this case. I just want it to not apply when the system is shutting down (and preferably doing offline package updates as well).
Offline
I cannot think of trivial way of handling that. My inclination would be to disable systemd using logind.conf, and instead use ACPI. The ACPI script could be written determine the state of the machine and suspend (or not) as appropriate.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1