CPU temperature 0°C in conky!

Hello
I have a problem with CPU temperature display on my conky !
Temp probes are well working : here data from sensors ( same in inxi) :
[ecr@ecr-inspiron3910 ~]$ sensors
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1: N/A
nvme-pci-e100
Adapter: PCI adapter
Composite: +28.9°C (low = -0.1°C, high = +82.8°C)
(crit = +89.8°C)
Sensor 1: +28.9°C (low = -273.1°C, high = +65261.8°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +30.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +26.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +25.0°C (high = +80.0°C, crit = +100.0°C)
Core 2: +30.0°C (high = +80.0°C, crit = +100.0°C)
Core 3: +25.0°C (high = +80.0°C, crit = +100.0°C)
Core 4: +26.0°C (high = +80.0°C, crit = +100.0°C)
Core 5: +30.0°C (high = +80.0°C, crit = +100.0°C)
I modified last year in my conky line for temperature as follow:
${hwmon 2 temp1}°C
But now it’s indicate 0 !! Any idea , SVP

I don’t use conky and know practically nothing about it.
But maybe marking °C confuses it? If so, then I’d try changing it to Celsius.

Edit: my guess seems wrong, sorry about that. :sweat_smile:

At you temp1: N/A
Choose a different sensor instead of temp1 which will indicate the temperature

@ dmali
OK I modified hwmon2 to hwmon1 and I have a temp 31°C which seems correct; I 'll try with others items
but why such changes, I suppose it’s a kernel change consequence ? each 6 months a such change ??

I don’t know, but you can try sudo sensors-detect , it will help you re-scan your sensors

For what is worth: https://wiki.archlinux.org/title/Lm_sensors
:thermometer:

Remodified to day as display 0°C from hwmn1 to hwmon2, then come back to origin !!
I fail to understand what happend…

What does ls -l /sys/class/hwmon show? Mine is like this:

hwmon0 -> ../../devices/pci0000:00/0000:00:18.3/hwmon/hwmon0
hwmon1 -> ../../devices/platform/asus-ec-sensors/hwmon/hwmon1
hwmon2 -> ../../devices/platform/PNP0C14:01/wmi_bus/wmi_bus-PNP0C14:01/466747A0-70EC-11DE-8A39-0800200C9A66/hwmon/hwmon2
hwmon3 -> ../../devices/platform/eeepc-wmi/hwmon/hwmon3

So for me, the most accurate is #1 (also latest module).

Here ls -l /sys/class/hwmon:
lrwxrwxrwx 1 root root 0 28 avril 16:11 hwmon0 → …/…/devices/pci0000:00/0000:00:0e.0/pci10000:e0/10000:e0:1a.0/10000:e1:00.0/nvme/nvme0/hwmon0
lrwxrwxrwx 1 root root 0 28 avril 16:11 hwmon1 → …/…/devices/virtual/thermal/thermal_zone3/hwmon1
lrwxrwxrwx 1 root root 0 28 avril 16:11 hwmon2 → …/…/devices/platform/coretemp.0/hwmon/hwmon2

My Conky started displaying 0°C this morning. I switched from ${hwmon 1 temp 1}°C to ${hwmon 2 temp 1}°C.

There isn’t a guarantied numerical order for hwmon devices, theoretically it can change on every boot.

For conky the easiest way is to use the device name. Type sensors and you see your device list with

nvme-pci-0500
…

coretemp-isa-0000
…

Use the first word as device name in conky:

${hwmon nvme temp 1}
${hwmon coretemp temp 4}
3 Likes

“${hwmon coretemp temp 0}°C” is working perfectly for me. Thanks! :+1:

2 Likes