vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
541 stars 62 forks source link

Fan level 64 not available. #140

Closed spxak1 closed 3 years ago

spxak1 commented 3 years ago

Edit: Solved Solution: Instead of 64, use 127. Thanks

Original post.

I updated from Pop 20.10 to 21.04 (same as ubuntu as far as packages are concerned) and thinkfan has been also updated.

Not sure what version was running before, but I was using the thinkfan.conf file for configuration, rather than the newer .yaml that only found out exists today.

In any event, this is a T460p and my previous config looked like this:

tp_fan /proc/acpi/ibm/fan
sensor /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input
(0,     0,      35)
(1,     34,     39)
(3      38,     44)
(5,     43,     50)
(7,     49,     70)
(64,    68,     32767)

This does not obviously work now, so I've edited the yaml file looks like this:

sensors:
  - hwmon: /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input

fans:
 - tpacpi: /proc/acpi/ibm/fan

levels:
  - speed: 0
    upper_limit: [35, 35, 35]

  - speed: 1
    lower_limit: [34, 34, 34]
    upper_limit: [39, 39, 39]

  - speed: 3
    lower_limit: [38, 38, 38]
    upper_limit: [44, 44, 44]

  - speed: 5
    lower_limit: [43, 43, 43]
    upper_limit: [50, 50, 50]

  - speed: 7
    lower_limit: [49, 49, 49]

However if I set speed 64, thinkfan complains that 64 is not supported by tpacpi.

As a result I am not limited to speed 7, around 2900rpm down from 3400rpm at speed 64.

Speed 64 was never reported as supported in `/proc/acpi/ibm/fan, which still contains:

status:     enabled
speed:      1752
level:      1
commands:   level <level> (<level> is 0-7, auto, disengaged, full-speed)
commands:   enable, disable
commands:   watchdog <timeout> (<timeout> is 0 (off), 1-120 (seconds))

However `echo level 64 > /proc/acpi/ibm/fan works fine, and the fan goes up to the required high speed.

Any idea how to get speed 64 back in Thinkfan?

Thanks in advance.