Skip to content

Instantly share code, notes, and snippets.

@vando vando/
Created Jul 3, 2017

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.