diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-07-02 20:57:10 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-07-02 20:57:10 -0500 |
commit | 873733dad6476a7c5f7ec6068fb0be7b4c62edbb (patch) | |
tree | cf80abb9ea5579dde8aa246c0c4bc243db4d17f5 | |
parent | d06ab6c9c11c21d98ffbee19047678a1bd60b6a0 (diff) |
Modify the tuxonice sleep module to modify $REVERSE for suspend_hybrid
pm-utils can handle suspend_hybrid correctly now, so make use of that
functionality.
-rwxr-xr-x | pm/module.d/tuxonice | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pm/module.d/tuxonice b/pm/module.d/tuxonice index 32d7584..57b7bb8 100755 --- a/pm/module.d/tuxonice +++ b/pm/module.d/tuxonice @@ -45,4 +45,7 @@ do_suspend_hybrid() { echo 3 >"${TUXONICE_LOC}/powerdown_method" echo anything >"${TUXONICE_LOC}/do_hibernate" + [ -f /sys/power/tuxonice/did_suspend_to_both ] && \ + [ "$(cat /sys/power/tuxonice/did_suspend_to_both)" != "1" ] && \ + REVERSE="thaw" } |