Closed dkowis closed 2 years ago
Well, your problem is this:
thinkfan: ERROR: read_temps: Failed to read temperature(s) from /sys/class/hwmon/hwmon4/temp1_input: No such device or address
There's a sensor in your config that isn't always there. What is it? Switched off WiFi by any chance?
I'll end up with a very, very hot laptop :(
Shouldn't happen if thinkfan fails with an error message. If thinkfan completely freezes up you might have a problem, but that doesn't seem to be the case here.
Oh I should've posted my config, sorry about that.
sensors:
- hwmon: /sys/class/hwmon
name: thinkpad
indices: [1]
- nvml: 01:00.0
fans:
- tpacpi: /proc/acpi/ibm/fan
levels:
- [0, 0, 40]
- [1, 37, 53]
- [2, 50, 58]
- [3, 56, 68]
- [4, 65, 75]
- [5, 73, 78]
- ["level full-speed", 77, 32767]
It's definitely a hot laptop, and the messages from syslog are all I've got there.
I suppose it's possible that the nvidia temperature thing isn't working? That's all I can think of there.
Wifi is currently switched off, and it's behaving properly, and monitoring the right temperature.
hwmon directory that is the thinkfan:
/sys/class/hwmon🔒 on 🅰 (us-west-2)
❯ ls
hwmon0 hwmon1 hwmon2 hwmon3 hwmon4 hwmon5 hwmon6 hwmon7 hwmon8 hwmon9
/sys/class/hwmon🔒 on 🅰 (us-west-2)
❯ cd hwmon4/
/s/class/hwmon/hwmon4🔒 on 🅰 (us-west-2)
❯ cat name
thinkpad
/s/class/hwmon/hwmon4🔒 on 🅰 (us-west-2)
❯ ls -l
lrwxrwxrwx root root 0 B Wed Aug 4 15:22:44 2021 device ⇒ ../../../thinkpad_hwmon
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 fan1_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 fan2_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:24:14 2021 name
drwxr-xr-x root root 0 B Wed Aug 4 15:22:44 2021 power
.rw-r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 pwm1
.rw-r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 pwm1_enable
lrwxrwxrwx root root 0 B Wed Aug 4 15:22:44 2021 subsystem ⇒ ../../../../../class/hwmon
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp1_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp2_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp3_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp4_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp5_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp6_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp7_input
.r--r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 temp8_input
.rw-r--r-- root root 4.0 KB Wed Aug 4 15:22:44 2021 uevent
Huh. OK, took a closer look at the logs and I'm missing the part where your system goes to sleep. Specifically this log message should be there:
Going to sleep: Will allow sensor read errors for the next 4 loops.
Also what version of thinkfan are you running?
To be clear: if I run thinkfan on the commandline and then do a sleep/wakeup cycle, it should log this message. But in syslog you should see it, too (try journalctl -el -u thinkfan
):
# ./thinkfan -n -b0
Temperatures(bias): 57(0), 39(0), 34(0), 44(0) -> Fans: 80, 120, 70, 50, 120, 120, 130
Going to sleep: Will allow sensor read errors for the next 4 loops.
Temperatures(bias): 52(0), 41(0), 35(0), 44(0) -> Fans: 80, 110, 70, 50, 120, 120, 130
Received SIGUSR2: Re-initializing fan control.
Temperatures(bias): 51(0), 51(0), 35(0), 44(0) -> Fans: 80, 110, 90, 50, 115, 115, 125
Temperatures(bias): 50(0), 45(0), 35(0), 44(0) -> Fans: 80, 110, 70, 50, 115, 115, 125
Temperatures(bias): 49(0), 40(0), 35(0), 44(0) -> Fans: 50, 110, 70, 50, 115, 115, 125
I was away from that computer for a week, I'm back on it and will look for this data to try to get it to you.
I captured some thinkfan logs from the most recent suspend
Aug 18 13:27:19 poppad thinkfan: Temperatures(bias): 34(0), 29(0) -> level 0
Aug 18 14:02:01 poppad systemd[1]: Starting Notify thinkfan of imminent sleep...
Aug 18 14:02:02 poppad systemd[1]: thinkfan-sleep.service: Succeeded.
Aug 18 14:02:02 poppad systemd[1]: Finished Notify thinkfan of imminent sleep.
Aug 19 08:52:39 poppad systemd[1]: Starting Reload thinkfan after waking up from suspend...
Aug 19 08:52:39 poppad systemd[1]: thinkfan-wakeup.service: Succeeded.
Aug 19 08:52:39 poppad systemd[1]: Finished Reload thinkfan after waking up from suspend.
Aug 19 08:52:39 poppad thinkfan: ERROR: Lost sensor read_temps: Failed to read temperature(s) from /sys/class/hwmon/hwmon4/temp1_input: No such device or address
Aug 19 08:52:39 poppad systemd[1]: thinkfan.service: Main process exited, code=exited, status=1/FAILURE
Aug 19 08:52:39 poppad systemd[1]: thinkfan.service: Failed with result 'exit-code'.
Aug 19 08:52:42 poppad systemd[1]: thinkfan.service: Scheduled restart job, restart counter is at 5.
Aug 19 08:52:42 poppad thinkfan: ERROR: read_temps: Failed to read temperature(s) from /sys/class/hwmon/hwmon4/temp1_input: No such device or address
Aug 19 08:52:42 poppad systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE
Aug 19 08:52:42 poppad systemd[1]: thinkfan.service: Failed with result 'exit-code'.
Aug 19 08:52:46 poppad systemd[1]: thinkfan.service: Scheduled restart job, restart counter is at 6.
Aug 19 08:52:46 poppad thinkfan: Temperatures(bias): 48(0), 30(0) -> level 1
OK, so the problem is clear: thinkfan somehow isn't receiving the SIGWINCH
signal when going to sleep. However I can't tell why that is. Could you please post the output of systemctl cat thinkfan-sleep.service
? Also, what version of thinkfan are you running (thinkfan -h
)?
Closing for lack of info. Feel free to reopen if info comes up.
On my system I found that thinkfan is not working after sleep wakeup. Do you need some logs? I am on Gentoo Linux, using OpenRC.
In logs after system (Gentoo) wakeup I see:
ERROR: Lost sensor readtemps: Failed to read temperature(s) from /sys/class/hwmon/hwmon1/temp1_input: No such device or address
I'll end up with a very, very hot laptop :(
from syslog:
Somehow it gets lost, and I'm not sure why, I have to force start it to get it to come back to life.
I have also added this, to try to get around it, but it hasn't worked.