Comment 8 for bug 227705

Revision history for this message
AmenophisIII (amenophisiii) wrote :

yes that works for me too (amd64, hdparm 9.15-1ubuntu4).

remaining problem for me: id like to use the "sleep" commando to put a drive into sleep mode (hdparm -Y) concurrently with setting the standby timer:
/dev/sdb {
 spindown_time = 240
 sleep
}

this gets executed with the patch, but the drive spins up instantly again. i dont fully understand the /lib/udev/hdparm script, but i guess the two commands i use are issued together and hdparm sends -Y before -S internally. this would explain the observed behaviour.
a fix for the script would handle -Y and -y commands differently (like it is done for -f (flush). a better way would be to ensure, that hdparm does issus -Y/-y last, if there are multiple command line issues in one call.
i should probably open another bug report?