[SOLVED] Proxmox Gnome Workstation howto prevent sleep/suspend?

Feb 27, 2021
93
19
13
I've just installed Gnome Desktop via the tasksel, to create a proxmox workstation.
When using the GUI all is fine, and I can disable suspend, but ..

The thing is when I login via ssh as root, then after 15min the box suspends. I have no idea why, or how to prevent this.
Any help is appreciated.

Appendix: syslog:

Code:
Sep 22 20:47:18 cube ModemManager[50721]: <info>  [sleep-monitor] system is about to suspend
Sep 22 20:47:18 cube NetworkManager[50528]: <info>  [1663872438.1471] manager: sleep: sleep requested (sleeping: no  enabled: >
Sep 22 20:47:18 cube NetworkManager[50528]: <info>  [1663872438.1472] manager: NetworkManager state is now ASLEEP
Sep 22 20:47:18 cube systemd[1]: Reached target Sleep.
Sep 22 20:47:18 cube gnome-shell[51470]: Screen lock is locked down, not locking
Sep 22 20:47:18 cube systemd[1]: Starting Suspend...
Sep 22 20:47:18 cube systemd-sleep[1289802]: Suspending system...
Sep 22 20:47:18 cube kernel: PM: suspend entry (deep)


Edit:
This only happens when nobody is logged in via the GUI. root cannot log-in into the GUI.
If a normal user logs in, and disables suspend, all is fine, the box does not go into suspend.

Code:
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
did not work.

BTW the software is the latest Proxmox non-subscription repo.
 
Last edited:
Hi,

you could try to mask the sleep, suspend, hibernate and hybrid sleep services:

Code:
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

That should deactivate that behavior. Just unmask the services again to activate it again:

Code:
systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target