You are Here:
Linux Lite 4.2 Final has been released. See the Release Announcements Section.



[SOLVED] How to set up "thinkfan" on a Lenovo Thinkpad T430?

Author (Read 22776 times)

0 Members and 9 Guests are viewing this topic.

[SOLVED] How to set up "thinkfan" on a Lenovo Thinkpad T430?
« on: January 25, 2015, 11:13:31 PM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
Hello

How would I go about installing and setting up "thinkfan" to controll my Thinkpad's system fan 1?
And how to make it start with the system permanently?
What information do I need to paste here from my hardware? And what commands would they be?

I need it to be quiet when doing nothing in particular and revs higher only after 55'C degrees Celsius.

Also wondering is there a way to read more fan speed steps than low rpm and high rpm? Would love for it to have at lest 3 or 4 steps on different levels of heat.

Does this thinkfan software affect the hdd temps badly in real life situation use?

Thank you in advance,
vaikus84

[attachment deleted by admin]
Last Edit: February 05, 2015, 11:05:09 AM by Scott(0)
 


Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #1 on: January 26, 2015, 08:45:12 AM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1257
    Posts
  • Country: us
  • Reputation: 134

  • Linux Lite: 3.6 64bit

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
Last Edit: January 26, 2015, 08:48:15 AM by rokytnji
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #2 on: January 26, 2015, 11:05:22 AM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
Start Here.

http://www.thinkwiki.org/wiki/Category:T430


And give a https://www.linuxliteos.com/manual/hardware.html#report

This tutorial is for thinkfan_0.8.1-1! (present int Ubuntu Trusty default repos)
=================================================


That's what I've done so far:

Code: [Select]
sudo apt-get -y install tp-smapi-dkms thinkfan lm-sensors read-edid i2c-tools
Code: [Select]
sudo modprobe -a tp_smapi

Fineprint: If you are installing on a recent Thinkpad that has an Ivy Bridge or newer processor [X230, T430(s), T530, etc.],
tp_smapi will not work. You will be mostly limited to thinkpad-acpi capabilities.
You can however set battery charge thresholds with tpacpi-bat.
But you need to have TLP version 0.7.0 and acpi-call for tpacpi-bat to work


You might want to check out which fan levels your fan controller
supports by doing something like this:


Code: [Select]
sudo su

for i in 0 1 2 3 4 5 6 7; do
echo "level $i" > /proc/acpi/ibm/fan
echo "level $i..."
sleep 6
cat /proc/acpi/ibm/fan | egrep "^speed"
echo
done

[ENTER]
[ENTER]

echo "level auto" > /proc/acpi/ibm/fan

[ENTER]

NOTE! The last echo command is to set your fan back on automatic hardware regulated mode!
           If you don't set it back to "auto"(hardware regulated) mode, your laptop fan stays at full-speed mode!
           I'd recommend to have two terminal windows open. One window is for using the script
           the other window is for setting the level back to "auto" mode.


My T430's readouts are:

Code: [Select]
level 0...
speed: 2012

level 1...
speed: 2529

level 2...
speed: 3048

level 3...
speed: 4021

level 4...
speed: 4132

level 5...
speed: 4587

level 6...
speed: 5415

level 7...
speed: 5347


Find your sensor locations:

Code: [Select]
find /sys/devices -type f -name "temp*_input"
As you are going to see I have added "sensor" before the actual sensor location "/sys/devices/virtual/hwmon/hwmon0/temp1_input".
This enables the sensor in /etc/thinkfan.conf.

My version of /etc/thinkfan.conf so far:

Code: [Select]
gksudo mousepad /etc/thinkfan.conf
Code: [Select]
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input

(0,     0,      40)
(1,     32,     55)
(2,     54,     66)
(3,     65,     76)
(4,     75,     80)
(5,     78,     85)
(6,     82,     88)
(7,     85,     32767)

Configure thinkpad_acpi / thinkfan function:

Code: [Select]
sudo echo "options thinkpad_acpi fan_control=1" | sudo tee /etc/modprobe.d/thinkfan.conf
Code: [Select]
sudo modprobe -rv thinkpad_acpi
Code: [Select]
sudo modprobe -v thinkpad_acpi
NOTE! When the first command gives an error like this "modprobe: FATAL: Module thinkpad_acpi is in use",
just reboot your machine to use your tweaked configuration file.

If you want to start thinkfan automatically with your system,
you need to modifie /etc/default/thinkfan as root (sudo is also ok):


Just replace "no" with "yes"

sudo nano /etc/default/thinkfan

Code: [Select]
START=yes

NOTE! Should "thinkfan" change the fanspeed too rapidly between the different levels, you can edit /etc/default/thinkfan as follows:

sudo nano /etc/default/thinkfan

Code: [Select]
DAEMON_ARGS="-q -b 1 -s 3"
Meaning of Options:

    -b so called "Bias" (Default: 5) is for making reaction speed better when temperatures change rapidly
    -s max time (in seconds) in between two temperature measurements (Default: 5)

