1.15 Disable Sleeping Processes (Suspending) - Tomato6966/Debian-Cheat-Sheet-Setup GitHub Wiki
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.targetsudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.targetsudo nano /etc/systemd/logind.conf[Login]
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignoreThen save (CTRL+S) and exit (CTRL+X)
systemctl restart systemd-logind.servicesudo nano /etc/systemd/sleep.confAllowSuspend=no
AllowHibernation=noThen save (CTRL+S) and exit (CTRL+X)
sudo reboot