How To: Disable laptop lid open / close events on any Linux using systemd

Edit /etc/systemd/logind.conf and change the HandleLidSwitch to the following:


Then you could try to restart the systemd-logind service with:

systemctl restart systemd-logind

BUT it crashed my machine when I did, so perhaps just a reboot for it to take effect would be the best option.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.