You are not logged in.

#1 2021-06-10 04:40:40

Redshift1998
Member
Registered: 2021-06-10
Posts: 1

Erratic fan behaviour: Fan speed quoted as 65535 RPM even when stopped

Hello,
I've been trying to bug fix some strange fan behaviour. Sometimes the fan will be on at full blast despite the temperature only being about 30*C. Other times the CPU will heat up to over 90*C and then fan will stay off.

I initially setup thinkfan in order to have finer control over the fan behaviour which works intermittently. After a reset of the computer, thinkfan will work fine, but if the laptop goes to sleep and wakes up the old behaviour is back.

I believe the issue is that for some reason the speed of the fan being reported is not the true speed of the fan. Below are a number of diagnostics that I believe are pertinent. The most important being the fan speed being quoted as 65535 RPM (Integer maximum). The fan itself swaps between 0 and max speed randomly, with the max speed sometimes lasting for minutes, and other times less than a second.

System Information

Thinkfan version: 1.2.1-3

Laptop: ThinkPad X1 Carbon 7th

Arch version: 5.12.9-arch1-1

Useful Diagnostics

>cat /etc/thinkfan.conf

sensors:
    - tpacpi: /proc/acpi/ibm/thermal
      indices: [0]

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

levels:
    - [0, 0, 50]
    - [2, 50, 70]
    - [4, 70, 80]
    - [7, 80. 255]
>systemctl status thinkfan.service

