Gentoo Wiki ArchivesGentoo Wiki

TIP_Console_screen_saver

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}
done

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
  do
  setterm -blank 0 -powersave off > /dev/tty${index}
  done
Retrieved from "http://www.gentoo-wiki.info/TIP_Console_screen_saver"

Last modified: Sat, 06 Sep 2008 09:19:00 +1000 Hits: 28,108

Created by NickStallman.net, Luxury Homes Australia
Real estate agents should be using interactive floor plans and real estate agent tools.