Linux Lite Forums
Software - Support => Installing Software => Topic started by: vaikus84 on January 25, 2015, 11:13:31 PM
-
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]
-
Start Here.
http://www.thinkwiki.org/wiki/Category:T430 (http://www.thinkwiki.org/wiki/Category:T430)
And give a https://www.linuxliteos.com/manual/hardware.html#report
-
Start Here.
http://www.thinkwiki.org/wiki/Category:T430 (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:
sudo apt-get -y install tp-smapi-dkms thinkfan lm-sensors read-edid i2c-tools
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:
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:
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:
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:
gksudo mousepad /etc/thinkfan.conf
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:
sudo echo "options thinkpad_acpi fan_control=1" | sudo tee /etc/modprobe.d/thinkfan.conf
sudo modprobe -rv thinkpad_acpi
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
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
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/precise/man1/thinkfan.1.html)
http://manpages.ubuntu.com/manpages/trusty/man1/thinkfan.1.html
(http://manpages.ubuntu.com/manpages/trusty/man1/thinkfan.1.html)
After changing this file, enable and start the service:
# Traditional:
sudo /etc/init.d/thinkfan start
# Upstart:
sudo service thinkfan start
For Stoping the service (only if you need to do so):
# Traditional:
sudo /etc/init.d/thinkfan stop
# Upstart:
sudo service thinkfan stop
Getting a list of Services (so you can confirm it is working):
# Traditional:
ls /etc/init.d
# Upstart:
service --status-all
Now Reboot the system!
EXTRA INFO:
--------------
NOTE! You can measure your current Temperature sensors with this 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" :
# I use this on my T61p:
#sensor /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)
-
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?
-
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 (http://wiki.ubuntuusers.de/Thinkpad_ACPI)
-
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 (http://wiki.ubuntuusers.de/Thinkpad_ACPI)
Lucky for me , I speak, read and write German besides English too :)
-
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
-
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
-
My Machines Specs are:
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/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t430/2349/gzg (http://support.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t430/2349/gzg)
-
"Sensors: None detected - is lm-sensors installed and configured?"
http://askubuntu.com/questions/53762/how-to-use-to-use-lm-sensors
-
"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:
sudo apt-get -y install acpi-call-tools tp-smapi-dkms
And installed back those:
sudo apt-get install lm-sensors read-edid i2c-tools
Sensors: System Temperatures: cpu: 41.0C mobo: N/A
Fan Speeds (in rpm): cpu: 2586
-
Also this says to me that lm-sensors is not the best solution.
http://www.thinkwiki.org/wiki/Thermal_sensors (http://www.thinkwiki.org/wiki/Thermal_sensors)
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?
-
Hi,
did you.
sudo sensors-detect
and say "YES/yes" to all the prompts.?
Then re-boot.?
-
Hi,
did you.
sudo sensors-detect
and say "YES/yes" to all the prompts.?
Then re-boot.?
Yes I did.
This is my output on:
[email protected]:~$ sudo sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +43.0°C (crit = +200.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +44.0°C (high = +87.0°C, crit = +105.0°C)
Core 0: +42.0°C (high = +87.0°C, crit = +105.0°C)
Core 1: +42.0°C (high = +87.0°C, crit = +105.0°C)
thinkpad-isa-0000
Adapter: ISA adapter
fan1: 2578 RPM
-
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"
-
Start Here.
http://www.thinkwiki.org/wiki/Category:T430 (http://www.thinkwiki.org/wiki/Category:T430)
And give a https://www.linuxliteos.com/manual/hardware.html#report
I added a System Report to this thread!