Hello Linux Geeksters.

In this article I will show you how to fix the high fan speend and noise on Ubuntu 13.04 Raring Ringtail running on Compaq 6720s laptops.
Create the /etc/pm/sleep.d/99fancontrol.sh file:
$ sudo touch /etc/pm/sleep.d/99fancontrol.sh
Set 755 permissions on the newly created file:
$ sudo chmod 755 /etc/pm/sleep.d/99fancontrol.sh
Open the file:
$ gksudo gedit /etc/pm/sleep.d/99fancontrol.sh
Paste the following bash script:
#!/bin/bash
case “$1″ in
hibernate|suspend)
# Stopping is not required.
;;
thaw|resume)
# In background.
for cooling_device in $(ls /sys/devices/virtual/thermal/cooling_device?/cur_state -1)
do
echo -n 0 > $cooling_device
sleep 2
done
;;
*) exit $NA
;;
esac