Summary of the method of preventing CentOS automatic dormancy

Source: Internet
Author: User
Tags centos

You can disable hibernation by modifying the configuration of the X11,/etc/x11/xorg.conf, and remember to back up the file before modifying it to prevent the X11 desktop from being configured incorrectly.

The modification involves two places, the first is section "Monitor" to see if there are any DPMS in its configuration, and the value is false to ensure that the configuration information is as follows:

Option "DPMS" "false" the second modification is to add a section "Serverflags" containing the following:

section "Serverflags"
Option "Blanktime" "0"
Option "Standbytime" "0"
Option "Suspendtime" "0"
Option "Offtime" "0"
Endsection


Remove automatic standby hibernation.

VI etcx11xorg.conf

Add the following content

section "Serverflags"
Option "Blanktime" "0"
Option "Standbytime" "0"
Option "Suspendtime" "0"
Option "Offtime" "0"
Endsection

section "Monitor"
Option "DPMS" "false"
Endsection

Reboot the server, it didn't happen for a long time.

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.