How to suspend only when off AC power

Archlinux logo

Works on Archlinux using systemd 239.370-1:

[hendry@t480s ~]$ grep -v ^# /etc/systemd/logind.conf
[Login]
HandleLidSwitchExternalPower=ignore
Advertisement

If you like this, you might like the stateless Web kiosk software I develop. Webconverger typically replaces Windows on PCs and is deployed in public and business environments for ease of deployment and privacy. Once installed it auto-updates making it painless to maintain. Try it where you exclusively use the only viable open platform... the Web!