On 10/28/2017 12:07 PM, Ralf Jung wrote: > Package: hdparm > Version: 9.51+ds-1 > Severity: normal > > Dear Maintainer, > > hdparm.conf says: > > ## /sbin/hdparm is not run unless a block of the form: > ## DEV { > ## option > ## option > ## ... > ## } > ## exists. > > However, thta turns out to be wrong. My hdparm.conf only contains a block for > /dev/sdb, and yet: > > # /lib/systemd/system-sleep/hdparm post > > /dev/sda: > setting Advanced Power Management level to 0xfe (254) > APM_level = 254 > > /dev/sdb: > setting Advanced Power Management level to 0xfe (254) > APM_level = 254 > > /dev/sdb: > setting standby to 50 (4 minutes + 10 seconds) > > As you can see, hdparm is called for /dev/sda as well. > > Kind regards, > Ralf > -- Configuration Files: > /etc/hdparm.conf changed: > quiet > /dev/sdb { > #apm = 254 > #apm_battery = 254 > # spin-down time of 4:10 min (=50*5 seconds) > spindown_time = 50 > }
You are right, hdparm shouldn't be touching all disk in the system, but there is a reason. The issue is summarized here: https://wiki.ubuntu.com/DanielHahler/Bug59695 https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 Currently -B 254 on AC power and -B 128 on battery seem to be the sensible default values for the vast majority of disks and are set for every disk supporting APM. These defaults are defined in /lib/hdparm/hdparm-functions in hdparm_option() function. The (ancient) documentation of hdparm need to be updated to note these defaults. Best regards, Alex