CentOS/Redhat/Fedora/Ubuntu Turn Off Terminal TTY Screen Saving
一般沒有裝 X11 (No X Window) Linux Distro
在純 Console Mode 下也會進入螢幕保護狀態(黑螢幕 Console Blank)
若要某些測試環境,想要保持螢幕永遠開啟,
可使用下列指令
/usr/bin/setterm -blank 0 -powersave off
舉例:
代碼:
setterm -blank 0
setterm -powersave off
Term Blank/PowerSave Manual
代碼:
-powersave [off]
Turns off monitor VESA powersaving features.
-blank [0-60|force|poke] (virtual consoles only)
Sets the interval of inactivity, in minutes, after which the screen will be automatically blanked
(using APM if available). Without an argument, gets the blank status (returns which vt was blanked
or zero for unblanked vt).
The force option keeps screen blank even if a key is pressed.
The poke option unblank the screen.
|