设置笔记本安装飞牛盒盖不关机

连接SSH修改文件


nano /etc/systemd/logind.conf

添加以下两行 设置修改关盖行为


HandleLidSwitch=ignore

HandleLidSwitchExternalPower=ignore

生效配置文件


sudo systemctl restart systemd-logind

设置即完毕

个人笔记记录