Skip to content

Instantly share code, notes, and snippets.

@pecavalheiro
Last active May 2, 2021 17:32
Show Gist options
  • Save pecavalheiro/814906cd7fcac648d38c39b93c4bba6a to your computer and use it in GitHub Desktop.
Save pecavalheiro/814906cd7fcac648d38c39b93c4bba6a to your computer and use it in GitHub Desktop.
Lenovo Thinkpad P15 Fan Control with Thinkfan
Based on https://www.thinkwiki.org/wiki/How_to_control_fan_speed
Steps:
- Install Thinkfan https://github.com/vmatare/thinkfan
- Add `options thinkpad_acpi fan_control=1` to `/etc/modprobe.d/thinkpad_acpi.conf` (Debian Bullseye, testing)
- Add the following content to `/etc/thinkpad.conf`
# All core sensors + ACPI
sensors:
- hwmon: /sys/class/hwmon/hwmon0/temp1_input
- hwmon: /sys/class/hwmon/hwmon3/temp1_input
# Use tpacpi to allow disengage mode (boost)
fans:
- tpacpi: /proc/acpi/ibm/fan
# For more gradual increase in fan speed. Low noise when idle/low processing
levels:
- [0, 0, 35]
- ["level 1", 35, 50]
- ["level 2", 50, 60]
- ["level 4", 60, 70]
- ["level 7", 70, 85]
- ["level disengaged", 85, 255]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment