@mejo, works nicely!
on T400, coretemp.1 may be needed instead of coretemp.2
I'm looking at laptops to install Ubuntu on and the t420 seems like a good bet. Besides needing a workaround for the fan and HDAPS, is the t420 a good machine to use Ubuntu (and/or Mint) on?
http://ubuntuforums.org/showthread.php?t=1816071 for a first overview of issues with ubuntu on t420 and links to workarounds and fixes.
Also, when loading kernel modules (step 3), how do you do this? I restarted my computer to load this module.
I stopped at number 5 because I didn't have a thinkfan.conf file in /etc/modprobe.d/.
How should I go about this?
The fan does seem to be going all the time. But I can't be sure, because most of the time it is really quiet, or it gets drowned out by other audio.
I'll describe the steps in detail:
1. install thinkfan package:
$ sudo apt-get install thinkfan
2. add kernel module 'coretemp' to /etc/modules
$ sudo sh -c 'echo coretemp >> /etc/modules'
3. load kernel module 'coretemp'
$ sudo modprobe coretemp
4. add the following three sensor entries to /etc/thinkfan.conf just before the temperature levels:
[ edit the file /etc/thinkfan.conf with your favourite editor, e.g. 'sudo gedit /etc/thinkfan.conf' ]
5. add the following to /etc/modprobe.d/thinkfan.conf: 'options thinkpad_acpi fan_control=1'
$ sudo sh -c 'echo "options thinkpad_acpi fan_control=1" >> /etc/modprobe.d/thinkfan.conf'
6. reload kernel module 'thinkpad_acpi'
$ sudo modprobe -r thinkpad_acpi
$ sudo modprobe thinkpad_acpi
7. set START="yes" in /etc/default/thinkfan
[ edit the file /etc/default/thinkfan with your favourite editor, e.g. 'sudo gedit /etc/default/thinkfan' ]
8. start thinkfan:
$ sudo /etc/init.d/thinkfan start
9. check whether it works
$ sudo cat /proc/acpi/ibm/fan
if level has a value between 0 and 7, and changes by times, your thinkfan daemon works.
Chonald commented: "I stopped at number 5 because I didn't have a thinkfan.conf file in /etc/modprobe.d/."
I encountered the same problem, but I assumed that the reference to subdirectory "modprobe.d" was an error and made the number 5 change to the "thinkfan.conf" file in directory "/etc".
This seems to have worked for me.
Mejo, thank you very much. I appreciate it.
One thing before I follow these steps. Right now the fan isn't running constantly. I did install the thinkfan package earlier when I first tried this, but I just didn't get through all of the steps. Is there still need for me to go through the rest of the steps, or has the package somehow set itself up to work?