Comment 16 for bug 199094

Revision history for this message
Max Bowsher (maxb) wrote : Re: [Hardy] hdparm.conf settings are lost on suspend/resume

Still a problem on Intrepid....

Jakob's script doesn't quite work as is - did the sysfs layout change?

Anyway, fixed up and trimmed down to:
---- snip ----
#!/bin/sh

# Run hdparm like on boot to restore hdparm.conf settings -
# disk lose them when going to standby.

case "$1" in
    thaw|resume)
    for x in /sys/bus/ide/devices/*/block/* \
        /sys/bus/scsi/devices/*/block/*; do
        # This check is required - x can contain literal
        # '/sys/bus/(bustype)/devices/*/block/*' when the glob did not match
        # anything.
        if [ -e "$x" ]; then
            DEVNAME="/dev/${x##*/}" /lib/udev/hdparm
        fi
    done
    ;;
esac
---- snip ----

it now works for me, successfully restoring my apm=254 hdparm.conf setting on resume.

I think this is a rather important bug, that might even warrant a SRU.