● thinkfan.service - simple and lightweight fan control program
     Loaded: loaded (/usr/lib/systemd/system/thinkfan.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/thinkfan.service.d
             └─override.conf
     Active: active (running) since Wed 2021-06-09 13:36:59 AEST; 24h ago
    Process: 114356 ExecStartPre=/sbin/modprobe thinkpad_acpi (code=exited, status=0/SUCCESS)
    Process: 114357 ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS (code=exited, status=0/SUCCESS)
   Main PID: 114358 (thinkfan)
      Tasks: 1 (limit: 18782)
     Memory: 528.0K
        CPU: 5.623s
     CGroup: /system.slice/thinkfan.service
             └─114358 /usr/bin/thinkfan -b0

Jun 10 04:13:09 Archbox thinkfan[114358]: Temperatures(bias): 49(0) -> level 0
Jun 10 04:13:14 Archbox thinkfan[114358]: Temperatures(bias): 51(0) -> level 2 #<- Note correct changing of levels at temperature thresholds
Jun 10 04:14:26 Archbox thinkfan[114358]: Temperatures(bias): 49(0) -> level 0
Jun 10 04:14:31 Archbox thinkfan[114358]: Temperatures(bias): 50(0) -> level 2
Jun 10 04:14:51 Archbox thinkfan[114358]: Temperatures(bias): 48(0) -> level 0
Jun 10 04:16:16 Archbox thinkfan[114358]: Temperatures(bias): 50(0) -> level 2
Jun 10 04:16:21 Archbox thinkfan[114358]: Temperatures(bias): 48(0) -> level 0
Jun 10 05:12:33 Archbox thinkfan[114358]: Going to sleep: Will allow sensor read errors for the next 2 lo>
Jun 10 13:35:20 Archbox thinkfan[114358]: Received SIGUSR2: Re-initializing fan control.
Jun 10 13:35:20 Archbox thinkfan[114358]: Temperatures(bias): 31(0) -> level 0 #<- The fan is running right now despite this.
> cat /proc/acpi/ibm/thermal

temperatures:	25 -128 0 0 0 0 0 -128 #<- temperature seems to be correct (thinkfan works off the first item)
> cat /proc/acpi/ibm/fan

status:		disabled
speed:		65535 #<- This seems to be the issue, the speed is quoted as the maximum integer so I believe is wrong. Additionally the level is set to 0 so the speed should be 0 also.
level:		0
commands:	level <level> (<level> is 0-7, auto, disengaged, full-speed)
commands:	enable, disable
commands:	watchdog <timeout> (<timeout> is 0 (off), 1-120 (seconds))
> sensors

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +28.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +27.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +25.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +28.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +25.0°C  (high = +100.0°C, crit = +100.0°C)

ucsi_source_psy_USBC000:001-isa-0000
Adapter: ISA adapter
in0:           0.00 V  (min =  +0.00 V, max =  +0.00 V)
curr1:         0.00 A  (max =  +0.00 A)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        65535 RPM
temp1:        +25.0°C
temp2:            N/A
temp3:         +0.0°C
temp4:         +0.0°C
temp5:         +0.0°C
temp6:         +0.0°C
temp7:         +0.0°C
temp8:            N/A

nvme-pci-0300
Adapter: PCI adapter
Composite:    +20.9°C  (low  = -273.1°C, high = +83.8°C)
                       (crit = +84.8°C)
Sensor 1:     +20.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +17.9°C  (low  = -273.1°C, high = +65261.8°C)

ucsi_source_psy_USBC000:002-isa-0000
Adapter: ISA adapter
in0:           0.00 V  (min =  +0.00 V, max =  +0.00 V)
curr1:         0.00 A  (max =  +0.00 A)

iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +21.0°C

pch_cannonlake-virtual-0
Adapter: Virtual device
temp1:        +25.0°C

BAT0-acpi-0
Adapter: ACPI interface
in0:          14.85 V

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +25.0°C  (crit = +128.0°C)
> journalctl | tail -n 100 | grep fan # Ran after sleep

Jun 10 14:09:13 Archbox systemd[1]: Starting Reload thinkfan after waking up from suspend...
Jun 10 14:09:13 Archbox thinkfan[114358]: Received SIGUSR2: Re-initializing fan control.
Jun 10 14:09:13 Archbox systemd[1]: thinkfan-wakeup.service: Deactivated successfully.
Jun 10 14:09:13 Archbox systemd[1]: Finished Reload thinkfan after waking up from suspend.
Jun 10 14:09:13 Archbox audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=thin fan-wakeup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 10 14:09:13 Archbox audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=thinkfan-wakeup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 10 14:09:13 Archbox kernel: audit: type=1130 audit(1623298153.584:251): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=thinkfan-wakeup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 10 14:09:13 Archbox kernel: audit: type=1131 audit(1623298153.584:252): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=thinkfan-wakeup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 10 14:09:13 Archbox thinkfan[114358]: Temperatures(bias): 27(0) -> level 0

I'm happy to post anything else which would be useful, but I'm quite stuck on this!

Offline

#2 2021-08-08 20:25:39

52TrenchCats
Member
Registered: 2020-12-08
Posts: 4

Re: Erratic fan behaviour: Fan speed quoted as 65535 RPM even when stopped

I'm having the same issue on my Thinkpad T480s!

Kernel: 5.13.4-arch2-1

Thinkfan version: 1.2.2-1

Sensors:

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +58.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +56.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +57.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +58.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +56.0°C  (high = +100.0°C, crit = +100.0°C)

ucsi_source_psy_USBC000:001-isa-0000
Adapter: ISA adapter
in0:           5.00 V  (min =  +5.00 V, max = +20.00 V)
curr1:         3.00 A  (max =  +3.25 A)

pch_skylake-virtual-0
Adapter: Virtual device
temp1:        +54.0°C  

BAT0-acpi-0
Adapter: ACPI interface
in0:          11.97 V  

ucsi_source_psy_USBC000:002-isa-0000
Adapter: ISA adapter
in0:           0.00 V  (min =  +0.00 V, max =  +0.00 V)
curr1:         0.00 A  (max =  +0.00 A)

iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +53.0°C  

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        65535 RPM
CPU:          +57.0°C  
GPU:          +54.0°C  
temp3:         +0.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:         +0.0°C  

nvme-pci-3e00
Adapter: PCI adapter
Composite:    +39.9°C  (low  = -273.1°C, high = +80.8°C)
                       (crit = +81.8°C)
Sensor 1:     +39.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +43.9°C  (low  = -273.1°C, high = +65261.8°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +57.0°C  (crit = +128.0°C)

I've had a few overheats on my laptop in the last few weeks, and I suspect this issue may be related to it. If anyone has any idea what could be causing this, I would much appreciate it.

Offline

Board footer

Powered by FluxBB