summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2008-04-02 09:41:12 +0200
committerMichael Biebl <mbiebl@gmail.com>2008-04-02 09:41:12 +0200
commita410403c9fcf04841805d0311424bf6d7d3e083e (patch)
tree06a68f845c0c338c7bc971aa8dd9e6d1b6c3c712 /pm
parent9a5792fbc6198c3b2a0fa89e4765b199cc65fb83 (diff)
Check for s2ram in check_suspend().
The uswsusp sleep module uses s2ram now for do_suspend(), so check for the command in check_suspend().
Diffstat (limited to 'pm')
-rwxr-xr-xpm/module.d/uswsusp1
1 files changed, 1 insertions, 0 deletions
diff --git a/pm/module.d/uswsusp b/pm/module.d/uswsusp
index 48cea40..07d2cc5 100755
--- a/pm/module.d/uswsusp
+++ b/pm/module.d/uswsusp
@@ -34,6 +34,7 @@ get_quirks()
check_suspend()
{
+ command_exists s2ram || return 1
[ -c /dev/pmu ] && return 0
grep -q mem /sys/power/state && return 0
}