How to avoid turning off Ubuntu Laptop with the lid closed

Brisbane Web Developer - May 13 '22 - - Dev Community

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

. . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player