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:
Done for both (all) users:
- Never suspend under Power
- Never turn screen off under Brightness and Lock.
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
@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
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
Section "ServerFlags" Option "BlankTime" "0" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" EndSection
@reboot /usr/bin/caffeine &
in crontab. Also thought about doing the same with
@reboot /usr/bin/caffeine -t 36000
caffeine -t 36000
usage: caffeinate [-h] [-V] COMMAND [ARGUMENT [ARGUMENT ...]] caffeinate: error: unrecognized arguments: -t
Don't have it.
Any help would be much appreciated!