sudo vim /etc/systemd/logind.conf
然后将其中的:
#HandleLidSwitch=suspend
改成:
HandleLidSwitch=ignore //保存退出
重启
service systemd-logind restart
sudo vim /etc/systemd/logind.conf
然后将其中的:
#HandleLidSwitch=suspend
改成:
HandleLidSwitch=ignore //保存退出
重启
service systemd-logind restart