Looking for Thinkpad Fan control (tpfancontrol) for Linux
Looking for Thinkpad Fan control (tpfancontrol) for Linux
Hello,
I am looking for Thinkpad Fan control (tpfancontrol) for Linux... so that in the same way I can start the program and control the fan. I dont use Linux very often and am a total novice, i.e. I cant program or enter anything at the command line, i.e. use it like Windows.
Appreciate any help.
Louis
I am looking for Thinkpad Fan control (tpfancontrol) for Linux... so that in the same way I can start the program and control the fan. I dont use Linux very often and am a total novice, i.e. I cant program or enter anything at the command line, i.e. use it like Windows.
Appreciate any help.
Louis
-
yossarian
- Freshman Member
- Posts: 119
- Joined: Mon Sep 12, 2005 11:48 pm
- Location: Auckland, New Zealand
This link may be of service to you:
http://www.thinkwiki.org/wiki/ACPI_fan_control_script
http://www.thinkwiki.org/wiki/ACPI_fan_control_script
thanks!yossarian wrote:This link may be of service to you:
http://www.thinkwiki.org/wiki/ACPI_fan_control_script
I went there, downloaded the file, saved it on my HDD on C:\ , once as "tpfancontrol" and once as "tpfancontrol.php", as I wasnt sure which is right... (and *.php was the standard save option).
when I rant Knoppix, I clicked on the file, nothing happened.
I presume from what I saw on the webpage that it needs to be run from a command line with some knowledge of how Linux works? As I mentioned, I am totally clueless w.r.t. Linux....
Any other ideas?
-
Dead1nside
- Senior Member

- Posts: 780
- Joined: Mon Jul 24, 2006 8:32 pm
- Location: Reading, UK
- Contact:
-
djpharoah
- Junior Member

- Posts: 472
- Joined: Fri Feb 03, 2006 7:25 pm
- Location: Irvine, California
- Contact:
since its a script you have to first make it exectuable. Secondly you have to make sure your kernel is compiled properly with the right modules.
T400 14.1" WXGA+ LCD / T9400 / 4GB / 160gb / ATi+Intel GFX / 9C / W7 64
T42p 14" SXGA+ / 2.0GHz / 1.5GB / 60GB / 2 x 6C / XP
T40 14" XGA / 1.7GHz / 1GB / 40GB / 9C / XP
T40 14" SXGA+ / 1.7GHz / 1GB / 40GB / 6C / XP
Sold: A31, A31p, A20m, T20, T23
T42p 14" SXGA+ / 2.0GHz / 1.5GB / 60GB / 2 x 6C / XP
T40 14" XGA / 1.7GHz / 1GB / 40GB / 9C / XP
T40 14" SXGA+ / 1.7GHz / 1GB / 40GB / 6C / XP
Sold: A31, A31p, A20m, T20, T23
-
Dead1nside
- Senior Member

- Posts: 780
- Joined: Mon Jul 24, 2006 8:32 pm
- Location: Reading, UK
- Contact:
djpharoah wrote:since its a script you have to first make it exectuable. Secondly you have to make sure your kernel is compiled properly with the right modules.
rriiiight...
you mean to say I cannot just click and go? I'll repeat: I know nothing about Linux, but have a Knoppix CD that I would like to use to get to know Linux... but without the fan going constantly...
-
Dead1nside
- Senior Member

- Posts: 780
- Joined: Mon Jul 24, 2006 8:32 pm
- Location: Reading, UK
- Contact:
-
techflavor
- Freshman Member
- Posts: 119
- Joined: Sun Jan 29, 2006 1:55 am
- Location: Baton Rouge, LA
- Contact:
If I was you, I'd make myself a little more familiar with Linux before I'd start playing around with the hardware.indessen wrote:I'll repeat: I know nothing about Linux
Anyway, the BIOS controls the fan even under Linux. I have around 3500rpm, which is more or less the same as in Windows. The tpfancontrol script doesn't lower the rpm.
-
Dead1nside
- Senior Member

