From 4644197dcba75590285b2e0d18f32855fa6d0b92 Mon Sep 17 00:00:00 2001 From: Bard Date: Tue, 27 May 2025 18:33:43 +0800 Subject: [PATCH] cpuinfo: add support for AMD Zen CPU temperature sensor * https://github.com/immortalwrt/immortalwrt/commit/fb74eb547c5b725e8868f9b2cd0fc9b39233b2c7 --- files/generic/cpuinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/generic/cpuinfo b/files/generic/cpuinfo index 00b2d23..15ce756 100755 --- a/files/generic/cpuinfo +++ b/files/generic/cpuinfo @@ -41,7 +41,7 @@ case "$DISTRIB_TARGET" in # Intel cpu_temp="$(sensors "coretemp-*" 2>"/dev/null" | grep -E "(Package id |Core )" | grep -Eo "\+[0-9.]*°C" | head -n1 | tr -d "+")" # AMD - [ -n "${cpu_temp}" ] || cpu_temp="$(sensors "k*temp-*" 2>"/dev/null" | awk '/Tdie/ {print $2}' | head -n1 | tr -d "+")" + [ -n "${cpu_temp}" ] || cpu_temp="$(sensors "k10temp-*" 2>"/dev/null" | awk '/Tctl|Tdie/ {print $2}' | head -n1 | tr -d "+")" ;; *) [ ! -e "$THERMAL_PATH/thermal_zone0/temp" ] || \