Ubuntu 设置不休眠
sudo vim /etc/systemd/logind.conf
把#HandleLidSwitch=suspend 修改为 HandleLidSwitch=ignore
然后service systemd-logind restart 或者reboot
sudo vim /etc/systemd/logind.conf
把#HandleLidSwitch=suspend 修改为 HandleLidSwitch=ignore
然后service systemd-logind restart 或者reboot