# Lid close suspend

```
sudo vim /etc/systemd/logind.conf
```

When the file opens, find out the line **#HandleLidSwitch=suspend** and change it to ignore :

* **HandleLidSwitch=lock** – lock when lid closed.
* **HandleLidSwitch=ignore** – do nothing.
* **HandleLidSwitch=poweroff** – shutdown.
* **HandleLidSwitch=hibernate** – hibernate Ubuntu.

```
systemctl restart systemd-logind.service
```
