Ubuntu 防止合笔记本后挂起
编辑 logind.conf
vim /etc/systemd/logind.conf
将以下参数修改为 ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
重启 systemd-logind 服务
sudo systemctl restart systemd-logind
vim /etc/systemd/logind.conf
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
sudo systemctl restart systemd-logind