Skip to content

Instantly share code, notes, and snippets.

@pecavalheiro
Last active May 2, 2021 17:32
Show Gist options
  • Select an option

  • Save pecavalheiro/814906cd7fcac648d38c39b93c4bba6a to your computer and use it in GitHub Desktop.

Select an option

Save pecavalheiro/814906cd7fcac648d38c39b93c4bba6a to your computer and use it in GitHub Desktop.

Revisions

  1. pecavalheiro renamed this gist May 2, 2021. 1 changed file with 2 additions and 8 deletions.
    10 changes: 2 additions & 8 deletions steps → thinkfan-install-steps-thinkpad-p15
    Original file line number Diff line number Diff line change
    @@ -10,21 +10,15 @@ Steps:
    sensors:
    - hwmon: /sys/class/hwmon/hwmon0/temp1_input
    - hwmon: /sys/class/hwmon/hwmon3/temp1_input
    - hwmon: /sys/class/hwmon/hwmon3/temp2_input
    - hwmon: /sys/class/hwmon/hwmon3/temp3_input
    - hwmon: /sys/class/hwmon/hwmon3/temp4_input
    - hwmon: /sys/class/hwmon/hwmon3/temp5_input
    - hwmon: /sys/class/hwmon/hwmon3/temp6_input
    - hwmon: /sys/class/hwmon/hwmon3/temp7_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, 40]
    - ["level 1", 40, 50]
    - [0, 0, 35]
    - ["level 1", 35, 50]
    - ["level 2", 50, 60]
    - ["level 4", 60, 70]
    - ["level 7", 70, 85]
  2. pecavalheiro renamed this gist Apr 28, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. pecavalheiro created this gist Apr 28, 2021.
    31 changes: 31 additions & 0 deletions steps.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    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
    - hwmon: /sys/class/hwmon/hwmon3/temp2_input
    - hwmon: /sys/class/hwmon/hwmon3/temp3_input
    - hwmon: /sys/class/hwmon/hwmon3/temp4_input
    - hwmon: /sys/class/hwmon/hwmon3/temp5_input
    - hwmon: /sys/class/hwmon/hwmon3/temp6_input
    - hwmon: /sys/class/hwmon/hwmon3/temp7_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, 40]
    - ["level 1", 40, 50]
    - ["level 2", 50, 60]
    - ["level 4", 60, 70]
    - ["level 7", 70, 85]
    - ["level disengaged", 85, 255]