summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Smith <dylan.ah.smith@gmail.com>2010-05-31 14:04:29 -0500
committerVictor Lowther <victor.lowther@gmail.com>2010-05-31 14:04:29 -0500
commitb669f97fd18d6de49c6b6d6a28b77d6ecb321a5f (patch)
tree02eb0f4f327151f1b3541a2deadc3147f79c4e70
parent619a0a8980c6e7294ac303da7ca3b2298fbe919e (diff)
Try falling back to standby suspend of mem is not available.
It saves less power, but is the only option available on some systems. Thanks, Dylan Smith.
-rw-r--r--pm/pm-functions.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index dfbc59f..c1b00b3 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -296,6 +296,9 @@ if [ -z "$SUSPEND_MODULE" ]; then
elif [ -c /dev/pmu ] && pm-pmu --check; then
SUSPEND_MODULE="kernel"
do_suspend() { pm-pmu --suspend; }
+ elif grep -q standby /sys/power/state; then
+ SUSPEND_MODULE="kernel"
+ do_suspend() { echo -n "standby" >/sys/power/state; }
fi
fi