Fix for Noisy Fan on the ThinkPad X300

One thing that got annoying with my new ThinkPad X300 was the fan seemed to run at full speed almost all the time. I’m running Ubuntu 8.04 Hardy.

Once again, ThinkWiki came to the rescue in their article on How to control the fan speed.

Using my new found knowledge, I wrote a little script that made it easy to control the fan speed:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh                           
#
# Control fan on a ThinkPad.
#
# Be sure to add the following to /etc/modprobe.d/options:
#
#    options thinkpad_acpi fan_control=1
#
# and reboot, before using this script.

usage() {
  echo "$0 <level> (<level> is 0-7, auto, disengaged, full-speed)"
  exit
}

if [ -z "$1" ]; then
  usage
  exit
fi

sudo sh -c "echo level $1 > /proc/acpi/ibm/fan"

Be sure to modify your /etc/modprobe.d/options as specified in the comments.

Then just run:

1
$ ./fan.sh 2

for a much quieter fan (low speed) that doesn’t seem to sacrifice cooling when coding (vi, Firefox, mutt, and Gnome is what I run mainly).

You’ll want to switch it back to ‘auto’ if you’re gonna do anything processor intensive.

Enjoy!

Comments