Skip to content

Instantly share code, notes, and snippets.

@glegoux
Last active July 27, 2017 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glegoux/99972ba38b4ea5cccaad to your computer and use it in GitHub Desktop.
Save glegoux/99972ba38b4ea5cccaad to your computer and use it in GitHub Desktop.
[Text] Do not suspend computer after closing laptop lid on Linux.
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