From 5c5824489753cbdeedd63662473f4cf52936a78a Mon Sep 17 00:00:00 2001 From: Kayant Date: Sat, 21 Apr 2018 12:20:57 +0100 Subject: [PATCH] cpu_temp: Add support for Zen processors This adds support for Zen based processors(AMD family 17h) like the Ryzen series using the k10temp module. This requires either having a patched kernel with the hwmon updates see - lkml.org/lkml/2017/9/6/684 Or kernel 4.15+ where the patch was merged. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 66669e01..5e60a961 100755 --- a/neofetch +++ b/neofetch @@ -1022,7 +1022,7 @@ get_cpu() { # Select the right temperature file. for temp_dir in /sys/class/hwmon/*; do - [[ "$(< "${temp_dir}/name")" =~ (coretemp|fam15h_power) ]] && \ + [[ "$(< "${temp_dir}/name")" =~ (coretemp|fam15h_power|k10temp) ]] && \ { temp_dir="${temp_dir}/temp1_input"; break; } done