less than 1 minute read

Ubuntu防止合笔记本后挂起

编辑logind.conf

vim /etc/systemd/logind.conf

将以下参数修改为ignore

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

重启 systemd-logind 服务

sudo systemctl restart systemd-logind

Updated:

Leave a comment