LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] How to set up "thinkfan" on a Lenovo Thinkpad T430?
#1
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]
Reply
#2
Start Here.

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


And give a https://www.freecinema2022.gq/manual/hardware.html#report
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.
Reply
#3
(01-26-2015, 01:45 PM)rokytnji link Wrote: Start Here.

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


And give a https://www.freecinema2022.gq/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:
sudo apt-get -y install tp-smapi-dkms thinkfan lm-sensors read-edid i2c-tools
Code:
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:
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:
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:
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:
gksudo mousepad /etc/thinkfan.conf

Code:
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:
sudo echo "options thinkpad_acpi fan_control=1" | sudo tee /etc/modprobe.d/thinkfan.conf

Code:
sudo modprobe -rv thinkpad_acpi
Code:
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:
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:
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/prec...fan.1.html
                                http://manpages.ubuntu.com/manpages/trusty/man1/thinkfan.1.html

After changing this file, enable and start the service:

# Traditional:
Code:
sudo /etc/init.d/thinkfan start

# Upstart:
Code:
sudo service thinkfan start

For Stoping the service (only if you need to do so):

# Traditional:
Code:
sudo /etc/init.d/thinkfan stop

# Upstart:
Code:
sudo service thinkfan stop

Getting a list of Services (so you can confirm it is working):

# Traditional:

Code:
ls /etc/init.d

# Upstart:

Code:
service --status-all

Now Reboot the system!

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


NOTE!    You can measure your current Temperature sensors with this
Code:
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:
# I use this on my T61p:
#sensor /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)

Reply
#4
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?
Reply
#5
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 Smile

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)
Reply
#6
(01-26-2015, 08:05 PM)Wirezfree link Wrote: 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 Smile
Reply
#7
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.freecinema2022.gq/forums/index...00#msg8400
2006 - HP DC7700p ultraslim Desktop Intel 6300 cpu  4GB Ram LL3.8 64bit.
2007 - Fujitsu Siemens V3405 Laptop  2 GB Ram LL3.6 32bit. Now 32bit Debian 9 + nonfree.
2006 - Fujitsu Siemens Si1520 Laptop Intel T720 cpu 3GB Ram   LL5.6 64 Bit
2014 - Fujitsu Siemens Lifebook E754 Intel i7 4712MQ 16GB Ram LL6.6
2003 - RETIRED Toshiba Satellite Pro A10 1 GB RAM LL2.8 32bit
Reply
#8
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

[Image: EtYqOrS.png%5D]

A gun in your hand is worth more than a whole police force on the phone.
Reply
#9
My Machines Specs are:

Code:
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: [email protected]
           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...0/2349/gzg
Reply
#10
"Sensors:  None detected - is lm-sensors installed and configured?"

http://askubuntu.com/questions/53762/how...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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)