21
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 20 Jul 2026
21 points (100.0% liked)
Linux
14381 readers
326 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 3 years ago
MODERATORS
You can try to set
HandleLidSwitch=ignoreevent defined in/etc/systems/logind.conf. That will definitely prevent the laptop from sleeping on lid close. It might also prevent the laptop from waking on lid open.Regardless, I suggest hunting down what broke that setup recently. Its probably some new daemon is responsible for configuring those events in a less arcane way.
Thank you. In my case, unfortunately, changing the
HandleLidSwitch*options didn't work. Luckily changingudevsettings did the job!Just for completions sake. Did you change them all?
There's
HandleLidSwitch,HandleLidSwitchExternalPowerandHandleLidSwitchDockedEdit: Oh, I did missed the "*". So assume that is a yes.
Yes, all three. Also tried adding these options in a separate file in
logind.conf.d/. Some searches on StackExchange show that this worked for some, indeed.