Linux cancels screensavers

Source: Internet
Author: User
Ubuntu defaults to 10 minutes to get into the screensaver. I use Ubuntu server12.04, because there is no desktop, can only use the command. As follows: Setterm-blank 0//Disable screensaver Setterm-blank 1//1 minutes after the start screensaver Settern is the system comes with the command, the function is quite powerful, specifically available setterm--help view. such as: Setterm-dump 1//Get 1 screen information, to obtain 2 screen information, Setterm-dump 2 can be. But the above the turn off screensaver command only applies to this screen, I have not found the file about the screensaver settings for the time being. If the X graphical interface is installed, use the command xset, such as: XSET-DPMS//Turn off screensavers xset +dpms//Restore screensaver Specific function usage, you can xset--help view.
You can use the Xset command to set items:
Xset s #设置屏保时间为300秒, unit of time in seconds
Xset S 0 #关闭屏幕保护
Xset s off
Xset DPMS 600 900 1200 # Three values are standby, Suspend, OFF, specifically what does not mean to 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 ringtone under X
Xset b off is the same

Linux cancels screensavers

Related Article

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.