Ubuntu – Ubuntu 16.04 keeps turning off the screen after 10 minutes


I have Ubuntu 16.04 installed with Unity (Ubuntu-Desktop).

As mentioned in several other threads, I have:

  • Under Settings → Brightness & Lock set Turn screen off when inactive for to “never”.
  • Under Settings → Power set Suspend when inactive for to “don’t suspend”.
  • With dconf-editor in the directory /org/gnome/settings-daemon/plugins/power unchecked active.
  • With dconf-editor in the directory /org/gnome/desktop/screensaver unchecked idle-activation-enabled (even though that seems deprecated in 16.04).
  • Run gsettings set org.gnome.desktop.session idle-delay 0
  • Run gsettings set org.gnome.desktop.screensaver lock-enabled false

Still, Ubuntu keeps turning the screen off after 10 minutes (not locking it though). Any ideas on what to try?

Also, I have the same problem whether I decide to launch Unity or not. (When I'm in terminal only, not running LightDM, screen also goes black after 10 minutes.)

Output from xset q:

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000002
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    on     02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  500    repeat rate:  33
  auto repeating keys:  00ffffffdffffbbf
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  600
  default colormap:  0x22    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
DPMS (Energy Star):
  Standby: 600    Suspend: 600    Off: 600
  DPMS is Enabled
  Monitor is On

Best Answer

Your monitor is being turned off every 10 minutes because of the setting you have in:

timeout:  600    cycle:  600

The 600 seconds timeout is 10 minutes. You can disable this timeout by changing this setting to 0.

You can do this with:

$ xset s 0 s blank

I don't know what in your system is making this a default. But you can make this an automatic change by creating a script to change this and placing the script in your Startup Applications configuration:

Script to disable blanking:


xset s 0 s blank

Copy the script to ~/bin/.

Now set it to automatically run by typing start applications in the Ubuntu Search button and clicking Startup Applications

Click the option to Add, then browse to the script and add it.

Related Question