zfs-hetzner-vm icon indicating copy to clipboard operation
zfs-hetzner-vm copied to clipboard

ubuntu installation on dedicated servers will auto-suspend

Open fvigotti opened this issue 2 years ago • 5 comments

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

fvigotti avatar Mar 03 '22 08:03 fvigotti

just deployed an ubuntu 20 and I cannot see a xserver-xorg-core installed. will see if the server suspends.

rhaamo avatar May 11 '22 18:05 rhaamo

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

congzhangzh avatar Sep 10 '23 02:09 congzhangzh

you remove xserver-xorg-core, so you remove gnome too:)

congzhangzh avatar Sep 10 '23 02:09 congzhangzh

https://askubuntu.com/questions/1346125/disabling-power-saving-features-via-command-line

congzhangzh avatar Sep 10 '23 02:09 congzhangzh

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'

congzhangzh avatar Sep 10 '23 02:09 congzhangzh