Unfortunately none of my drives 'hdparm -i' report:
AdvancedPM=yes

Some report no, others are flash card readers that don't return anything.
They all get this error. 

For a workaround, I edited '/etc/acpi/start.d/90-hdparm.sh'.
Setting DO_HDPARM=n

Grepping hdparm -i for the string above on each drive would probably be a good
fix. Something like this might work, but would need to be tested on machines
that support AdvancedPM

if [ $DO_HDPARM = y ] ; then
  AC_POWER=$( /usr/bin/on_ac_power; echo $? )
  for dev in /dev/sd? /dev/hd? ; do
    if [ -b $dev ] ; then
      if hdparm -i $dev |grep "AdvancedPM=yes" - >/dev/null ; then
        if [ $AC_POWER -eq 1 ] ; then
          hdparm -B 128 $dev
        else
          hdparm -B 254 $dev
        fi
      fi
    fi
  done
fi





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to