Snakeoil Forums
How to make HandleLidSwitch=ignore permanent? - Printable Version

+- Snakeoil Forums (https://forums.snakeoil-os.net)
+-- Forum: Snakeoil Topics (https://forums.snakeoil-os.net/Forum-Snakeoil-Topics)
+--- Forum: Support & Troubleshooting (https://forums.snakeoil-os.net/Forum-Support-Troubleshooting)
+--- Thread: How to make HandleLidSwitch=ignore permanent? (/Thread-How-to-make-HandleLidSwitch-ignore-permanent)



How to make HandleLidSwitch=ignore permanent? - bela.pecsek - 30-Jun-2019

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


RE: How to make HandleLidSwitch=ignore permanent? - agent_kith - 01-Jul-2019

(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