DietPi CPU temperature wrong after upgrade

A couple months ago, after upgrading to 8.15 or 8.16 (I don’t recall which), my dietpi installation reports very low CPU temperatures, much lower (27C) than they have been in the couple years I have been running this system. Note I have it running on a miniPC, not on a Pi. It’s also a low temperature when I run the cpu command.

It took me awhile to get around to reporting this.

Any thoughts?

Creating a bug report/issue

Required Information

dataserver:~$ cat /boot/dietpi/.version
G_LIVE_PATCH_STATUS[0]=‘not applicable’
dataserver:~$ echo $G_DISTRO_NAME $G_RASPBIAN
dataserver:~$ uname -a
Linux dataserver 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux
dataserver:~$ dpkg --print-architecture
dataserver:~$ echo $G_HW_MODEL_NAME
Native PC (x86_64)

Additional Information (if applicable)

Not Applicable

Steps to reproduce

ssh into system

Expected behaviour

Appropriate CPU temperature

Actual behaviour

Temperature always cold (27C,80F)

Extra details

This started with either 8.15 or 8.16, a month or two ago

With 8.16 came this change,maybe this is the culprit.

Added more generic support for obtaining the CPU temperature, covering some thin clients and potentially other systems where no CPU temperature was shown when running the cpu command or enabling it for the login banner.

yes exactly, there was a change on how CPU temp is obtained on x86. @MichaIng could explain it more in details.

This fixes it: v8.16 · MichaIng/DietPi@4807e59 · GitHub

The version in the commit header is wrong, it’s fixed with v8.17 which will be released tomorrow :wink:.

CPU temp is incorrect on S905 with 8.17, displays correctly in Armbian prior to DietPi install

 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 Architecture |     aarch64
 Temperature  |     WARNING: 4294967295 °C / 7730941163 °F : Reducing the life of your device
 Governor     |     schedutil

                 Current Freq    Min Freq   Max Freq
 CPU0         |      1752 MHz      100 MHz    2016 MHz
 CPU1         |      1752 MHz      100 MHz    2016 MHz
 CPU2         |      1536 MHz      100 MHz    2016 MHz
 CPU3         |      1536 MHz      100 MHz    2016 MHz

[ INFO ] DietPi-CPU_info | The current CPU frequency may be affected by processing this script itself.