修改 Login Manager的配置文件。
sudo gedit /etc/systemd/logind.conf
将其中的
#HandleLidSwitch=suspend
改成或者添加一行
HandleLidSwitch=ignore
然后重启服务:
sudo restart systemd-logind
或者这样重启:
service systemd-logind restart
修改 Login Manager的配置文件。
sudo gedit /etc/systemd/logind.conf
将其中的
#HandleLidSwitch=suspend
改成或者添加一行
HandleLidSwitch=ignore
然后重启服务:
sudo restart systemd-logind
或者这样重启:
service systemd-logind restart