Public bug reported: * 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. ** Affects: hdparm (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1268444 Title: Irregular place for hdparm default option introduces unexpected beaviour To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1268444/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs