Framework 13 AMD cpu temps?

Hey everyone,

I use one of those status bars with a WM on Linux, and I’m trying to configure CPU temps specifically in my shell script. When I use this command:

$ cat /sys/class/thermal/thermal_zone*/type
acpitz
acpitz
acpitz
acpitz

It just shows that they all use ACPI. When I run the acpi -t command:

$ acpi -t
Thermal 0: ok, 47.8 degrees C
Thermal 1: ok, 55.8 degrees C
Thermal 2: ok, 45.8 degrees C
Thermal 3: ok, 44.8 degrees C

It’s also not very enlightening, since it just shows “Thermal 0, 1, 2, 3”. How can I figure out which one is CPU, HDD, etc…?

1 Like

Oh, I just saw this thread - [RESOLVED] Monitoring AMD Temperature from Linux

Didn’t show up before!

However, when looking at the output of sensors from the lm-sensors package…

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +45.8°C  
temp2:        +48.8°C  
temp3:        +44.8°C  
temp4:        +55.8°C 

<...>

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

amdgpu-pci-c100
Adapter: PCI adapter
vddgfx:      929.00 mV 
vddnb:       650.00 mV 
edge:         +53.0°C  
PPT:          10.18 W  (avg =   8.05 W)

I noticed “temp4” does not line up exactly accurately to these other two. I wonder why? Well, it seems like that one could likely be the CPU die temp.

You can compare the approach that I used. I’m unsure it is the same approach that you are using (but in making that - vague - judgement, I’m being lazy).

1 Like

The cros_ec module re-exports the same values with the following names:

  • temp1local_f75303@4d
  • temp2cpu_f75303@4d
  • temp3ddr_f75303@4d
  • temp4cpu@4c

In my stress-testing, the temp4 value seems to be the most responsive to CPU load, with temp2 lagging noticeably behind. temp3 appears to be pretty well correlated to memory load and the spd5118 readings that I am getting. Not sure about the rest.

1 Like