取消盒盖休眠的方法

编辑  系统文件

vi /etc/systemd/logind.conf



找到

HandleLidSwitch 这行,去掉开头的#并改为:


HandleLidSwitch=lock

按ECS输入:wq 保存退出



运行 systemctl restart systemd-logind 命令生效。

最后修改:2017 年 12 月 13 日
如果觉得我的文章对你有用,请随意赞赏