Due to special requirements, I want a Linux host to always display a program. The Monitor cannot be shut down, sleep, or enter the screen saver mode. Environment: Ubuntu is installed in minimal mode with a lightweight desktop openbox (not gnome ). Because of X's screen protection, the power management mechanism is different from gnome. Therefore, you cannot set a tool for gnome. Fortunately, the xset tool is mainly used to start the xset program.
Due to special requirements, I want a Linux host to always display a program. The Monitor cannot be shut down, sleep, or enter the screen saver mode.
Environment: Install and install lightweight desktop openbox (non-gnome) in Ubuntu 11.10 in minimal mode ).
Because of X's screen protection, the power management mechanism is different from gnome. Therefore, you cannot set a tool for gnome.
Fortunately, we found the tool named xset.
The xset program sets the properties of X windows after x windows is started.
You can use man xset to view the specific usage. It is not described here.
You can use the xset command to set items:
| 1234 |
#xset s 300# Set the screen saver time300Seconds, in seconds#xset s 0# Disable screen saver#xset dpms 0 0 0 # The three values are Standby, Suspend, and Off, in seconds.# Xset-dpms # Power off Management |
You can also edit xorg. conf and add the following options to disable xscreen saver directly:
| 123456 |
Section “ServerFlags” Option “BlankTime” “0# Disable black screenOption “StandbyTime” “0# Disable the standby functionOption “SuspendTime” “0# Disable sleepOption “OffTime” “0″ EndSection |
After modification, restart x to take effect.
Editing the xorg. conf file has the same effect as using the xset command. you can use xset-q to view the settings and the current configuration.
Note:
If the time value is set to 0, this item is disabled.
For more configurations, see:Http://www.x.org/archive/X11R6.9.0/doc/html/xorg.conf.5.htmlAnd find "ServerFlags ".
This article is from the systems blog, be sure to keep this source http://systems.blog.51cto.com/2500547/1338050