zfs-hetzner-vm
zfs-hetzner-vm copied to clipboard
ubuntu installation on dedicated servers will auto-suspend
Hi, your ubuntu installation script almost work ok.. one major issues has been that the server will automatically suspend after about 20 minutes of activity.. ( and a hetzner robot power button is required to take it back online )
[ 1213.500825] PM: suspend entry (deep)
after investigating the issue i've fixed with this :
sudo apt-get remove xserver-xorg-core
thanks for your work btw :) it's well done
just deployed an ubuntu 20 and I cannot see a xserver-xorg-core
installed. will see if the server suspends.
the root cause should be the power manager by desktop environment, For gnome, you can disable it:
Settings->Gnome Power Saving Options:
1. Screen Blank > Never
2. Automatic Suspend => Off
@fvigotti
you remove xserver-xorg-core, so you remove gnome too:)
https://askubuntu.com/questions/1346125/disabling-power-saving-features-via-command-line
gsettings set org.gnome.settings-daemon.plugins.power ambient-enabled false
gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'