DEV Community

Brisbane Web Developer
Brisbane Web Developer

Posted on

 

How to avoid turning off Ubuntu Laptop with the lid closed

Summary

  • My laptops running Debian based distributions (Kubuntu and Peppermint OS) get suspended when I closed the lid after logging out ( = I guess the setting for KDE gets disregarded).

Solution

/etc/systemd/logind.conf
======
HandleLidSwitch=ignore
Enter fullscreen mode Exit fullscreen mode
sudo systemctl restart systemd-logind
Enter fullscreen mode Exit fullscreen mode

Reference

Top comments (0)

Here is a post you might want to check out:

Regex for lazy developers

regex for lazy devs

Sorry for the callout 😆