Skip to content

Instantly share code, notes, and snippets.

@scodx
Created November 16, 2018 15:56
Show Gist options
  • Save scodx/9b079af24e62c5ec4df9bf8b2fa4e669 to your computer and use it in GitHub Desktop.
Save scodx/9b079af24e62c5ec4df9bf8b2fa4e669 to your computer and use it in GitHub Desktop.

To disable entering the sleep mode I had to edit the /etc/systemd/logind.conf file and modify the line:

HandleLidSwitch=suspend

to

HandleLidSwitch=ignore

then

sudo service systemd-logind restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment