BitBox Cold Wallet
Purchase BitBox Cold Wallet

Sergio Cipriano: 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. Written on 2025-06-04. Last updated on 2025-07-02.



Never forget.

Work → Buy Bitcoin → Sleep → Try Again = RICH GUY

Work → Spend → Sleep → Try Again = POOR GUY