Luckily there are workarounds for this issue for both the old
situation(1) and systemd(2).

1) In the old situation (Trusty Tahr - upstart) I found the following remedy 
that works like a charm:
Make a file with the following content (just the way I found in on the 
internet) read further below the quote:
bash script:

#!/bin/sh
#
# Reset fan speeds after resume, otherwise they blow at maximum speed
#
# Used as work-around for ACPI kernel bug 58301
# https://bugzilla.kernel.org/show_bug.cgi?id=58301
#
# The idea for this fix was taken from 
# http://ubuntuforums.org/showthread.php?t=1761370
#
# Author: fr...@qnipp.com
#
# To be made executable (sudo chmod 755 AnyName.sh and then to be saved as 
/etc/pm/sleep.d/AnyName.sh 

case "$1" in
  thaw|resume)
    for i in /sys/class/thermal/cooling_device* ; do 
      type=`cat $i/type`
      if [ "$type" = "Fan" ] ; then 
        echo 0 > $i/cur_state
      fi
  done
  ;;
  esac


2) But things are changed with systemd. After a proces of trial and error I 
found the following:
step one:

Create a file with the following content (read further below quote) :
bash script:


#!/bin/sh
# make this file executable (chmod 755 NameFile.sh)
# copy this file to folder /lib/systemd/system-sleep/

if [ $1 = post ] && [ $2 = suspend ]
then /usr/local/bin/fansystemd.sh
fi


step two:
Then create a file with the following content:
bash script:

#!/bin/sh
#
# Reset fan speeds after resume, otherwise they blow at maximum speed
#
# Used as work-around for ACPI kernel bug 58301
# https://bugzilla.kernel.org/show_bug.cgi?id=58301
#
# The idea for this fix was taken from 
# http://ubuntuforums.org/showthread.php?t=1761370
#
# Author: fr...@qnipp.com
#
# make file exectable (sudo chmod 755 NameFile.sh)
# To be saved as /usr/local/bin/  (sudo cp NameFile.sh /usr/local/bin/)
# this is like the upstart-script only without the first lines

  for i in /sys/class/thermal/cooling_device* ; do 
      type=`cat $i/type`
      if [ "$type" = "Fan" ] ; then 
        echo 0 > $i/cur_state
      fi
  done
  ;;
  esac


Make file exectable (sudo chmod 755 NameFile.sh), save as as 
/usr/local/bin/NameFile.sh  (sudo cp NameFile.sh /usr/local/bin/). This is like 
the upstart-script only without the first lines.
This is 100% effective.


** Bug watch added: Linux Kernel Bug Tracker #58301
   http://bugzilla.kernel.org/show_bug.cgi?id=58301

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1543194

Title:
   [HP Compaq 6720s] Fan at full speed after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1543194/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to