Home  >  Article  >  Operation and Maintenance  >  How to set CentOS not to sleep

How to set CentOS not to sleep

尚
Original
2020-03-26 17:52:556422browse

How to set CentOS not to sleep

The screen is turned off and there is no operation for a long time, which may cause centos to enter deep sleep. At this time, the power button can only be used to force restart. You can disable hibernation by modifying the X11 configuration. The configuration file is /etc/X11/xorg.conf. Remember to back up this file before modifying it to prevent the X11 desktop from being unable to be used due to configuration errors.

Recommended tutorial: centos tutorial

The modification involves two places, the first is Section "Monitor", check whether there is DPMS in its configuration, and its value is false, ensure 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

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to set CentOS not to sleep. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn