How to set CentOS not to sleep

Release: 2020-03-26 17:52:55
Original
6410 people have browsed it

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"
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template