[Bug 1268444] Re: Irregular place for hdparm default option introduces unexpected beaviour
Tom Fields
1268444 at bugs.launchpad.net
Mon Jan 13 05:26:24 UTC 2014
Correction second to last paragraph:
line 86 in debian/hdparm-functions
--
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/1268444
Title:
Irregular place for hdparm default option introduces unexpected
beaviour
Status in “hdparm” package in Ubuntu:
New
Bug description:
* bzr branch lp:ubuntu/hdparm
* hdparm version 9.43-1ubuntu3
Hi,
in file debian/hdparm-functions (installed as /lib/hdparm/hdparm-functions),
two default options for APM power management are set.
Line 82: hdparm_set_option -B128,
line 88: hdparm_set_option -B254.
Because the hdparm configuration file /etc/hdparm.conf,
also sets default options (quiet, -q) but explicitly has the
APM default option (-B) disabled, this is unexpected behavior.
This causes further unexpected behaivor, because most harddisks
today do NOT support setting the feature, making execution
of the resulting hdparm command in file debian/hdparm.udev-script
(installed as /lib/udev/hdparm) fail with a nonzero exit status.
As debian/hdparm.udev-script is executed with "set -e", the nonzero
exit status of hdparm aborts execution of any further commands
in this script. This is a problem when user additions are made to this script...
Suggestion: Move setting of default values for hdparm to
/etc/hdparm.conf, the regular place for all default values.
See also spindown time setting (line 86 in hdparm.udev-script).
To enable distinction between battery and non battery operation,
the default values in /etc/hdparm.conf could be named apm_battery
and spindown_time_battery, for example.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1268444/+subscriptions
More information about the foundations-bugs
mailing list