Disable centos sleep

Source: Internet
Author: User
The deep sleep of centos may occur because the screen is closed and there is no operation for a long time. in this case, you can only force the restart by using the power key. You can modify the X11 configuration to disable sleep. the configuration file is/etc/X11/xorg. conf. remember to back up the file before modifying this file to prevent X11 desktop failure due to configuration errors. The modification involves two parts. The first part is Section "Monitor". check whether DPMS exists in the configuration and its value is false. ensure that the configuration information is as follows: Optio

The deep sleep of centos may occur because the screen is closed and there is no operation for a long time. in this case, you can only force the restart by using the power key. You can disable sleep by modifying the X11 configuration. the configuration file is/etc/X11/xorg. conf,Remember to back up before modifying this fileTo prevent X11 desktop failure due to configuration errors.

The modification involves two parts. The first part is Section "Monitor". check whether DPMS exists in the configuration and its value is false. make sure that the configuration information is as follows:

    Option      "DPMS" "false"

The second modification is to add a Section "ServerFlags", which contains the following content:

Section "ServerFlags"    Option      "BlankTime" "0"    Option      "StandbyTime" "0"    Option      "SuspendTime" "0"    Option      "OffTime" "0"EndSection


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.