I take my words back. The unmodified file works as well. Setting 'set -x' and running the /lib/udev/hdparm function by hand does show that with DEVNAME=/dev/sda hdparm is called properly with options:
/sbin/hdparm -B254 -S1 /dev/sda
This does spin down the disk on manual run. After boot the disk is still not spinning down. After wake up from suspend the disk is spinning down.
it seems to me that /usr/lib/pm-utils/power.d/95hdparm-apm calls "/sbin/hdparm -B254" also, but this should not re-reset the spinning (at least not after manual run). I guess some other is messing up the spin down value -- gnome?
I take my words back. The unmodified file works as well. Setting 'set -x' and running the /lib/udev/hdparm function by hand does show that with DEVNAME=/dev/sda hdparm is called properly with options:
/sbin/hdparm -B254 -S1 /dev/sda
This does spin down the disk on manual run. After boot the disk is still not spinning down. After wake up from suspend the disk is spinning down.
it seems to me that /usr/lib/ pm-utils/ power.d/ 95hdparm- apm calls "/sbin/hdparm -B254" also, but this should not re-reset the spinning (at least not after manual run). I guess some other is messing up the spin down value -- gnome?