Created
March 19, 2018 09:37
-
-
Save liziwl/2681c1a64e22d0e846b75ff34577987d to your computer and use it in GitHub Desktop.
Ubuntu 禁用关闭笔记本盖子自动待机
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ubuntu 禁用关闭笔记本盖子自动待机 | |
这个问题需要修改 Login Manager 配置文件 | |
打开终端输入如下命令: 修改 HandleLidSwitch 项,其值修改成 ignore | |
sudo vi /etc/systemd/logind.conf | |
然后将其中的: | |
#HandleLidSwitch=suspend | |
改成: | |
HandleLidSwitch=ignore | |
之后重启服务 systemd-logind | |
sudo service systemd-logind restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment