Linux text terminal/character Interface screensaver cancellation
During our daily use of Linux, we often encounter the use of screen terminals after a period of time, the monitor off
Close, there is no display on the screen. After a while, the screen closes without any display.
If the system freezes or dies at this time, and the screen has output. When screen protection is encountered, you cannot see any
what information. At this point, we
Screen protection needs to be turned off.
The screen protection commands for canceling text terminals are:
#setterm –blank 0–powersave Off–powerdown 0
If we want to turn on the text terminal screensaver again, use the following parameters:
#setterm –blank 1–powersave On–powerdown 5
Attention:
1. The above command must be performed on the screen terminal to be effective and the screen will not be changed through SSH
End property.
2. The command can be executed as non-root.
X Windows Screensaver Settings command: Xset
You can use the Xset command to set items:
Xset s #设置屏保时间为300秒, time unit is seconds
Xset S 0 #关闭屏幕保护
Xset s off
Xset DPMS 600 900 1200 # Three numeric values are standby, Suspend, off, what do you mean, no more say, unit seconds
Xset-dpms #关闭电源管理
You can also edit xorg.conf
Add the following lines to the Serverlayerout field:
Option "Blanktime" "5" #注意这里的时间值为分钟
Option "Standbytime" "10"
Option "Suspendtime" "15"
Option "Offtime" "20"
The time value is set to 0 to close the item,
The effect is the same. You can use Xset-q to view settings.
Xset b 0 can turn off the ringtones under X
Xset b off is all the same.