Because of special needs, I want a Linux host to always show a program, the monitor can not shut down or hibernate or into screensaver mode.
Environment: Ubuntu 11.10 Minimized mode installs and installs Lightweight desktop Openbox (non-GNOME).
Because of the screen protection of X, the power management mechanism is not the same as GNOME. So you can't use a set of tools for GNOME.
Fortunately, we found a gadget called Xset.
The Xset program mainly sets the X Windows properties after the start of X windows.
Specific usage can be viewed using the man xset. No longer described here.
You can use the Xset command to set items:
1234 |
#xset s 300 #设置屏保时间为 300 秒,时间单位为秒 #xset s 0 #关闭屏幕保护 #xset dpms 0 0 0 # 三个数值分别为Standby、Suspend、Off,单位秒 #xset -dpms #关闭电源管理 |
You can also edit xorg.conf and add the following options to close the Xscreen saver directly:
123456 |
Section “ServerFlags” Option “BlankTime” “ 0 ″ #关闭黑屏 Option “StandbyTime” “ 0 ″ #关闭待机功能 Option “SuspendTime” “ 0 ″ #关闭睡眠功能 Option “OffTime” “ 0 ″ EndSection |
Restart X when modified to take effect.
You can use Xset-q to view settings and current configurations as you edit the xorg.conf file and use the Xset command effect.
Note:
The time value is set to 0 to close the item.
For more configuration see: Http://www.x.org/archive/X11R6.9.0/doc/html/xorg.conf.5.html and find "Serverflags".
Linux off hibernation and screensaver mode