Skip to content
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

[BUG] btop shows absolute zero CPU temp #467

Closed
joske opened this issue Nov 14, 2022 · 8 comments · Fixed by #840
Closed

[BUG] btop shows absolute zero CPU temp #467

joske opened this issue Nov 14, 2022 · 8 comments · Fixed by #840
Assignees
Labels
bug Something isn't working

Comments

@joske
Copy link
Collaborator

joske commented Nov 14, 2022

On an amazon EC2 instance (not sure, but a VM for sure), a colleague of mine saw the CPU temp as -273 C:

To Reproduce

not known if it is like this on all VMs

Expected behavior

a reasonable CPU temp

image

Info (please complete the following information):

  • btop++ version: btop -v 1.2.13
  • Binary: snap install btop
  • (If compiled) Compiler and version:
  • Architecture: [x86_64, aarch64, etc.] uname -m x86_64
  • Platform: Linux
  • (Linux) Kernel: uname -r 5.15.0-1022-aws
  • (OSX/FreeBSD) Os release version: ubuntu 20.04.5
  • Terminal used: not known - probably not relevant
  • Font used: not known - not relevant
@joske joske added the bug Something isn't working label Nov 14, 2022
@joske
Copy link
Collaborator Author

joske commented Nov 14, 2022

Ok, in the guest OS, there's nothing in /sys/class/hwmon. Also no coretemp in /sys/devices/platform so I guess there's nothing more to do than not show the temp if it's 0.

@aristocratos
Copy link
Owner

@joske
It also looks in /sys/class/thermal.
Regardless, don't think I've ever seen the sensors data being passed down from the VM host to the guest. So unless there is specific functionality built in to do this, I wouldn't trust any sensors data inside a VM.

He could always just set show_temp config option to false, I mean, that's why it's there.

Although acknowledging that sub-zero cooling is extremly rare; ignoring the temp below zero would be throwing away valid data if the temp is below 0.

@aristocratos
Copy link
Owner

But who knows, maybe amazon has built quantum servers and managed to cool the system to 273.4 that gets rounded down to 273 :)

@joske
Copy link
Collaborator Author

joske commented Nov 14, 2022

I'll ask him again tomorrow, I also received an EC2 instance, also installed btop via snap, and in that machine, btop just doesn't show the temperature.

@aristocratos
Copy link
Owner

and in that machine, btop just doesn't show the temperature.

That would be the expected in a VM, not sure why he as sensors picking anything up at all.

@FlamenWolf
Copy link

I'm on PopOS with no VM and I have the same bug. I have a tool named Vitals I got off of gnome extensions and it detects my cpu temperature with no problem.

@azzydoesgit
Copy link

I'm on PopOS with no VM and I have the same bug. I have a tool named Vitals I got off of gnome extensions and it detects my cpu temperature with no problem.

What hardware are you using? I'm on PopOS as well and have never had any issues.

@vitaly-zdanevich
Copy link

vitaly-zdanevich commented May 19, 2023

It showing 1 degree for me, my first thought was that wow my big watercooling works so great.

Previously on the same machine I had some normal temperature, in BIOS I see real ~38 degrees.

Ubuntu 22.02.2 LTS.

joske added a commit that referenced this issue May 4, 2024
Brugarolas added a commit to Brugarolas/btop that referenced this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants