-
Notifications
You must be signed in to change notification settings - Fork 143
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
No temperatures displayed #130
Comments
Thanks for the report, and especially the link. |
@alicektx , the version you're running is using the newest gopsutil, and also contains the changes referenced in the comment you linked. We may have to do some investigation. I have to make a couple of notes here, because when I had to fork the issues it confused the ticket histories and makes looking back in time harder :-)
@alicektx , you mentioned you patched v3.0. Can you link that patch? Also, I'm not certain this is the same issue; errors returned by gopsutil are dumped out to the error log, and you say your error log doesn't exist. Did you get the error log location from |
Thank you for your quick reply xxxserxxx! Indeed the log exists (--list paths, doh - how did i miss this?), 08:39:14 temp.go:18: error updating temp for psHost: Number of warnings: 1 Thanks in advance |
@alicektx The command line arguments have been evolving as I try to clean up and provide more clarity. I'm sure some of them are flying under a lot of people's radars! Can you tell me more about your system? You're on some *nix variant -- Linux, or a BSD? Can you tell me what Finally, would you mind downloading one of the v4.0.1 binaries for your system and seeing if it does the same thing? I don't think it will, but it's worth a shot. |
Hi! Sorry for being late in my reply - i really didn't wanted to further bother you above, Found some spare time today & decided to have an extra shot at it, Anyway - indeed, by copy paste trial & error...eventually, i did got it working 🚀 🌠
I've added in the attachment below, All the best |
Hi @alicektx -- thank you! I'll get this merged in ASAP. We moved house a few weeks back and it'll probably be a couple more weeks before we finish with the move and I can get back to the project, but I'll look at your changes and get it merged ASAP. Thanks again, and sorry for the delayed response. |
@alicektx -- I think what's happening is that gopsutil is getting errors from your temperature subsystem, and gotop is seeing the errors which causes it to skip the temps. Your code essentially ignores the errors: it creates an errors variable which it doesn't assign any value to, then later checks to see if it's empty -- which it always is. This causes gotop to think there are no errors, so it displays what it can get. gotop should be doing this anyway: any errors should be reported but ignored, because gopsutils can still return useful data even if the subsystem returns errors. This is a change to gotop. I've put it in the queue. |
$ git rev-parse HEAD
b47acdc
$ ./gotop --list devices
Temperatures:
./gotop --test
PASS
~/.local/state/gotop/errors.log -> doesn't exist
Hi. I had this issue with gotop-3.0, and it appears it's still here sadly
(looks like it still hasn't been fixed in gopsutil) :-/
Looking under /sys/class/hwmon, i see...
/sys/class/hwmon/hwmon0/name -> ADP0
/sys/class/hwmon/hwmon1/name -> BAT0
/sys/class/hwmon/hwmon2/name -> amdgpu
/sys/class/hwmon/hwmon3/name -> coretemp
/sys/class/hwmon/hwmon4/name -> pch_skylake
With v3.0, i was able to fix such using a patched gopsutil from cjbassi.
Please see comment & accompanying patch back then here.
Since that patch doesn't work for newer gopsutil / gotop, if possible,
I'd still like to see that worked around somehow at some point
(well, i don't wanna stay on older v3.0 for...eternity) :-)
Anything else, please ask me to test...
All the best
The text was updated successfully, but these errors were encountered: