The system will suspend now! How to stop Debian from going into suspend mode at login screen
Broadcast message from Debian-gdm@angel on tty1 (Fri 2023-09-08 21:33:20 EDT): The system will suspend now!
Solution #1
$ sudo mkdir /etc/systemd/sleep.conf.d $ cd /etc/systemd/sleep.conf.d $ echo "[Sleep] AllowSuspend=no AllowHibernation=no AllowSuspendThenHibernate=no AllowHybridSleep=no" | sudo tee nosuspend.conf
Bad Solution
$ systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Don't use this even though it's mentioned first in the documentation, it will still result in attempts to put the system on sleep and result in SSH notifications, even though the system sleep will be ignored. Use instead solution #1
Solution #1 creates nosuspend.conf in the current directory, not in /etc/systemd/sleep.conf.d/
thanks! it\'s fixed now