Comment 31 for bug 1094722

Revision history for this message
Tim Field (field-tim) wrote : Re: Raring: regression: fan keeps spinning at full speed after suspend

with an HP8510w, after some trial and error I found that I needed to adjust the /99fancontrol.sh script like so...

I don't know what I'm doing here really, can someone who does tell me if this is an ok thing to do. It worked only after adding the extra cooling device lines. This laptop 0 throught to 13 cooling_devices

#!/bin/sh
#
#

case "$1" in
 hibernate|suspend)
  # Stopping is not required.
  ;;
 thaw|resume)
# In background.
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device0/cur_state;
    sleep 2
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device1/cur_state;
    sleep 2
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device2/cur_state;
    sleep 2
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device3/cur_state;
    sleep 2
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device4/cur_state;
    sleep 2
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device5/cur_state;
    sleep 2
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device6/cur_state;
    sleep 2
    echo -n 0 > /sys/devices/virtual/thermal/cooling_device7/cur_state;
  ;;
 *) exit $NA
  ;;
esac