I’ve recently had to install and use Thinkfan (https://software.opensuse.org/package/thinkfan) in a while on my Lenovo T480, and I just wanted to post the steps I took to set it up properly.
I must give credit to:
I am just summarizing the steps with a few updates.
- First lm-sensors and thinkfan need to be installed.
lm-sensors are already in the repository
sudo zypper in sensors
and thinkfan needs to be downloaded from (https://software.opensuse.org/package/thinkfan)
2. You need to setup sensors
Just go through and say yes to almost everything to probe.
3. Find the sensor addresses
*find /sys/devices -type f -name "temp*_input"*
This will return a bunch of sensors and some of them “virtual” we should ignore them. We can in fact do that by:
*find /sys/devices -type f -name "temp*_input" |grep -vi virtual*
- Refer to these addresses in
before the temperature settings in a matrix of numbers corresponding to level and temperature (1 ,40, 45)…
you must probe these sensors in the configuration file using hwmon
hwmon */sys/devices/virtual/hwmon/hwmon0/temp1_input *hwmon */sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input *hwmon */sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input *hwmon */sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input*
and then you may configure the level-temperature matrix as you wish. I make sure that the fan starts at 35 degrees celsius then max out at 60 degrees celsius and I do push my laptop to the limits most of the time.
Finally, you can enable thinkfan
sudo systemctl enable thinkfan sudo systemctl start thinkfan
reboot, test and it should be good to go.
Some of the other steps mentioned in my references would work in general, but un-necessary in my case and un-necessary if we are using one of the packages in our repos.