How do I completely disable all power management settings in Ubuntu 18.04 LTS (non-GUI)? I don't want the system to sleep/hibernate/disable wifi and so on.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I came across this problem with the laptop ALWAYS going to sleep, in that the screen goes blank/black and I must reboot to wake it up.
I tried ... all of these Screen Going into SLEEP MODE, or BLACK, when NOT set to!
$ gsettings set org.gnome.settings-daemon.plugins.power idle-dim false $ gsettings set org.gnome.desktop.screensaver lock-enabled false $ gsettings set org.gnome.desktop.lockdown disable-lock-screen true
• and a way to make this permanent, you need a gsettings override file... ‣ Open a new empty document in gedit, (or another text editor) on your host system.
STILL keeps going automatically to sleep!
OK so try this ... APM (Automatic Power Management) is ON IN THE BIOS or at a lower base level.
a strange solution That for now is working, is to edit grub with the APM=OFF parameter. To do this
Open the Grub file:
sudo gedit /etc/default/grub
add the apm=off to a line that will look like this:
Yours may be slightly different but add it to whatever is between the " " (quotes) a more typical is to put it after the standard "quiet splash'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash (IN HERE)**"
and one must Update Grub, after saving this file, using terminal with the command:
and of course ... reboot