Linux off hibernation and screensaver mode

Source: Internet
Author: User

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” “0EndSection

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.