File:  [NetBSD Developer Wiki] / wikisrc / tutorials / how_to_blank_the_screen_on_the_console.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (5 years, 1 month ago) by schmonz
Branches: MAIN
CVS tags: HEAD

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