You are not logged in.
Pages: 1
I'd like to configure my laptop to not sleep when the lid is closed if it is plugged in to AC power (but still sleep on lid close when running on battery). Is this configuration possible? How would I go about setting it up?
Offline
I had exactly the same question and was looking for a DE-independent, pure systemd solution.
Here you go!
Offline
Realising that this could actually make a nice script, I created a small package aclidswitch:
https://aur.archlinux.org/packages/aclidswitch-git/
Take a look at the readme how to configure it:
https://github.com/orschiro/aclidswitch
Let me know if you face any issues!
Offline
Pages: 1