#!/bin/sh # Simple suspend script # Based on work from: # Bill Nottingham # Peter Jones # David Zeuthen # The rule here? Simplicity. . /etc/pm/functions take_suspend_lock || exit 1 run_hooks suspend sync ; sync ; sync echo -n "mem" > /sys/power/state run_hooks resume reverse remove_suspend_lock 200