diff --git a/projects/Amlogic/filesystem/usr/bin/cputemp b/projects/Amlogic/filesystem/usr/bin/cputemp index 66e13bf88e..801603b096 100755 --- a/projects/Amlogic/filesystem/usr/bin/cputemp +++ b/projects/Amlogic/filesystem/usr/bin/cputemp @@ -3,6 +3,14 @@ # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) -TEMP=$(cat /sys/class/hwmon/hwmon0/temp1_input) +case $(dtsoc) in + amlogic,g12*) + TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone1/temp) + ;; + *) + TEMP=$(cat /sys/class/hwmon/hwmon0/temp1_input) + ;; +esac + TEMP="$(( $TEMP / 1000 ))" echo "${TEMP} C"