To get thinkfan working correctly on your Ubuntu ThinkPad, you need to map your sensors and define fan speeds in the configuration file.
Open your config file:
ant@alderlakel13:~$ sudo nano /etc/thinkfan.yaml
Here is a working configuration with aggressive fan curves:
sensors:
- hwmon: /sys/class/hwmon
name: coretemp
indices: [1]
fans:
- hwmon: /sys/class/hwmon
name: thinkpad
indices: [1]
levels:
- [0, 0, 55]
- [30, 55, 65]
- [50, 65, 79]
- [90, 79, 85]
- [255, 85, 160]
Once saved, restart the service to apply changes:
ant@alderlakel13:~$ sudo systemctl restart thinkfan