Details in Manpage. http://manpages.ubuntu.com/manpages/precise/man1/thinkfan.1.html
                                 http://manpages.ubuntu.com/manpages/trusty/man1/thinkfan.1.html

After changing this file, enable and start the service:

# Traditional:
Code: [Select]
sudo /etc/init.d/thinkfan start
# Upstart:
Code: [Select]
sudo service thinkfan start
For Stoping the service (only if you need to do so):

# Traditional:
Code: [Select]
sudo /etc/init.d/thinkfan stop
# Upstart:
Code: [Select]
sudo service thinkfan stop
Getting a list of Services (so you can confirm it is working):

# Traditional:

Code: [Select]
ls /etc/init.d
# Upstart:

Code: [Select]
service --status-all
Now Reboot the system!

EXTRA INFO:
--------------


NOTE!    You can measure your current Temperature sensors with this
Code: [Select]
sensors command in terminal to monitor your temperatures after setting everything up.
              *** You need lm-sensors to be installed. I did it in the beginning of this tutorial!

NOTE 2!   Everything here is done the way it's done because I have some tp-smapi starting issues on my T430.
                Thus I could not use the extended method in  "thinkfan.conf"  like the default example in that file shows.

                Default Example in "thinkfan.conf" :
Code: [Select]
# I use this on my T61p:
#sensor /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)

Last Edit: February 05, 2015, 11:14:36 AM by vaikus84
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #3 on: January 26, 2015, 11:08:32 AM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
I would love to set it up the complex way so it takes in account more than just the CPU temp. Also the HDD/SSD temp and motherboard temp. But it should do that at different temp levels for those separate things. Suggestions?
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #4 on: January 26, 2015, 03:05:44 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1482
    Posts
  • Country: gb
  • Reputation: 404
  • Linux Lite "Advocate"

  • Linux Lite: 2.8 64bit

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi,

Maybe this might help, or give pointers to other searches..??
If you don't speak German.?, Try Google translate.
 
http://wiki.ubuntuusers.de/Thinkpad_ACPI
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #5 on: January 26, 2015, 03:13:55 PM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
Hi,

Maybe this might help, or give pointers to other searches..??
If you don't speak German.?, Try Google translate.
 
http://wiki.ubuntuusers.de/Thinkpad_ACPI

Lucky for me , I speak, read and write German besides English too :)
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #6 on: January 26, 2015, 05:52:25 PM »
 

newtusmaximus

  • Gold Level Poster
  • *******
  • 610
    Posts
  • Country: gb
  • Reputation: 59
  • Paypal Supporter.

  • Linux Lite: 3.6 64bit

  • CPU: Intel Core duo 6300 1.86GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 82Q963/Q965
Might it be worth updating the Kernel  LL2.2 runs on Kernel 3.13.  Assuming no important files so experimentation OK?


Not sure what the latest  64 bit stable Kernel is.  Can someone else advise please.

https://www.linuxliteos.com/forums/index.php?topic=474.msg8400#msg8400
Last Edit: January 26, 2015, 06:06:09 PM by newtusmaximus
2006 - HP DC7700p ultraslim Desktop Intel 6300 cpu  4GB Ram LL3.6 64bit.
2007 - Fujitsu Siemens V3405 Laptop  2 GB Ram LL3.6 32bit. Now Trialling Alpha 32bit Debian.
2006 - Fujitsu Siemens Si1520 Laptop Intel T720 cpu 3GB Ram LL4.0 64bit
2003 - RETIRED Toshiba Satellite Pro A10 1 GB RAM LL2.8 32bit
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #7 on: January 26, 2015, 11:13:06 PM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1151
    Posts
  • Country: us
  • Reputation: 153
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • Orphans for Christ, Self Advocates of Mecklenburg

  • Linux Lite: 2.6 64bit

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

A factor in tracking temperatures on the motherboard and inside the SSD is whether or not these components even have a temperature sensor built into them.

If they do have built-in sensors, that's just wonderful. However, if the laptop is too new, that support may not yet be available in Linux. If they do not have sensors, those features probably won't be available...

73 DE N4RPS
Rob

Last Edit: January 26, 2015, 11:16:30 PM by N4RPS


A gun in your hand is worth more than a whole police force on the phone.
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #8 on: January 27, 2015, 12:14:39 AM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
My Machines Specs are:

Code: [Select]
System:    Host: Matrix-ThinkPad-T430 Kernel: 3.13.0-24-generic x86_64 (64 bit, gcc: 4.8.2)
           Desktop: Xfce 4.11.6 (Gtk 2.24.23) Distro: Ubuntu 14.04 trusty
Machine:   System: LENOVO product: 2349GZG version: ThinkPad T430
           Mobo: LENOVO model: 2349GZG Bios: LENOVO version: G1ETA7WW (2.67 ) date: 12/08/2014
