We may edit the configure file "/etc/systemd/logind.conf" and change one line from
#HandleLidSwitch=suspendto
HandleLidSwitch=ignoreAnd then restart the service.
Restart the systemd daemon with this command:
sudo restart systemd-logindor, from 15.04 onwards:
sudo service systemd-logind restartWe can also use command:
sudo service systemd-logind statusTo check current status.
See: How can I tell Ubuntu to do nothing when I close my laptop lid? - Ask Ubuntu
Comments
No comments yet — be the first to write one.