Advertisement
Guest User

Untitled

a guest
Apr 11th, 2010
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. thinkpad ~ $ sudo cat /etc/acpi/events/lid
  2. # Optionally you can specify the placeholder %e. It will pass
  3. # through the whole kernel event message to the program you've
  4. # specified.
  5.  
  6. event=button/lid LID close
  7. action=/etc/acpi/actions/s2ram.sh %e
  8.  
  9.  
  10. thinkpad ~ $ sudo cat /etc/acpi/actions/s2ram.sh
  11. #!/bin/sh
  12.  
  13. # Suspend to ram when the lid is closed
  14.  
  15. # First, let's make sure we're not shutting down or rebooting
  16. if [ ! -e /etc/powerdown ]; then
  17. sync ; sync # Just in case...
  18. pm-suspend
  19. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement