Snakeoil Forums

Full Version: How to make HandleLidSwitch=ignore permanent?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I have problem configuring HandleLidSwitch permanently?

I edit /etc/systemd/logind.conf and add HandleLidSwitch=ignore, however it gets removed after activating new kernel and reboot and the laptop goes to sleep after I close the lid.

How can I make this switch configuration permanent?

Thanks
Bela
(30-Jun-2019, 08:55 PM)bela.pecsek Wrote: [ -> ]Hi all,

I have problem configuring HandleLidSwitch permanently?

I edit /etc/systemd/logind.conf and add HandleLidSwitch=ignore, however it gets removed after activating new kernel and reboot and the laptop goes to sleep after I close the lid.

How can I make this switch configuration permanent?
Snakeoil don't modify that file.

Run this command after you have modified the above file. That should make your changes "stick".
Code:
sudo systemctl restart systemd-logind