Screen goes blank in 10 minutes: deactivate it
By default, screens under Ubuntu go blank in 10 minutes. The screen is not turned off, it just goes blank. How to deactivate this feature?
I found the solution here.
“xset q” shows you the information on the current settings for X. Sample output:
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 fadfffefffedffff 9fffffffffffffff fff7ffffffffffff 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 Colors: default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffffff Font Path: /usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins DPMS (Energy Star): Standby: 0 Suspend: 0 Off: 0 DPMS is Enabled Monitor is On
The interesting part for us is here:
Screen Saver: prefer blanking: yes allow exposures: yes timeout: 600 cycle: 600
It means that the screen goes blank in 600 seconds. Here is how to deactivate it:
xset s 0 0
If you want to set it permanently, you can modify your
xorg.conf file as explained here. I simply added “xset s 0 0” to the end oy my