Gentoo Wiki


This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

To stop your screen from going black after a few min, run this command to turn it off:

setterm -blank 0

Addition: You can set the monitor to go to "VESA powerdown Mode" after a specified time, especially useful if your box reboots on powerloss:

setterm -powerdown [0-60]

To disable powersaving:

setterm -powersave off

If you want to enable this settings by default on startup, edit

File: /etc/conf.d/local.start
for x in $(seq 1 "${RC_TTY_NUMBER}") ; do
       setterm -blank 0 -powersave off > /dev/vc/${x}

On some systems /dev/vc/${x} may not exist - in this case you need to change it to /dev/vcs${x}.
If /dev/vcs${x} doesn't exist, too, try /dev/tty${x}.
(Use ls -l /dev/vc* to see what is available at your system.)

i suggest to use tty value for avoid blanking on console (useful to see what happened on kernel panic)

File: /etc/conf.d/local.start
## disable console blank screen
for index in $(seq 1 6) # by default only six console are enabled at startup
  setterm -blank 0 -powersave off > /dev/tty${index}
Retrieved from ""

Last modified: Fri, 05 Sep 2008 23:19:00 +0000 Hits: 26,680