I've been at trying to do this for the last several hours with no progress.
I'm running Ubuntu 16.04 and I want to disable the sleep/suspend at the login screen (before logging in with any user) so that the display stays active. The suspension/sleep starts after 5 minutes -- a setting I can't seem to find anywhere.
Things that I've tried:
GUI
Done for both (all) users:
- Never suspend under Power
- Never turn screen off under Brightness and Lock.
Terminal
gsettings set org.gnome.desktop.session idle-delay 0
sudo /bin/systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
xset s noblank
xset s off
xset dpms force off
xset -dpms
crontab -e:
added
@reboot sudo /bin/systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
@reboot /usr/bin/xset s noblank
@reboot /usr/bin/xset s off
@reboot /usr/bin/xset dpms force off
@reboot /usr/bin/xset -dpms
dconf org.gnome.settings-daemon.plugins.power
critical-battery-action nothing
idle-dim false
lid-close-ac-action nothing
lid-close-battery-action nothing
sleep-inactive-ac-timeout 0
sleep-inactive-ac-type nothing
sleep-inactive-battery-timeout 0
sleep-inactive-battery-type nothing
time-critical 36000
time-low 36000
(The computer has neither lid nor battery btw)
sudo gedit /etc/X11/xorg.conf
Added
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Caffeine
Added
@reboot /usr/bin/caffeine &
in crontab. Also thought about doing the same with
@reboot /usr/bin/caffeine -t 36000
but
caffeine -t 36000
returns
usage: caffeinate [-h] [-V] COMMAND [ARGUMENT [ARGUMENT ...]]
caffeinate: error: unrecognized arguments: -t
acpi
Don't have it.
Any help would be much appreciated!