Prevent Screen Blanking on Xubuntu CLI / Slim / Openbox Install on Asus EB1012 nettop

Normally I am able to take care of screen blanking through the gui powersaving options in Xubuntu, however my command line install followed by installing openbox and using slim as a login manager presented me with real problems. teh screen would blank and half kill the x server, leaving a reboot as the only option. I found some xset options which I put into a script and added this to, which seemed to take care of X issues, but the terminal blanking was still going on. Using setterm I was able to stop terminal blanking but had to find a place to put it on startup. This turned out to be in /etc/profile (for all users). So now writing this post from my non blanking setup 🙂

sudo nano ~/.config/openbox/


xset s blank

xset s 0 0

xset -dpms

I was able to test this by outputting xset -q > test.txt at the end of the script, which produced

Keyboard Control:
auto repeat:  on    key click percent:  0    LED mask:  00000000
XKB indicators:
00: Caps Lock:   off    01: Num Lock:    off    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:  660    repeat rate:  25
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:  0    cycle:  0
default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
Font Path:
DPMS (Energy Star):
Standby: 600    Suspend: 600    Off: 600
DPMS is Disabled

The important bits for this are in bold.

Now add the script to

nano ~/.config/openbox/

and add the line:

~/.config/openbox/ &

Now for terminal blanking

sudo nano /etc/profile

scroll to the bottom and add

setterm -blank 0 -powersave off -powerdown 0

[EDIT] You can also put this command in /etc/rc.local, it works just the same 🙂

A reboot is necessary to test it out.

More information is available from man xset and man setterm but google is better to get real examples of usage.

Looking for a way to view the current settings for setterm, to see what is in place……

Leave a Reply

Your email address will not be published. Required fields are marked *