SGMLXML.net A place for SGML and XML application developers.

August 10, 2005

Suspend to Memory

Filed under: Linux — cangione @ 12:15 am







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


No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress