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