Saturday, February 10, 2007

How to suspend and hibernate (suspend to disk) a laptop under Linux

/etc/acpi/events/lid:

event=button[ /]lid.*
action=/etc/acpi/actions/lid.sh


/etc/acpi/events/pwrbtn:

event=button[ /]power
action=/etc/acpi/actions/pwrbtn.sh


/etc/acpi/actions/lid.sh:

#!/bin/sh
/usr/local/sbin/suspend.sh


/etc/acpi/actions/pwrbtn.sh:

#!/bin/sh
hibernate

No comments: