#983352 htop: "Also show CPU temperature" option shows "N/A"

Package:
htop
Source:
htop
Description:
interactive processes viewer
Submitter:
rv
Date:
2021-03-22 17:21:10 UTC
Severity:
normal
Tags:
#983352#5
Date:
2021-02-22 20:05:39 UTC
From:
To:
Hi,

seems to be an upstream issue:

https://github.com/htop-dev/htop/issues/529

"Temperature is showing as N/A when enabled on a Via Eden x2 u4200 even though libsensors is actually installed.
O.S.: Arch Linux
Device: HP t510 Thin Client"

(I reported my case there.)

And related to:

https://github.com/htop-dev/htop/issues/538

"At the moment htop has hardcoded list of x86-64 cpu sensors. So it does not read them on my computers ;(
For now I added 'acpitz' to hardcoded list but that's not a good solution."

But, just in case, I'm informing here too.

Let me know if I can do anything else.

Thanks a lot and best regards!

#983352#10
Date:
2021-02-22 21:43:38 UTC
From:
To:
Maybe this is too obvious, but just in case, in the first hardware (previous message) the bug is present, but not in the second hardware (the one of this message).

**First hardware (bug present):**

```
$ sudo lshw
debian
    description: Desktop Computer
    product: M68M-S2P
    vendor: Gigabyte Technology Co., Ltd.
    width: 64 bits
    capabilities: smbios-2.4 dmi-2.4 smp vsyscall32
    configuration: boot=normal chassis=desktop uuid=36434630-3439-3942-4235-3133FFFFFFFF
  *-core
       description: Motherboard
       product: M68M-S2P
       vendor: Gigabyte Technology Co., Ltd.
       physical id: 0
       version: x.x
     *-firmware
          description: BIOS
          vendor: Award Software International, Inc.
          physical id: 0
          version: F1
          date: 11/18/2009
          size: 128KiB
          capacity: 1MiB
          capabilities: pci pnp apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification
     *-cpu
          description: CPU
          product: AMD Phenom(tm) 8650 Triple-Core Processor
          vendor: Advanced Micro Devices [AMD]
          physical id: 3
          bus info: cpu@0
          version: AMD Phenom(tm) 8650 Triple-Core ProcessorR
          slot: Socket M2
          size: 1150MHz
          capacity: 3200MHz
          width: 64 bits
          clock: 200MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs hw_pstate vmmcall npt lbrv svm_lock cpufreq
(...)
```

**Second hardware, from which this report is being sent (bug is NOT present, htop works as expected):**

```
$ sudo lshw
debian
    description: Notebook
    product: 4298A26
    vendor: LENOVO
    version: ThinkPad X220 Tablet
    serial: R9P31TD
    width: 64 bits
    capabilities: smbios-2.6 dmi-2.6 smp vsyscall32
    configuration: administrator_password=disabled chassis=notebook family=ThinkPad X220 Tablet power-on_password=disabled uuid=8125C6A9-E843-CB11-8E90-B848DEED99EE
  *-core
       description: Motherboard
       product: 4298A26
       vendor: LENOVO
       physical id: 0
       version: Not Available
       serial: 1ZMDP45NFS3
       slot: Not Available
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
          vendor: Intel Corp.
          physical id: 1
          bus info: cpu@0
          version: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
          serial: Not Supported by CPU
          slot: CPU
          size: 812MHz
          capacity: 3200MHz
          width: 64 bits
          clock: 100MHz
          capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts cpufreq
          configuration: cores=2 enabledcores=2 threads=4
(...)
```

Hope I'm not spamming...

Best regards.

#983352#15
Date:
2021-02-23 06:11:36 UTC
From:
To:
Am 22.02.21 um 22:43 schrieb rv:

Your bug report is of high quality and thus definitely not spam.

But you had already found the upstream bug report and reported your info
there, too.
That is more useful than a Debian bug as there is nothing we can do
about this via packaging htop better.

After the bullseye release there will be more users with VIA Eden or AMD
Phenom processors where htop does currently not show temperatures. So
may be they find this bug and not create duplicates. We can always hope :).