Skip to content

cpu: use hwmon reading if amdgpu reported CPU temp is 0 - #2095

Merged
flightlessmango merged 1 commit into
flightlessmango:masterfrom
philipl:strix-halo-cpu-temp
Jul 24, 2026
Merged

cpu: use hwmon reading if amdgpu reported CPU temp is 0#2095
flightlessmango merged 1 commit into
flightlessmango:masterfrom
philipl:strix-halo-cpu-temp

Conversation

@philipl

@philipl philipl commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Right now, on my Strix Halo APU, my CPU temperature always reads as 0C even though k10temp is working and reporting Tctl and the amdgpu sensors output clearly shows no CPU temp value (just edge).

I took a quick look at the amdgpu format 3 handling and it's iterating through all the sensors which are "VALID" but all reporting zero, so it preferes that value over the one reported by k10temp.

My initial thought would be that we should prioritize the hwmon value for the CPU temp anyway, but this is the minimal change to continue prioritizing the amdgpu reported value and only fallback to hwmon if the reading is 0.

Right now, on my Strix Halo APU, my CPU temperature always reads as 0C even
though k10temp is working and reporting Tctl and the amdgpu sensors output
clearly shows no CPU temp value (just edge).

I took a quick look at the amdgpu format 3 handling and it's iterating through
all the sensors which are "VALID" but all reporting zero, so it preferes that
value over the one reported by k10temp.

My initial thought would be that we should prioritize the hwmon value for the
CPU temp anyway, but this is the minimal change to continue prioritizing the
amdgpu reported value and only fallback to hwmon if the reading is 0.
@flightlessmango
flightlessmango merged commit 4f75139 into flightlessmango:master Jul 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants