27
Nov

Bug #59695 in acpi-support (Ubuntu): “High frequency of load/unload cycles on some hard disks may shorten lifetime”
It will shorten your laptop harddrive from 4 years to less than a year.

Three workaround:

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"

Above is the method 1, not recommanded.

1) make a file named "99-hdd-spin-fix.sh". The important thing is starting with "99".
2) make sure the file contains the following 2 lines (fix it if you have PATA HDD):
 #!/bin/sh
 hdparm -B 255 /dev/sda
3) copy this file to 3 locations:
/etc/acpi/suspend.d/
/etc/acpi/resume.d/
/etc/acpi/start.d/
4) Edit /etc/hdparm.conf to include the following:
/dev/sda {
  apm = 255
}
Change /dev/sda as apropriate for your drive(s).

Here is method 2, still not great

The third one, which I am using now, please check this link

----
The second one is less critical I think, please check here
Right now, looks like windows is safer for laptop?

Leave a Reply