Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thinkpad ~ $ sudo cat /etc/acpi/events/lid
- # Optionally you can specify the placeholder %e. It will pass
- # through the whole kernel event message to the program you've
- # specified.
- event=button/lid LID close
- action=/etc/acpi/actions/s2ram.sh %e
- thinkpad ~ $ sudo cat /etc/acpi/actions/s2ram.sh
- #!/bin/sh
- # Suspend to ram when the lid is closed
- # First, let's make sure we're not shutting down or rebooting
- if [ ! -e /etc/powerdown ]; then
- sync ; sync # Just in case...
- pm-suspend
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement