Linux中讓顯示器不休眠?
我們可以使用setterm命令:
操作如下:
setterm -blank 0
setterm -blank n (n為等待時間)
setterm命令的其它選項:
setterm: Argument error, usage
setterm
&HTTP://www.aliyun.com/zixun/aggregation/37954.html">nbsp; [ -term terminal_name ]
[ -reset ]
[ -initialize ]
[ -cursor [on|off] ]
[ -repeat [on|off] ]
[ -appcursorkeys [on|off] ]
[ -linewrap [on|off] ]
[ -default ]
[ -foreground black|blue|green |cyan|red|magenta|yellow|white|default ]
[ -background black|blue|green|cyan|red|magenta|yellow|white| default ]
[ -ulcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]
[ -ulcolor bright blue| green|cyan|red|magenta|yellow|white ]
[ -hbcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]
[ -hbcolor bright blue|green|cyan|red|magenta|yellow|white ]
[ -inversescreen [on|off] ]
[ -bold [on|off] ]
[ -half-bright [on|off] ]
[ -blink [on|off] ]
[ -reverse [on|off] ]
[ -underline [on|off] ]
[ -store ]
[ -clear [all|rest] ]
[ -tabs [ tab1 tab2 tab3 ... ] ] (tabn = 1-160)
[ -clrtabs [ tab1 tab2 tab3 ... ] ] (tabn = 1-160)
[ -regtabs [1-160] ]
[ -blank [0-60|force|poke] ]
[ -dump & nbsp; [1-NR_CONSOLES] ]
[ -append [1-NR_CONSOLES] ]
[ -file dumpfilename ]
[ -msg [on|off] ]
[ -msglevel [0-8] ]
[ -powersave [on|vsync|hsync|powerdown|off] ]
[ -powerdown [0-60] ]
[ -blength [0-20 00] ]
[ -bfreq freqnumber ]