sudo gedit /etc/systemd/logind.conf 打开文件后修改下面这行: #HandleLidSwitch=suspend 改成这样: HandleLidSwitch=ignore