From 6f8d365deb07accaa728ffe0850abca53f561ee5 Mon Sep 17 00:00:00 2001 From: Simon Gredal Date: Sun, 27 Sep 2020 06:39:11 +0200 Subject: [PATCH] Fix CPU Temp. not showing up on Raspberry Pi (#1566) Added another possible name to the regex for finding cpu temperature. This was tested on a Raspberry Pi 4 running Arch Linux ARM. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index c9a3e5cd..eaefbf23 100755 --- a/neofetch +++ b/neofetch @@ -2103,7 +2103,7 @@ get_cpu() { # Select the right temperature file. for temp_dir in /sys/class/hwmon/*; do - [[ "$(< "${temp_dir}/name")" =~ (coretemp|fam15h_power|k10temp) ]] && { + [[ "$(< "${temp_dir}/name")" =~ (cpu_thermal|coretemp|fam15h_power|k10temp) ]] && { temp_dirs=("$temp_dir"/temp*_input) temp_dir=${temp_dirs[0]} break