Ubuntu防止合笔记本后挂起
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
Leave a comment