summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-03-01 13:17:54 +0100
committerTails developers <amnesia@boum.org>2013-03-02 23:28:39 +0100
commit9077ac9a57018a77fb21be65ba53ffb6d91fa62f (patch)
treea98a4cb8a0741bf7a73673b07dbb750ecdcf653c
parent64563a144b85b08c2cebc26038f102eae240a17f (diff)
Enable laptop-mode-tools hard drive power management settings.bugfix/less-aggressive-hard-disk-APM-on-AC
Set APM level to 128 on battery, and to 254 on AC power, as a sid desktop system does. 254 is chosen to avoid causing excessive head load/unload cycles. 128 is chosen because it's the best we can do without going as far as 127, that has its load of issues (e.g. Debian bug #684241)
-rw-r--r--config/chroot_local-patches/enable_laptop-mode-tools_hd-power.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/chroot_local-patches/enable_laptop-mode-tools_hd-power.diff b/config/chroot_local-patches/enable_laptop-mode-tools_hd-power.diff
new file mode 100644
index 0000000..d77965b
--- /dev/null
+++ b/config/chroot_local-patches/enable_laptop-mode-tools_hd-power.diff
@@ -0,0 +1,19 @@
+--- chroot.orig/etc/laptop-mode/laptop-mode.conf 2013-03-01 12:16:16.068000389 +0000
++++ chroot/etc/laptop-mode/laptop-mode.conf 2013-03-01 12:19:34.288000445 +0000
+@@ -280,13 +280,13 @@
+ # Should laptop mode tools control the hard drive power management settings?
+ #
+ # Set to 0 to disable
+-CONTROL_HD_POWERMGMT="auto"
++CONTROL_HD_POWERMGMT=1
+
+
+ #
+ # Power management for HD (hdparm -B values)
+ #
+-BATT_HD_POWERMGMT=1
++BATT_HD_POWERMGMT=128
+ LM_AC_HD_POWERMGMT=254
+ NOLM_AC_HD_POWERMGMT=254
+
+