Disable sleep on lid close I am using an old laptop in my homelab, but I want to do everything from my personal computer, with ssh. The default behavior in Debian is to suspend when the laptop lid is closed, but it's easy to change that, just edit /etc/systemd/logind.conf and change the line #HandleLidSwitch=suspend to HandleLidSwitch=ignore then $ sudo systemctl restart systemd-logind That's it.