netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=73a5305dde215f833bbd55c2ee8716ef35ec9454
commit 73a5305dde215f833bbd55c2ee8716ef35ec9454 Author: Alastair Poole <[email protected]> Date: Mon Jun 8 14:05:16 2020 +0100 machine: read rpi3/4 cpu core temperature. --- src/bin/system/machine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/system/machine.c b/src/bin/system/machine.c index 74327f6..3234f8f 100644 --- a/src/bin/system/machine.c +++ b/src/bin/system/machine.c @@ -712,7 +712,8 @@ _temperature_cpu_get(int *temperature) if (type) { /* This should ensure we get the highest available core temperature */ - if (strstr(type, "_pkg_temp")) + if ((strstr(type, "_pkg_temp")) || + (!strncmp(type, "cpu-thermal", 11))) /* RPI4 */ { snprintf(path, sizeof(path), "/sys/class/thermal/%s/temp", dh->d_name); char *value = file_contents(path); --
