Note: I configured this thinkfan setup for my old Thinkpad w520 on Ubuntu 17.10.
Install lm-sensors
and thinkfan
.
sudo apt-get install lm-sensors thinkfan
Find the temperature control devices with
find /sys/devices -type f -name "temp*_input"
Add them to /etc/thinkfan.conf
, including (level, min_temperature, max_temperature):
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp4_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp5_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
(0, 0, 60)
(1, 60, 65)
(2, 65, 70)
(3, 70, 75)
(4, 75, 80)
(5, 80, 85)
(7, 85, 32767)
echo "options thinkpad_acpi fan_control=1" > /etc/modprobe.d/thinkfan.conf
modprobe thinkpad_acpi
- You can check with
lsmod
ifthinkfan_acpi
is running - To reload a module you need to remove it with
sudo modprobe -r <module>
, but this is not always possible, so we might need a reboot here.
To test thinkfan, use:
thinkfan -n
And to run it, use:
sudo service thinkfan start
And to retrieve the status, use:
service thinkfan status
To make it run at startup, we need to edit /etc/modules
and add the lines below, to make the modules thinkpad_acpi
and coretemp
load at boot time. The thinkpad_acpi
has to be loaded before coretemp
.
thinkpad_acpi
coretemp
Note that this may change the /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp*_input
paths (hwmon3
can become hwmon2
or vice versa), probably because of the order in which the modules are loaded or something. So, in the /etc/thinkfan.conf
config, you might need to update these lines.
Furthermore, we need to enable the thinkfan
service via systemctl
.
sudo systemctl enable thinkfan.service
Hi All,
After doing all the above and with settings like that, fans are still not rolling... granted temperature is in 50, but still...
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp4_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp5_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp1_input
hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp2_input
(0, 0, 40)
(1, 40, 44)
(2, 44, 48)
(3, 48, 52)
(4, 52, 56)
(5, 56, 60)
(6, 60, 64)
(7, 64, 68)
(127, 68, 32767)
While running "status" one of the lines shows this:
Jul 08 09:58:15 ThinkPad-L430 thinkfan[15995]: WARNING: Using default fan control in /proc/acpi/ibm/fan.
EDIT: Managed to fix default fan control and now it's not stating an error, but fans are not working anyway...
So how to start them? Thanks in advance.