Stop monitor from going to sleep in ubuntu 16.04
22,388
You can use gsettings
for enabling and disabling monitor from going to sleep:
Disable turning off screen
gsettings set org.gnome.desktop.session idle-delay 0
Enable turning off screen with 5 min delay
gsettings set org.gnome.desktop.session idle-delay 300
Related videos on Youtube
Author by
User2546
Updated on September 18, 2022Comments
-
User2546 over 1 year
I want to stop monitor from going to sleep in ubuntu 16.04. I am using /etc/X11/xorg.conf file in Ubutnu 14.04, which has below lines written in it.
Section "ServerFlags" Option "BlankTime" "60" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" EndSection
And it is working fine in Ubuntu 14.04 but not working in Ubuntu 16.04.
During research I have found that xorg.conf is removed in Ubuntu 16.04. I want to do the same in Ubuntu 16.04. if anybody has any idea about the same then please let me know.
Thanks.
-
User2546 almost 8 yearsDuring research I have found that when upgrading to Ubuntu 16.04 from a previous release, both the fglrx driver and the xorg.conf will be removed, so that the system is set to use either the amdgpu driver or the radeon driver (depending on the available hardware).
-
EdiD almost 8 yearsWhat about system settings -> brightness and lock ?
-
User2546 almost 8 yearsTurn off screen after 5 minutes and lock screen after screen turn off.
-
EdiD almost 8 yearsChange turn screen off : never
-
User2546 almost 8 yearsThanks for your reply. I know this but I want a script or .conf file like solution so that when it can be done automatically instead of manual interaction.
-
-
User2546 almost 8 yearsEdiD, Thanks for your reply. In my initial testing it is working in Ubuntu 16.04 as per the expectation. I will test it more and update the test result here.
-
EdiD almost 8 years@RoundSparrowhilltx from what I know pixel shifting is built-in algorithm in plasma and oled tvs and It can't be done from command line.
-
EdiD over 7 years@User2546 I can't imagine how
idle-delay
can be related to Internet connection. -
User2546 over 7 years@EdiD, my qt app runs in Ubuntu 16.04. "gsettings set org.gnome.desktop.session idle-delay 0" works in both cases (whether Internet is available or not ) in Ubuntu GUI desktop. But actual need is that my qt app runs in openbox (window utility) in full screen in Ubuntu 16.04 and and this "idle-delay" setting works when internet available but it does not work when internet is not available in openbox.
-
User2546 about 7 yearsI have fixed this issue by move mouse cursor by 1 pixel using shell script command in each 30 sec and now monitor is not going to sleep in internet and no internet in both Ubuntu GUI and openbox in Ubuntu 16.04.
-
Mihai Capotă about 5 yearsThe answer is also valid for Ubuntu 18.04.