- Posts: 780
- Joined: Mon Jul 24, 2006 8:32 pm
- Location: Reading, UK
- Contact:
Yes, sure, but that's not my point. It's just that I don't think that software that could brick your laptop is a good place to start learning. Quote from the thinkwiki article linked above:
These scripts rely on undocumented hardware features and override nominal hardware behavior. They may thus cause arbitrary damage to your laptop or data. Watch your temperatures!
-
Dead1nside
- Senior Member

- Posts: 780
- Joined: Mon Jul 24, 2006 8:32 pm
- Location: Reading, UK
- Contact:
-
yossarian
- Freshman Member
- Posts: 119
- Joined: Mon Sep 12, 2005 11:48 pm
- Location: Auckland, New Zealand
The first line of the script reads:
This means it's a bash script.
Linux doesn't differentiate suffixes so you can leave it as a .php if you want, but it would just look strange considering it's a bash script.
As techflavor said, you also need to give it execution permissions by issuing something along the lines of:
chmod +x scriptfilename
Code: Select all
#!/bin/bash Linux doesn't differentiate suffixes so you can leave it as a .php if you want, but it would just look strange considering it's a bash script.
As techflavor said, you also need to give it execution permissions by issuing something along the lines of:
chmod +x scriptfilename
Here's what I did--
saved tp-fancontrol to /usr/local/sbin/tp-fancontrol
chmod 755 /usr/local/sbin/tp-fancontrol
added it to /etc/inittab so it always runs, and is restarted if it dies
Note that I did NOT use the /etc/init.d and tp-fancontrol.conf setup.
Also, here is a script which reports on the current CPU frequencies, CPU temperature, and fan speed:
On my Z61t, tp-fancontrol lowers the normal fan rate of around 2800 rpm to imperceptible (reported as about 1600rpm) when it's not running hot.
saved tp-fancontrol to /usr/local/sbin/tp-fancontrol
chmod 755 /usr/local/sbin/tp-fancontrol
added it to /etc/inittab so it always runs, and is restarted if it dies
Code: Select all
fc:2345:respawn:/usr/local/sbin/tp-fancontrol
Also, here is a script which reports on the current CPU frequencies, CPU temperature, and fan speed:
Code: Select all
#!/bin/sh
FAN=`grep speed /proc/acpi/ibm/fan | cut -d: -f2`
extra=`perl -ne 'm/^EC 0xc0: .(..) .(..) .(..) / or next; print hex($1)." ".hex($2)." ".hex($3)."\n"' < /proc/acpi/ibm/ecdump`
CPUT0=`cut -d: -f2 /proc/acpi/ibm/thermal| cut -d' ' -f1`
C0F=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
C0FG=`expr $C0F / 1000000`
C0FS=`printf "%3.1f" $C0FG`
C1F=`cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq`
C1FG=`expr $C1F / 1000000`
C1FS=`printf "%3.1f" $C1FG`
echo $C0FS $C1FS
echo $CPUT0 C
echo $FAN rpm
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Fan trouble - 3000 N200 + Type 0769 - ESG ACPI Script for NHC > NOTEBOOK HARDWARE CONTROL
by MatMor » Sun Mar 12, 2017 12:12 pm » in 3000 Series Laptops - 0 Replies
- 2614 Views
-
Last post by MatMor
Sun Mar 12, 2017 12:12 pm
-
-
-
WTB T60p or Frankenpad with 1600x1200 Screen ; also looking for a T42 fan
by smashkenazi » Sat May 13, 2017 8:15 am » in Marketplace - Forum Members only - 7 Replies
- 522 Views
-
Last post by burnsidr
Thu Jun 15, 2017 1:57 pm
-
-
-
Still get a "Fan error" after replacing fan
by thinkpac » Sun Apr 02, 2017 12:44 am » in ThinkPad T6x Series - 7 Replies
- 1224 Views
-
Last post by thinkpac
Sun Apr 02, 2017 11:17 am
-
-
-
T450 - Brightness control hotkeys not working after system wake
by Czechnology » Tue Jan 10, 2017 9:05 am » in ThinkPad T430/T530 and later Series - 0 Replies
- 416 Views
-
Last post by Czechnology
Tue Jan 10, 2017 9:05 am
-
Who is online
Users browsing this forum: No registered users and 0 guests



