-
Notifications
You must be signed in to change notification settings - Fork 449
Temperature widget is not working ( not showing anything) !!! #103
Comments
Similar to #101. Is this a laptop or desktop? And if a laptop, what model? |
Also, can you run this and copy the output here: package main
import (
"fmt"
"github.com/shirou/gopsutil/host"
)
func main() {
temperatures, err := host.SensorsTemperatures()
fmt.Println(temperatures)
fmt.Println(err)
} |
It's a laptop: ASUS Vivobook 15 X542UN
I forgot to mention that everything was working perfectly when I first installed gotop, but after a while for some reason the temperatures widget became empty, I also didn't mention that the Disk Usage widget also doesn't work, i mean its there (not empty) the "Used" and "Free" sections show correct information but the "R/s" and "W/s" are always 0B, when i installed it everything was working perfectly !!! Of course, I updated the gotop folder to the latest release by using "git pull origin master", I tried to remove it, and reinstall again from the source, but the problem is still there. Here is 2 screenshots, one shows that everything was working fine, the other one i just took and you can see the empty temperature widget
I tried but it gives me these errors:
|
Oh, you have to copy that file into |
|
Here try:
|
pay attention that my previous answer was edited
|
Do you have a working GOPATH set up? What's your Go version? If you have go 1.11 then you can probably just clone that repo and run |
Or use this binary: |
First of all I'm sorry but it's my first time working with golang, so I'm kind of don't know what exactly I'm doing. My go version: Ok i did the following:
There I found 'main.go' file I ran:
I got the following output:
And I found this error in ~/.local.stat.gotop.errors.log
I thought this might be helpful: I also have gotop installed on Termux on my android tablet, the temperature widget is working there, and i got the following output after running the main.go file in the gotop directory after adding to it :
The output:
I also ran the following commands as you asked but this time on termux with working temperature widget:
|
Thanks for all the info and I'm glad you got it working! And no worries about being new. I should've been more helpful actually. It's a little tricky to setup Go for the first time and I shouldn't expect that everyone has done that already. So that actually clears a few things up for now. I'll check through this tomorrow and let you know what I come up with. |
So this should be fixed now! Let me know if you get any more issues otherwise. And thanks for taking the time to setup Go and do all the testing. |
Sometimes a temperature sensor file in `/sys/class/hwmon/hwmon*/temp*_*` fill return 'ENETDOWN: Network is down' when being read for some reason, which gopsutil propogates up to gotop. gopsutil still returns a slice of valid temperatures when it errors, so we can render those instead of ignoring the return value.
Sometimes a temperature sensor file in `/sys/class/hwmon/hwmon*/temp*_*` will return 'ENETDOWN: Network is down' when being read for some reason, which gopsutil propogates up to gotop. gopsutil still returns a slice of valid temperatures when it errors, so we can render those instead of ignoring the return value.
Thanks for being responsive, and I'm glad to be part of this. But unfortunately the problem is still there. ~/.locale/state/gotop/errors.log:
|
Did you try running gotop from the master branch? I haven't released a new version yet so that's your only option for now. |
So I noticed the error message you recently got is the same as before, but I changed that message when I fixed this. :D So maybe it was leftover? Or maybe gotop didn't update correctly. Can you tell me how you updated exactly? If you have your gopath set up then you should be able to do |
Yay! Glad its working :D Thanks again being responsive and helping with this. |
- SensorsTemperatures now returns a slice of errors - Previously, the function would return as soon as an error occured, but now we can continue to process the rest of the sensors even if an error occurs with one. Sometimes one sensor interface will be misbehaving but the rest will provide valid data. - cjbassi/gotop#101, cjbassi/gotop#103
This did not work for me. I installed go, and tried the Running the
I'm guessing more people will experience this same issue, and are wondering if there is a proper step-by-step on how to fix this? |
So I fixed this issue on gotop's end, but it turns out that gopsutil has an issue on its end within the Basically, I did some work on this here but I think I got stuck trying to test it and I've been pretty busy. |
Having the same issue with gotop 4.0.0 on a Lenovo T480. Might get time to help out when I get vacation. |
Hi @carlsmedstad -- this repository is archived. Current development is on xxxserxxx/gotop. Please see xxxserxxx/issues/16 for the current status of this ticket. Thanks! |
Required information:
gotop version (
gotop -v
): 2.0.0The output of
uname -a
: Linux XXX-X542UN 4.18.0-14-generic Additional custom widgets #15~18.04.1-Ubuntu SMP Mon Jan 14 11:09:26 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxTerminal shell (e.g. zsh or bash): bash
Terminal emulator (e.g. iTerm or gnome terminal): gnome terminal
Any relevenat hardware info: CPU: Intel i5-7200U, GPU: Intel HD Graphics 620, GPU: NVIDIA GeForce MX150
tmux version if using tmux:
Also please copy or attach the following file if it exists and contains logs:
~/.local/state/gotop/errors.log
~/Library/Logs/gotop/errors.log
~/.local/state/gotop/errors.log is EMPTY !!
Installlation method: Prebuilt binaries
The text was updated successfully, but these errors were encountered: