summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2010-06-04 08:18:31 -0500
committerVictor Lowther <victor.lowther@gmail.com>2010-06-05 13:42:46 -0500
commit21558e0ceb21620ac78f5ef81f937a404fa1abb1 (patch)
treef0a7d72d4e286d60a1ad5a290106b18c7969090c /pm
parent381ff7b01f459e5767d927386dad48e52d2c5f02 (diff)
Add support for ext4 filesystems in journal_commit.
Also force pm-utils to disable powersaving features across a suspend/resume.
Diffstat (limited to 'pm')
-rw-r--r--pm/power.d/journal-commit2
-rw-r--r--pm/sleep.d/00powersave2
2 files changed, 3 insertions, 1 deletions
diff --git a/pm/power.d/journal-commit b/pm/power.d/journal-commit
index ac43b1b..ee8920c 100644
--- a/pm/power.d/journal-commit
+++ b/pm/power.d/journal-commit
@@ -35,6 +35,8 @@ handle_ext3()
remount_fs $1 "commit=${2}"
}
+handle_ext4() { handle_ext3 "$@"; }
+
handle_filesystems()
{
# $1 = new journal commit time in seconds
diff --git a/pm/sleep.d/00powersave b/pm/sleep.d/00powersave
index b9b3ccd..bf0f98b 100644
--- a/pm/sleep.d/00powersave
+++ b/pm/sleep.d/00powersave
@@ -5,7 +5,7 @@
command_exists pm-powersave || exit $NA
case $1 in
-# suspend|hibernate) pm-powersave false ;;
+ suspend|hibernate) pm-powersave false ;;
resume|thaw) pm-powersave ;;
*) exit $NA ;;
esac