aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Cobley <popcornmix@gmail.com>2023-09-01 12:13:20 +0100
committerDom Cobley <popcornmix@gmail.com>2023-09-01 12:16:06 +0100
commit72c4b0983fb0d9156daffabd006931aa2b925cde (patch)
treefa67617de6875a1ab9ef59840fb6b744541b1366
parentefe703a063e10b8bbe0493c0c88b75805364c875 (diff)
downloadxbmc-72c4b0983fb0d9156daffabd006931aa2b925cde.tar.xz
CPUInfoLinux: Support cpu_thermal hwmon temperature module
On most ARM platforms, including Raspberry Pi the hwmon is named cpu_thermal: LibreELEC:~ # cat /sys/class/hwmon/hwmon1/name cpu_thermal LibreELEC:~ # cat /sys/class/hwmon/hwmon1/temp1_input 42450 Also support that name.
-rw-r--r--xbmc/platform/linux/CPUInfoLinux.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/platform/linux/CPUInfoLinux.cpp b/xbmc/platform/linux/CPUInfoLinux.cpp
index 79680fb52f..728480ca25 100644
--- a/xbmc/platform/linux/CPUInfoLinux.cpp
+++ b/xbmc/platform/linux/CPUInfoLinux.cpp
@@ -95,11 +95,12 @@ CCPUInfoLinux::CCPUInfoLinux()
if (freqPath.Exists())
m_freqPath = freqStr;
- const std::array<std::string, 4> modules = {
+ const std::array<std::string, 5> modules = {
"coretemp",
"k10temp",
"scpi_sensors",
"imx_thermal_zone",
+ "cpu_thermal",
};
for (int i = 0; i < 20; i++)