missing hdparm -B setting during boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Undecided
|
Tormod Volden |
Bug Description
Binary package hint: acpi-support
/etc/acpi/power.sh sets fixed hdparm values but gets called only when switching from/to AC.
Disk spin-down and head parking should not be activated without controlled disk idling. The regular uncoordinated logging or journaling activity may spin the disks back up almost imediately after spinning down and lead to excessive load cycling.
(https:/
Laptop drives may default to park their heads quickly when powered on. Thus hdparm -B255 should be set during boot. (hdparm -B255 does not set undefined value 255 but switches the drives apm feature off.) (Testing for the minimal value without head parking occurances may be ok for desktop machines, too.)
Flexible approach:
Let laptop-mode-tools switch hdparm settings for harddisks to -B 255 on AC. (And even when laptop_mode kernel feature is not activated. (the default case))
Package acpi-support:
Remove laptop_mode start/stop calls and hdparm stuff from power.sh
Remove ENABLE_LAPTOP_MODE setting from /etc/default/
Package laptop-mode-tools:
Include scripts that call "/usr/bin/
(Adapt the approach from the original laptop-mode-tools debian package to current ubuntu acpi-support)
(The current laptop-mode disk-idleing approach seems to be a left-over from the droped ubuntu-laptop-mode package config.)
There is now an overview about the related bugs in the wiki. /wiki.ubuntu. com/PowerManage ment#head- ab94c99627b86e9 fbb29a09d331617 8269c3e764
https:/