在終端中編輯 logind.conf sudo vim /etc/systemd/logind.conf 打開文件后修改下面這行: #HandleLidSwitch=suspend #修改后如下 HandleLidSwitch=ignore 保存后重啟即可 reboot