File:  [NetBSD Developer Wiki] / wikisrc / tutorials / how_to_blank_the_screen_on_the_console.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Sun Nov 20 20:55:21 2011 UTC (7 years, 2 months ago) by mspo
Branches: MAIN
CVS tags: HEAD
import all of the how-to articles from the wiki

To blank your screen on the console, the command [screenblank(1)]( is what you need. It is part of the base system, so you don't need to install it. 

# screenblank

This will activate blanking with a default of 600 Seconds (10 Minutes). If you wish to activate it in another time interval use the -d Option. 
    # screenblank -d 300

#  Known Problems 

If you are using screenblank on a filesystem that is mounted with noatime/nodevmtime (such as a system running off of a compact flash card), screenblank will not properly time out when you set -d, nor will it receive keyboard inputs to wake. Often on small devices that do not have a hardware method of turning off the screen, this can be problematic and actually lock you out of a session until you reboot. Thus, the following is a known "safe" method for blanking a small devices screen even with noatime/nodevmtime: 
    /usr/sbin/screenblank -d 0 -e 0 && read
    /usr/bin/pkill screenblank

#  Additional Information 

  * [screenblank(1)]( Manpage 

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb