Comment 63 for bug 59695

Revision history for this message
Michael Gorven (mgorven) wrote : Re: default value in power.sh potentially kills laptop disks

I found out about this bug from Digg this morning. After investigating, I found that the load cycle on my harddrive was increasing rapidly, both on AC and on battery. This sounds like a fairly serious bug, and should be dealt with quickly. I've made the following changes, which seems to have fixed it (load cycle doesn't increase on AC, and doesn't seem to increase much on DC).

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
$