Closed rnhmjoj closed 2 years ago
From thinkpad-acpi:
Readings from sensors that are not available return -128.
There should be a way to ignore this measurement.
Well, the number in brackets behind the actual temperature is a bias that has been added due to the sudden "jump" in temperatures caused by the -128°C artifact. You can disable biasing by running thinkfan with the -b0
commandline option.
Thank you, that works. I would still leave this open, though: I think the value should be ignored, at least if the sensors is tpacpi
.
@ratcashdev should now also be affected by this issue. Could either @rnhmjoj or @ratcashdev (or preferrably both) give the updated master branch another go and let me know whether this issue is fixed for you? I'll then make a bugfix release so that the fixes for #111 and #123 get picked up by the distributions.
does not seem to help:
sudo ./thinkfan -n -v
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/pwm1: Saved initial state: 2.
Temperatures(bias): 42(0) -> Fans: 32
Going to sleep: Will allow sensor read errors for the next 4 loops.
Lost sensor read_temps: Failed to read temperature(s) from /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp1_input: No such device or address
Temperatures(bias): -128(0) -> Fans: 0
Received SIGUSR2: Re-initializing fan control.
Lost sensor read_temps: Failed to read temperature(s) from /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/temp1_input: No such device or address
Temperatures(bias): -128(0) -> Fans: 0
^CCleaning up and resetting fan control.
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/pwm1: Restoring initial state: 2.
git log -1 --stat
commit 38018edb6247558e836f1ab68070c85db6240172 (HEAD -> master, origin/master, origin/HEAD)
Author: Victor Mataré <matare@fh-aachen.de>
Date: Fri Apr 16 18:13:11 2021 +0200
use biasing only if temperature >= 0 °C
Closing since a fix for this has been applied since the 1.2.0 release. Feel free to reopen if the issue appears reappears.
I just checked by removing the workaround you previously suggested (-b 0
) and the issue seems resolved.
Thank you again.
As soon as the system resumes from sleep (eg. close and reopen the lid), thinkfan set the fan at full speed. The problem seems to be the temperature jumps from -128 to 45. Is there anything I can do to avoid this?
Log:
config: