修改启动引导参数
vim /etc/grub.conf
quiet 后面添加 pcie_aspm=off
重启后
[root@localhost ~]# dmesg | grep PCIe
[ 0.000000] PCIe ASPM is disabled
关闭tuned
systemctl stop tuned
systemctl disable tuned
配置 xorg.conf,且不能出错,否则系统可能会起不来,所以配置时要格外小心。
vi /etc/X11/xorg.conf
添加以下内容
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "Monitor"
Option "DPMS" "false"
EndSection
重启CentOS系统即可!