[RESPONDED] FW 13 7840U ACPI thermal readout problem

On my relatively new DIY FW 13 7840U I notice erratic and problematic behavior with the ACPI thermal_zone3 [*] temp readout. Several times a minute it will alternate between incorrectly reporting 180800 (180.8°C) a reasonable value. Each rotation lasts several seconds. The other zones (0,1,2) seem to have no such issue. 180800 is the only abnormally elevated reading I observe; in all other cases the value is within a reasonable range of the others. I checked dmesg for any relevant repeating logs, but there was nothing. I’m not sure where else to look.
[*] /sys/class/thermal/thermal_zone3/temp

Is this a behavior others notice? Is there a known cause and or fix? It’s not a critical issue, but I would like to have accurate temperature information.
Additionally, what exactly do each of the the thermal_zones measure on a Framework 13 AMD? I see all four are acpitz type according to cat /sys/class/thermal/thermal_zone*/type, but that’s not particularly informative.

Thanks for any assistance.

System Information:
OS: Artix Linux
Kernel: 6.9.6-6.9.7
BIOS: 3.05

$ for f in $(echo /sys/class/thermal/thermal_zone*); do basename -z $f; echo -ne '\t'; cat $f/temp; done
thermal_zone0	31800
thermal_zone1	32800
thermal_zone2	33800
thermal_zone3	180800
$ acpi -t
Thermal 0: ok, 32.8 degrees C
Thermal 1: ok, 180.8 degrees C
Thermal 2: ok, 31.8 degrees C
Thermal 3: ok, 33.8 degrees C

NB: It appears thermal_zone3 corresponds to Thermal 1 (and temp4 from sensors). Every time I checked the values this was the case. I have no idea why the numbering is different between the three.

hi @Guest68,

Welcome to the community, can you try and replicate these readings on Ubuntu 24.04 or Fedora 40 live? just to be certain this isn’t just with Artix linux.

cheers! :slight_smile:

Thanks for the response; that’s a good thought. I tried with a live boot of both Fedora 40 and Ubuntu 24.04 (both used 6.8 series kernels), but unfortunately neither appeared to detect any acpitz sensors. Consequently the only devices in /sys/class/thermal/ were cooling_device{0..15}, and acpi -t produced no output.
Is there something I’m missing here?

What does sensors command say for both distro?

It seems “.txt” is not an authorized file extension, so here’s the copy-paste of the three.

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

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

ucsi_source_psy_USBC000:004-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)

amdgpu-pci-c100
Adapter: PCI adapter
vddgfx:      857.00 mV 
vddnb:       652.00 mV 
edge:         +38.0°C  
PPT:           6.22 W  (avg =   4.12 W)

BAT1-acpi-0
Adapter: ACPI interface
in0:          15.49 V  
curr1:       386.00 mA 

mt7921_phy0-pci-0100
Adapter: PCI adapter
temp1:        +36.0°C  

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

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +39.9°C  

nvme-pci-0200
Adapter: PCI adapter
Composite:    +33.9°C  (low  = -273.1°C, high = +89.8°C)
                       (crit = +94.8°C)
Sensor 1:     +33.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +33.9°C  (low  = -273.1°C, high = +65261.8°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +38.8°C  
temp2:        +38.8°C  
temp3:        +38.8°C  
temp4:       +180.8°C  
Fedora
k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +47.9°C  

ucsi_source_psy_USBC000:004-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)

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

nvme-pci-0200
Adapter: PCI adapter
Composite:    +33.9°C  (low  = -273.1°C, high = +89.8°C)
                       (crit = +94.8°C)
Sensor 1:     +33.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +33.9°C  (low  = -273.1°C, high = +65261.8°C)

mt7921_phy0-pci-0100
Adapter: PCI adapter
temp1:        +38.0°C  

amdgpu-pci-c100
Adapter: PCI adapter
vddgfx:      731.00 mV 
vddnb:       653.00 mV 
edge:         +41.0°C  
PPT:           5.17 W  (avg =   6.09 W)

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

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

BAT1-acpi-0
Adapter: ACPI interface
in0:          15.50 V  
curr1:       602.00 mA 
Ubuntu
mt7921_phy0-pci-0100
Adapter: PCI adapter
temp1:        +30.0°C  

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

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

nvme-pci-0200
Adapter: PCI adapter
Composite:    +33.9°C  (low  = -273.1°C, high = +89.8°C)
                       (crit = +94.8°C)
Sensor 1:     +33.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +27.9°C  (low  = -273.1°C, high = +65261.8°C)

amdgpu-pci-c100
Adapter: PCI adapter
vddgfx:      679.00 mV 
vddnb:       651.00 mV 
edge:         +37.0°C  
PPT:           4.21 W  (avg =   4.23 W)

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +39.6°C  

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

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)

BAT1-acpi-0
Adapter: ACPI interface
in0:          14.81 V  
curr1:       535.00 mA 

The erratic reporting seems to happen intermittently as well. For several hours everything will be fine, but then at some point the sensor value starts cycling between (presumably) good and bad readings. After a while it will return to working normally again. I don’t see any particular pattern to when it’s reliable or erratic, based on temp or anything else (and least it appears elevating the temperature with a large project compile or stress does not induce the behavior).
Interestingly all of the temperature readings I have seen from the acpitz sensors end in .8. Is this just a quirk of the hardware?

Hey, @Loell_Framework, just wanted to check on this since it’s been a bit and I haven’t heard back from you. Is there anything else I should try? Did the sensors output have any useful info?