Skip to content

Instantly share code, notes, and snippets.

@vando vando/ignorelid.sh
Created Jul 3, 2017

Embed
What would you like to do?
Prevent laptop suspends when lid is closed
sed -i '/HandleLidSwitch=/{s/#//;s/suspend/ignore/}' /etc/systemd/logind.conf && \
service systemd-logind restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.