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

Imagine monitoring that's actually built for developers

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay