sudo nano /etc/systemd/logind.conf
Uncomment this line
#HandleLidSwitch=suspend
And change it to
HandleLidSwitch=ignore
Save, then do
sudo service systemd-logind restart
or
sudo systemctl restart systemd-logind
Негізгі бет Prevent Closing Laptop Lid from Suspending Ubuntu Server
Пікірлер: 45