CPU:       Dual core Intel Core i5-3320M CPU (-HT-MCP-) cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10376.4
           Clock Speeds: 1: 1200.00 MHz 2: 1200.00 MHz 3: 1200.00 MHz 4: 2000.00 MHz
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           X.Org: 1.15.1 driver: intel Resolution: 1920x1080@60.0hz
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile GLX Version: 3.0 Mesa 10.1.3 Direct Rendering: Yes
Audio:     Card: Intel 7 Series/C210 Series Family High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-24-generic
Network:   Card-1: Intel 82579LM Gigabit Network Connection driver: e1000e ver: 2.3.2-k port: 5080 bus-ID: 00:19.0
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi ver: in-tree: bus-ID: 03:00.0
           IF: wlan0 state: down mac: <filter>
Drives:    HDD Total Size: 320.1GB (7.3% used) 1: id: /dev/sda model: ST320LT007 size: 320.1GB
Partition: ID: / size: 29G used: 5.3G (20%) fs: ext4 ID: /boot size: 3.7G used: 49M (2%) fs: ext4
           ID: /home size: 256G used: 17G (7%) fs: ext4 ID: swap-1 size: 6.14GB used: 0.00GB (0%) fs: swap
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 199 Uptime: 9 min Memory: 729.7/3654.9MB Runlevel: 2 Gcc sys: 4.8.2
           Client: Shell (bash 4.3.11) inxi: 1.9.17

http://support.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t430/2349/gzg
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #9 on: January 27, 2015, 10:01:35 AM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1257
    Posts
  • Country: us
  • Reputation: 134

  • Linux Lite: 3.6 64bit

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
"Sensors:   None detected - is lm-sensors installed and configured?"

http://askubuntu.com/questions/53762/how-to-use-to-use-lm-sensors
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #10 on: January 27, 2015, 12:40:54 PM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
"Sensors:   None detected - is lm-sensors installed and configured?"

http://askubuntu.com/questions/53762/how-to-use-to-use-lm-sensors

I have those installed:

Code: [Select]
sudo apt-get -y install acpi-call-tools tp-smapi-dkms
And installed back those:

Code: [Select]
sudo apt-get install lm-sensors read-edid i2c-tools
Code: [Select]
Sensors:   System Temperatures: cpu: 41.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 2586
Last Edit: January 27, 2015, 01:00:27 PM by vaikus84
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #11 on: January 27, 2015, 01:08:07 PM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
Also this says to me that lm-sensors is not the best solution.

http://www.thinkwiki.org/wiki/Thermal_sensors

Quote
Basic ACPI system temperature sensors

The primary means of accessing the thermal sensors is through the thinkpad-acpi module, up to 16 sensors are supported. When the module is loaded, the sensors (some of which may be inactive) are shown through the standard sysfs hwmon interface used by the lm-sensors utilities, and also in /proc/acpi/ibm/thermal (which is deprecated and has been removed from the latest versions of the module).

lm-sensors/libsensors uses the hwmon interface exposed through /sys/bus/platform/devices/thinkpad_hwmon/ to read the temperatures, note that the sysfs interface returns normal open errors instead of weird values for sensors that are not active (which the simplistic sensors command ignore). lm-sensors/libsensors can be configured to give proper names to each sensor, which will be used by any properly written sensor applet.

So naturally my question is how do I get thinkpad-acpi module to work?
Last Edit: January 27, 2015, 01:46:40 PM by vaikus84
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #12 on: January 27, 2015, 03:09:48 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1482
    Posts
  • Country: gb
  • Reputation: 404
  • Linux Lite "Advocate"

  • Linux Lite: 2.8 64bit

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi,

did you.
Code: [Select]
sudo sensors-detectand say "YES/yes" to all the prompts.?

Then re-boot.?
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #13 on: January 27, 2015, 03:12:49 PM »
 

vaikus84

  • Occasional Poster
  • **
  • 66
    Posts
  • Country: ee
  • Reputation: 6
  • Linux Lite Member

  • CPU: i5-3320M

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4000
Hi,

did you.
Code: [Select]
sudo sensors-detectand say "YES/yes" to all the prompts.?

Then re-boot.?

Yes I did.

This is my output on:

Code: [Select]
neo@Matrix-ThinkPad-T430:~$ sudo sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +43.0C  (crit = +200.0C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +44.0C  (high = +87.0C, crit = +105.0C)
Core 0:         +42.0C  (high = +87.0C, crit = +105.0C)
Core 1:         +42.0C  (high = +87.0C, crit = +105.0C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        2578 RPM
 

Re: How to set up "thinkfan" on a Lenovo Thinkpad T430?
« Reply #14 on: January 27, 2015, 03:28:05 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1482
    Posts
  • Country: gb
  • Reputation: 404
  • Linux Lite "Advocate"

  • Linux Lite: 2.8 64bit

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
O.K,

I think the issue is not LL related, it's how the acpi/kernel and the T430 hardware are interacting.
Doing a quick Google indicates you are not alone in trying to get various feature of the T430 working on any ubuntu based variant.
You may need to look at T430 forums for more uptodate fixes/patches

I'm having an issue with wifi & hdmi on a new mini pc based on a J1800 Celeron(Bay Trail)
It does not correctly function even on a Live "Ubuntu"
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 


Tags:
 


Linux Lite 4.2 Final has been released. See the Release Announcements Section.