aristocratos / bashtop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.76k stars 549 forks source link

"Check Temp" option : unable to set "true" and show CPU cores temp when using "psutil". Works on "/proc". #197

Open fcmircea opened 3 years ago

fcmircea commented 3 years ago

Describe the bug Unable to set "Check temp" to true ..it remains 9 times out 10 always on false

System is HP Microserver Gen8

To Reproduce

Switch "Use psutil" to "true goto "Check temp" options press left or right key or ENTER key value doesn't change to "true" and cores cpu temp are not displayed (I see only empty spaces). Switch "Use psutil" to false oto "Check temp" options press left or right key or ENTER key value changes and temps are shown

Expected behavior Temps should be displayed for both "psutil" and "/proc"

Info (please complete the following information):

LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8

If I may, this seems to occur again on ubuntu 20.04 and 0.9.25.

Output of sensors on my system:

fcmircea@hal9001:~$ sensors
tg3-pci-0300
Adapter: PCI adapter
temp1:        +83.0°C  (high = +100.0°C, crit = +110.0°C)

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

tg3-pci-0301
Adapter: PCI adapter
temp1:        +83.0°C  (high = +100.0°C, crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +57.0°C  (high = +85.0°C, crit = +105.0°C)
Core 0:        +53.0°C  (high = +85.0°C, crit = +105.0°C)
Core 1:        +57.0°C  (high = +85.0°C, crit = +105.0°C)
Core 2:        +50.0°C  (high = +85.0°C, crit = +105.0°C)
Core 3:        +55.0°C  (high = +85.0°C, crit = +105.0°C)

Please note that when using "/proc", temperatures are indeed displayed.

AngryPhantom commented 3 years ago

I can confirm this. But even disabling Use psutils doesn't help in my case. Distro: Void Linux (64bit glibc). All dependencies are satisfied, sensors command is working. Bashtop version is 0.9.25.

ggirelli commented 2 years ago

Same here. Disabling Use psutil does not help either. bashtop v0.9.25 on ubuntu 20.04. sensors version 3.6.0 with libsensors version 3.6.0 gives:

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +40.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +40.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:        +39.0°C  (high = +100.0°C, crit = +100.0°C)
Core 4:        +39.0°C  (high = +100.0°C, crit = +100.0°C)
Core 5:        +40.0°C  (high = +100.0°C, crit = +100.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        2781 RPM
fan2:        2514 RPM
CPU:          +40.0°C  
GPU:          +42.0°C  
temp3:        +44.0°C  
temp4:         +0.0°C  
temp5:        +54.0°C  
temp6:        +45.0°C  
temp7:        +48.0°C  
temp8:            N/A  

ucsi_source_psy_USBC000:002-isa-0000
Adapter: ISA adapter
in0:           0.00 V  (min =  +0.00 V, max =  +0.00 V)
curr1:         0.00 A  (max =  +0.00 A)

nouveau-pci-0100
Adapter: PCI adapter
temp1:        +36.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

BAT0-acpi-0
Adapter: ACPI interface
in0:          16.30 V  

ucsi_source_psy_USBC000:001-isa-0000
Adapter: ISA adapter
in0:           0.00 V  (min =  +0.00 V, max =  +0.00 V)
curr1:         0.00 A  (max =  +0.00 A)

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

pch_cometlake-virtual-0
Adapter: Virtual device
temp1:        +42.0°C  

nvme-pci-5500
Adapter: PCI adapter
Composite:    +32.9°C  (low  = -20.1°C, high = +77.8°C)
                       (crit = +81.8°C)
Sensor 1:     +32.9°C  (low  = -273.1°C, high = +65261.8°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +40.0°C  (crit = +128.0°C)
raketexyz commented 8 months ago

i have encountered the same issue.