Diff for /wikisrc/tutorials/how_to_blank_the_screen_on_the_console.mdwn between versions 1.1 and 1.2

version 1.1, 2011/11/20 20:55:21 version 1.2, 2012/02/05 07:14:36
Line 1 Line 1
 To blank your screen on the console, the command [screenblank(1)](http://netbsd.gw.com/cgi-bin/man-cgi?screenblank+1+NetBSD-current) is what you need. It is part of the base system, so you don't need to install it.  To blank your screen on the console, the command [screenblank(1)](http://netbsd.gw.com/cgi-bin/man-cgi?screenblank+1+NetBSD-current) is what you need. It is part of the base system, so you don't need to install it. 
   
 # screenblank  # 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.  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      # screenblank -d 300
          
   
 #  Known Problems  #  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:  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: 
          
     #!/bin/sh      #!/bin/sh
     /usr/sbin/screenblank -d 0 -e 0 && read      /usr/sbin/screenblank -d 0 -e 0 && read
     /usr/bin/pkill screenblank      /usr/bin/pkill screenblank
          
   
 #  Additional Information  #  Additional Information 
   
   * [screenblank(1)](http://netbsd.gw.com/cgi-bin/man-cgi?screenblank+1+NetBSD-current) Manpage    * [screenblank(1)](http://netbsd.gw.com/cgi-bin/man-cgi?screenblank+1+NetBSD-current) Manpage 

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb