[Bug 913050] Re: Explicit APM values in hdparm-functions cause Load Cycle Count hell
Jost Menke
913050 at bugs.launchpad.net
Tue Mar 13 09:39:16 UTC 2012
Excessive spindowns here aswell with default value of 127 (FUJITSU
MHV2100BH PL). I suggest the following fix which worked for me:
- Change line 82 in /lib/hdparm/hdparm-functions to "hdparm_set_option
-B128"
- Adjust the global spindown time in /etc/hdparm.conf to your needs.
(E.g. "spindown_time = 120" will make the drive spin down after 10
minutes)
** Changed in: hdparm (Ubuntu)
Status: Confirmed => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to hdparm in Ubuntu.
https://bugs.launchpad.net/bugs/913050
Title:
Explicit APM values in hdparm-functions cause Load Cycle Count hell
Status in “hdparm” package in Ubuntu:
Fix Committed
Bug description:
Release: 12.04 (development) maybe 11.10 is affected too?
Hard drive:
Model Family: Seagate Momentus 5400.6
Device Model: ST9250315AS
In recent hdparm version explicit APM values are set in /lib/hdparm
/hdparm-functions. "On AC" value = 254, "on battery value" = 127. This
causes load cycle hell on my disk drive. Even 128 causes the same
thing, so 11.10 seems to be affected too.
Lines in question:
hdparm_options()
{
local WANTED_DISK="$1"
local DISC= DEFAULT= DEF_QUIET= COMMAND_LINE=
# if the below is guaranteed to spawn a subshell, then this next line is
# unnecessary
local OPTIONS OPT_QUIET KEY SEP VALUE
egrep -v '^[[:space:]]*(#|$)' /etc/hdparm.conf |
{
# set our default global apm policy here.
if hdparm_try_apm "$WANTED_DISK"; then
if hdparm_is_on_battery; then
hdparm_set_option -B127
else
hdparm_set_option -B254
fi
fi
There obviously must be some workarounds by setting right values in
/etc/hdparm.conf but I can not elaborate any further.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/913050/+subscriptions
More information about the foundations-bugs
mailing list