Last active
July 27, 2017 21:35
-
-
Save glegoux/99972ba38b4ea5cccaad to your computer and use it in GitHub Desktop.
[Text] Do not suspend computer after closing laptop lid on Linux.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open the /etc/systemd/logind.conf file in a text editor as root, for example, | |
sudo -H gedit /etc/systemd/logind.conf | |
Add a line HandleLidSwitch=ignore (make sure it's not commented out!), | |
Restart the systemd daemon with this command: | |
sudo restart systemd-logind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment