Closed denispr closed 10 years ago
Please try the following in a console:
killall indicator-netspeed && indicator-netspeed & disown
Does your interface now appear in the list?
If not, please post the output of
ifconfig
yes, now ppp0 appears on the list. But selecting it in the list does not work, wlan0 still appears as the monitored interface and downloading files shows "0,0 Kb/s" in netspeed.
The reason why ppp0 doesn't initially appear in the list is probably that indicator-netspeed starts before the modem is picked up by the OS. We never refresh the interface list after it's populated once (that's a known issue, I'll create a ticket for it).
However, I would have expected ppp0 to be selectable after the restart. Can you select "all"? Does that show any traffic?
selecting "all" does not work either, "wlan0" still appears as the monitored interface after that operation.
Could you please select ppp0 from the interface list, then run the following in a console and post the output
dconf read /apps/indicators/netspeed/if-name
In case you don't have dconf
installed, you need to install package dconf-cli
(at least that's how it's called on Debian and Ubuntu).
well, strangely, after I performed dconf read /apps/indicators/netspeed/if-name (which returned "ppp0"), netspeed works, displaying non zero throughput and showing that the monitored interface is ppp0...
Interesting. I will investigate this further and get back to you. Thanks for your input!
I've added some tracing. Would you be so kind and check out to the latest revision, go to the checkout directory, then execute
make
killall indicator-netspeed
./indicator-netspeed --trace
and after a few second you can kill it with Ctrl+C.
The output should show something like
Tracing is on
populating list of interfaces
adding interface eth0
skipping loopback interface
adding interface ppp0
adding interface wlan0
followed by repeatedly
getting net traffic...
selected interface is ppp0
and
processing interface XXX
for each interface.
What does it do for interface ppp0. Does it show any in/out traffic or does it say "skipping"? Does "processing interface ppp0" appear at all?
Good news, after rebooting, it still worked, showing traffic on ppp0.
Tracing is on populating list of interfaces adding interface ppp0 adding interface wlan0 skipping loopback interface adding interface eth0
getting net traffic... selected interface is ppp0
processing interface ppp0 in: 164595, out: 0
processing interface wlan0 skipping
processing interface lo skipping loopback interface
processing interface eth0 skipping
Just one thing, I also tried to select "all", just to see what it does, and it made indicator-netspeed crash with segmentation fault.
Just one thing, I also tried to select "all", just to see what it does, and it made indicator-netspeed crash with segmentation fault.
Does that happen every time you click all? I can not reproduce this here.
I tried three times, it happened each time.
Sorry, my fault. Recompiling helps :-)
This problem should be fixed now. I introduced it accidentally in my previous commit. In my defense: the GTK docs aren't very clear on who owns what memory and who's responsibility it is to free it again.
Thanks, I tested the new release, no more crash !
I'm connected to the internet through a speedtouch modem, so the used interface is ppp0. Unfortunately, that interface is not displayed in netspeed interfaces list. Only eth0 and wlan0.