GitSquared / edex-ui

A cross-platform, customizable science fiction terminal emulator with advanced monitoring & touchscreen support.
GNU General Public License v3.0
40.81k stars 2.58k forks source link

CPU temperature not displaying any value. #1101

Closed uKaigo closed 3 years ago

uKaigo commented 3 years ago

Technical information

Using version:

Running on:

How comfortable you are with your system and/or IT in general:


Problem

The temperature indicator of the CPU is not showing anything, instead displaying null.

screenshot

It's not working in v2.2.6 either.

wrac4242 commented 3 years ago

could you try running from the source itself?

uKaigo commented 3 years ago

Done, and the same thing happens.

GitSquared commented 3 years ago

Mmmh. Let's try checking the reported value directly from the system information library.

Could you:

Here's a screenshot of what it should look like once you're done.

image

Thanks for your help!

uKaigo commented 3 years ago

Here's what I get: image

wrac4242 commented 3 years ago

which linux distro are you on, as a few dont have a sensor package installed by default

uKaigo commented 3 years ago

Mint 20.1 Ulyssa

GitSquared commented 3 years ago

Could you try these two shell commands:

cat /sys/class/thermal/thermal_zone*/type 2>/dev/null; echo "-----"; cat /sys/class/thermal/thermal_zone*/temp 2>/dev/null;

for mon in /sys/class/hwmon/hwmon*; do for label in "$mon"/temp*_label; do if [ -f $label ]; then value=$(echo $label | rev | cut -c 7- | rev)_input; if [ -f "$value" ]; then echo $(cat "$label")___$(cat "$value"); fi; fi; done; done;

They should help us determine what sensors are available on your hardware and successfully detected by the kernel.

uKaigo commented 3 years ago

There's no thermal_zone* file in /sys/class/thermal/ (only cooling_device*).

The last command only returned a 0 exit code (without echoing anything).

But I get

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +41.5°C  (high = +70.0°C)

from the sensors command

GitSquared commented 3 years ago

Interesting, what directories are there in /sys/class/hwmon?

The sensors output show a thermometer on the PCI bridge but that's not what edex is looking for. I've pulled up the specs of your CPU (using the model name from the first screenshot you posted), and I'm starting to think it might not have an on-die thermal diode at all, but maybe I'm mistaken.

Here's what sensors looks like for me, for reference:

iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +47.0°C  

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +42.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +39.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +40.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +39.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +40.0°C  (high = +100.0°C, crit = +100.0°C)
Core 4:        +41.0°C  (high = +100.0°C, crit = +100.0°C)
Core 5:        +39.0°C  (high = +100.0°C, crit = +100.0°C)

BAT0-acpi-0
Adapter: ACPI interface
in0:          12.64 V  
curr1:       1000.00 uA 

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +25.0°C  (crit = +107.0°C)

You can see there's both a PCI bridge sensor and on-die sensors on the cpu, which is what edex is trying to find.

uKaigo commented 3 years ago

I see. There's only one directory in /sys/class/hwmon: hwmon0 -> ../../devices/pci0000:00/0000:00:18.3/hwmon/hwmon0

GitSquared commented 3 years ago

Well that confirms it, you're missing the hardware sensor we're trying to read... I'm going to close this for now but I'll look with downstream dependencies to see if it's worth reading other sensors as a fallback and displaying that in edex.

Thanks for submitting a report & going through the debugging steps!