I coded the following script. Do not use without checking if the HD temperature
is not going too high. Here is the script that you can activate through
/etc/rc.d/rc.local :
==============
#! /bin/bash
#Utility that checks whether the APM level is at 254 if not, reset it there.
if [[ $ASTATE != "254" ]] ; then
hdparm -B 254 /dev/sda
fi
sleep ${SLEEP}s
done
==============
It is useful since each time it comes back from suspend or hibernate the value
is set back at 128 so having such a script reset it back to 254 which prevents
the Load_Cycle_Count problem as noted above.
Bug confirmed un a Toshiba Satellite A210-FS3
I coded the following script. Do not use without checking if the HD temperature
is not going too high. Here is the script that you can activate through
/etc/rc.d/rc.local :
==============
#! /bin/bash
#Utility that checks whether the APM level is at 254 if not, reset it there.
SLEEP="120"
while [ true ] ; do
STATE=`hdparm -I /dev/sda | grep "Advan" | sed "s/.* \([0-9] [0-9][0- 9]*\).* /\1/"`
ASTATE=`echo ${STATE:0:3}`
if [[ $ASTATE != "254" ]] ; then
hdparm -B 254 /dev/sda
fi
sleep ${SLEEP}s
done
==============
It is useful since each time it comes back from suspend or hibernate the value
is set back at 128 so having such a script reset it back to 254 which prevents
the Load_Cycle_Count problem as noted above.
Hope this help.
Eric