DEV Community

Brisbane Web Developer
Brisbane Web Developer

Posted on

5 4

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more