Comment 88 for bug 77370

Revision history for this message
Vladimir (mishnov) wrote :

For my HP ProBook 5310m has helped the following:
Create the file ”/etc/pm/sleep.d/99fancontrol.sh”, insert the code below and chmod 755 it.

Script:
#!/bin/sh
#
# https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.17/+bug/77370

case "$1" in
 hibernate|suspend)
  # Stopping is not required.
  ;;
 thaw|resume)
# In background.
    echo -n 1 > /sys/devices/virtual/thermal/cooling_device0/cur_state;
    sleep 2
    echo -n "0" > /sys/bus/acpi/drivers/fan/PNP0C0B\:00/thermal_cooling/cur_state;

  ;;
 *) exit $NA
  ;;
esac