How can I tell Ubuntu to do nothing when I close my laptop lid?
To make Ubuntu do nothing when laptop lid is closed:
- Open the
/etc/systemd/logind.conf
file in a text editor as root, for example,
sudo -H gedit /etc/systemd/logind.conf
- Add a line
HandleLidSwitch=ignore
(make sure it's not commented out!), - Restart the systemd daemon with this command:
sudo restart systemd-logind