Issue: CPU fan on Lenovo Thinkpad T520 is always on.
OS: Ubuntu 10.04.3 LTS Lucid Lynx with backported kernels from Oneiric.
Source used for solution: Ubuntu Forum , — thanks to user mejo
Solution:
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:
sensor /sys/devices/platform/coretemp.0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp2_input
sensor /sys/devices/platform/coretemp.0/temp3_input
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
[ 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.
Hi mate, thanks for posting, clear and concise and it worked very well on my T420. But I had to edit /etc/rc.local to include the thinkfan start command, otherwise the fan control would be disabled on reboot.
Best.
thinkfan
Hallo, it does not work for me, step 2 produces error message in Console
jaime@jaime-ThinkPad-T510: sudo sh -c ‘echo coretemp >> /etc/modules’
bash: /etc/modules’: Operace zamítnuta
It says: “operation denied”…
Just edit the file manually (sudo nano filename) and add the line manually to it. I had the same problem.
Enter this:
sudo sh -c “echo coretemp >> /etc/modules”
hi man,, thanks for share this tips
I can´t lode coretemp:
sudo modprobe coretemp
FATAL: Error inserting coretemp (/lib/modules/3.0.0-14-generic/kernel/drivers/hwmon/coretemp.ko): No such device
Hi,
Thank you so much for wonderful instructions! I successfully installed Ubuntu Lucid on T520 laptop. Only one problem left: internal microphone is not working 😦 Are you aware of solution?
Alexey
Hi Alexey.
You are right. It doesn’t work no more for me neither. It worked before, I’m sure. Maybe it’s some issue on latest kernel. (?) (I’m using 3.0.0-15.)
I’ll try to find some solution, and if I fond it I’ll post it here. If you are faster in solving this issue, please post it here.
Thank you, Alexey.
Alen.
Thanks for the reply. One idea is that ALSA drivers should be recompiled based on the last development snapshot. I found the hint here: http://www.linuxforums.org/forum/hardware-peripherals/184728-internal-mic-not-working-thinkpad-t520-cx20590.html , but unfortunately without future explatations…
Thanks, this worked for my i3 lenovo x121e with 12.04
Thanks! Worked for T420 on U12.04b2.
Hi, nice post.
Solved for my Thinkpad X1 and ubuntu 12.04.
Is there a way to retrieve the sensor values?
/Fredrik
works on my t420 ubuntu 12.04 64bit
Thanks! This helped me a lot!
But do you know what is the “safe” temperature? I have the same laptop (T520) and even with minimal workload it sits on 62 °C (level 5) which seems quite a lot to me.
57C +/- 10% is normal for a moderate workload on the T520. As far as I can tell.
Writing fro Ububtu 12.10 and Thinkpad L520.
Generally it works.But while most of the time the fan is too silent there are momoents that speed a lot for 4 seconds and then stop again. That is a bit annoying. Also could you tell me what to do for auto start after the boot because by changing /etc/default/thinkfan is not enough.
You mention to add in /etc/thinkfan.con some lines. But the command sensor what ecaxctly it is? I mean when I type in the terminal “sensor /sys/devices/platform/coretemp.0/temp1_input”, I get the answer “No command ‘sensor’ found, did you mean: …”
Thanks for your article!!
It was very helpful.
Thanks! it works well on T510 with i5 vPro.