Created
February 26, 2013 20:28
-
-
Save emres/5041854 to your computer and use it in GitHub Desktop.
/etc/acpi/local/lid.sh.post file as a workaround for 'suspend not working when laptop is closed' problem.
This file contains hidden or 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
#!/bin/bash | |
grep -q closed /proc/acpi/button/lid/*/state | |
if [ $? = 0 ] | |
then | |
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment