linux系统关闭休眠命令

linux系统关闭休眠命令,第1张

关闭电脑休眠功能

先找到文件/etc/systemd/logind.conf进行编辑:

sudo vi /etc/systemd/logind.conf

找到下列条目

#HandleLidSwitch=suspend

改成如下

HandleLidSwitch=ignore

保存退出,重启系统

配置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

设置后重启


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7308575.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-04
下一篇2023-04-04

发表评论

登录后才能评论

评论列表(0条)

    保存