Saturday, August 10, 2013

Ubuntu 13.04 High Fan Speed: Fixed

Hello linux geeksters,

If your laptop or computer faces the issue of high fan speed throughout, the following steps might help you.

Step 1: Create the /etc/pm/sleep.d/99fancontrol.sh file

$ sudo touch /etc/pm/sleep.d/99fancontrol.sh

Step 2: Set 755 permissions to the newly created file:

$ sudo chmod 755 /etc/pm/sleep.d/99fancontrol.sh  

Step 3: Open the file:

$ gksudo gedit /etc/pm/sleep.d/99fancontrol.sh

In case the gksudo command is not installed, use the command

$ sudo apt-get install gksu

Step 4: 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
Step 5: Save the file and your problem should be solved.

Cheers