how to prevent debian from suspending when lid closed

note: this how to applies to any linux using systemd

just edit /etc/systemd/logind.conf to contain the following:

HandleLidSwitch=ignore

to reload without reboot issue: systemctl restart systemd-logind

Leave a Reply

Your email address will not be published. Required fields are marked *