[Ubuntu] 笔记本禁止盒盖休眠
问题
在笔记本上安装Ubuntu 20.04之后发现合上屏幕会导致系统休眠, 这显然不符合它作为一个服务器应该做的事情(root权限) 编辑”/etc/systemd/logind.conf”, 编辑行:
1
2HandleLidSwitch=ignore
LidSwitchIgnoreInhibited=yes重启 systemd-login 服务:
1
sudo systemctl restart systemd-logind
[Ubuntu] 笔记本禁止盒盖休眠
https://www.aojie654.com/20210926_linux_ubuntu_disable_hibernate_lid/