ACPI, which stands for Advanced Configuration and Power Interface, is the successor to APM (Advanced Power Management). The specification provides for many functions besides power management, such as thermal management and plug-and-play events.
The purpose of this post is to outline the steps for setting up ACPI suspend to memory under Fedora Core 4. When the lid is closed on the laptop, the system should suspend.
File setup
Create the file /etc/acpi/events/lid.conf containing the lines
event=button[/]lid action=/etc/acpi/actions/sleep.sh
Create the file /etc/acpi/actions/sleep.sh containing the lines
#!/bin/sh /usr/bin/dbus-send --system --dest=org.freedesktop.NetworkManager --type=method_call /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.sleep /sbin/hwclock --systohc echo -n mem > /sys/power/state /sbin/hwclock --hctosys
and make it executable.
chmod 755 /etc/acpi/actions/sleep.sh
Helpful Sources of Information
- http://www.ces.clemson.edu/linux/suspend_mem.shtml
- http://gentoo-wiki.com/TIP_ACPI_basic_configuration
- http://www.zvolve.com/~garry/lappy.html#power_switch_shut_down