31.10.07

Default laptop manufacturer settings decrease HDD life time

There is obviously a bag in the power management on Ubuntu 7.10. While acpi spins down HDD on battery it decreases it's lifetime, you can check it executing command:

smartctl -a /dev/sda | grep Load_Cycle_Count

Number on my laptop was around 106000 after two weeks of using this computer.

I've followed this instructions:
http://ubuntuforums.org/showpost.php?p=3675960&postcount=26
And it seems to be Ok for the moment...

[Edit] Found a better solution:

In /etc/laptop-mode-laptop-mode.conf:
CONTROL_HD_IDLE_TIMEOUT=1
LM_AC_HD_IDLE_TIMEOUT_SECONDS=300
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=300
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
CONTROL_HD_POWERMGMT=1
BATT_HD_POWERMGMT=254
LM_AC_HD_POWERMGMT=255
NOLM_AC_HD_POWERMGMT=255

In /etc/default/acpi-support:
ENABLE_LAPTOP_MODE=true
SPINDOWN_TIME=60

In /etc/acpi/power.sh:
Changed "$HDPARM -B 1 /dev/$drive 2>/dev/null" to "$HDPARM -B 254 /dev/$drive 2>/dev/null"

To Blue:
$ sudo on_ac_power; echo $?
0
$ sudo ps axu | grep apm | grep -v grep
$

No comments: