-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU TEMP / banner TEMP mismatch - Lenovo M93p #6315
Comments
Many thanks for reporting. Found the issue and fixed with: 4807e59 sed -i 's/"\${afp_temperature\[@\]}"/\${afp_temperature\[@\]}/' /boot/dietpi/func/dietpi-globals
. /boot/dietpi/func/dietpi-globals
cpu |
root@DietPi:~# cpu
─────────────────────────────────────────────────────
DietPi CPU Info
Use dietpi-config to change CPU / performance options
─────────────────────────────────────────────────────
Architecture | x86_64
Temperature | 48 °C / 118 °F : Optimal temperature
Governor | schedutil
Current Freq Min Freq Max Freq
CPU0 | 2492 MHz 900 MHz 3500 MHz
CPU1 | 2492 MHz 900 MHz 3500 MHz
CPU2 | 2494 MHz 900 MHz 3500 MHz
CPU3 | 2496 MHz 900 MHz 3500 MHz
[ INFO ] DietPi-CPU_info | The current CPU frequency may be affected by processing this script itself.
root@DietPi:~# sensors
acpitz-acpi-0
Adapter: ACPI interface
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +49.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +45.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +46.0°C (high = +80.0°C, crit = +100.0°C)
root@DietPi:~# Thank you for the quick response! |
doesn't report temp correctly on S905 device running v8.17.2
Temp was correct running Armbian before DietPi install |
If Armbian shows the temp somewhere, then it is obtained with a different mechanism. Which SBC exactly do you use? And can you show the output of: for i in /sys/devices/platform/coretemp*/hwmon/hwmon*/temp*; do [[ -e $i ]] && echo "$i : $(<$i)"; done |
its a generic S905 1g/8g box "uses gxbb-p201 device tree" no output with that command "no coretemp folder" |
Ah sorry, wrong command, please repeat with this one: for i in /sys/class/thermal/thermal_zone[0-9]/temp /sys/class/hwmon/hwmon[0-9]/temp[0-9]_input; do [[ -e $i ]] && echo "$i : $(<$i)"; done
It is using the Armbian meson64 "current" kernel, Linux 6.1? uname -a |
|
This does not look like an Armbian kernel. Which base image did you use before running the DietPi installer? Or which kernel package did you install? In case you do not know, this should show it: dpkg -l | grep linux None of the two only available sysfs sensor nodes report something useful. 4294967295000 / 1000 / 1000 / 1000 / 1000 ~= 4.29 42 °C would have been a value that makes sense, 4.2 °C however not, and 10 picoseconds won't be the unit. So if this did work on Armbian, then either with an older kernel version (probably Linux 5.15 which got upgraded to 6.1) or not using sysfs at all. Does this return some reasonable value? apt install lm-sensors
sensors This is not something we would implement but take it as broken sysfs hwmon API for this particular board, but at least you would have a tool to get the actual value then, or at least one where you can observe temperature changes, while I wouldn't trust the absolute value. |
Here's the Armbian splash
how do I see where they pull the temp from? |
this thread seems pertinent https://forum.khadas.com/t/thermal-reading-wrong/168/20 I tried to break into u-boot to issue that SARADC command but appears no USB keyboard support from what I understand is that the dtb used doesn't have the adc support? |
Jep, what you linked seems to match, so interestingly an issue on mainline kernel as well as vendor kernel. Check out the steps I posted above to see whether this returns a sensor with the same temperature as Armbian shows it in their login banner: apt install lm-sensors
sensors |
Creating a bug report/issue
Required Information
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=16
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='not applicable'
Distro version | bullseye
Kernel version | "Linux DietPi 5.10.0-21-amd64 # 1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux"
SBC model | Native PC (x86_64)
Lenovo ThinkCentre M93p, I3-4150, 4GB DDR3, 120GB SSD
Power supply used | Original power supply
SD card used | none
Additional Information (if applicable)
echo $G_HW_UUID
Steps to reproduce
Expected behaviour
Actual behaviour
Extra details
I read tickets #3172, #3412 and #4848 but couldn't find a solution. Tnx.
The text was updated successfully, but these errors were encountered: