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!