Bug 340306

Summary: Up/Down speeds don't work for mobile broadband connections
Product: [Plasma] plasma-nm Reporter: Najjar <abderrahman.najjar>
Component: appletAssignee: Jan Grulich <jgrulich>
Status: RESOLVED FIXED    
Severity: normal CC: abderrahman.najjar, jgrulich, lukas
Priority: NOR    
Version: 0.9.3.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.3.5
Sentry Crash Report:
Attachments: Screenshot of Plasma NM applet w/ Mobile Broadband & LAN
Screenshot of Plasma-NM. Only Mobile Broadband connected
Screenshot of speeds disappearing

Description Najjar 2014-10-24 14:24:23 UTC
Created attachment 89301 [details]
Screenshot of Plasma NM applet w/ Mobile Broadband & LAN

In the Plasma NM applet transfer (up/down) speeds are shown for each connection. This works fine for WiFi & LAN connections, but I've discovered that in the case of a mobile broadband modem (USB HSPA modem) the speeds are shown as Up: 0 B/s Down: 0B/s when the connection is active and trasnmiting (for example KGet dl'ing at 400 kB/s)

An screenshot is attached showing an example
Comment 1 Jan Grulich 2014-10-27 09:24:16 UTC
Have you tried to deactivate your ethernet connection? I think that the reason why it doesn't show any download/upload is that everything is downloaded/uploaded via your ethernet connection.
Comment 2 Najjar 2014-10-27 12:47:10 UTC
Created attachment 89337 [details]
Screenshot of Plasma-NM. Only Mobile Broadband connected
Comment 3 Najjar 2014-10-27 12:52:46 UTC
I've attached a screenshot of only the mobile broadband connected. I checked the possibilities before posting

The LAN is connected to a local storage device that's not connected to the internet, so the gateway is the 3G modem. I've also disconnected the VPN, so in the screenshot, internet activity is going directly through the provider's service. The problem is still there
Comment 4 Jan Grulich 2014-10-27 13:02:49 UTC
I'm just doing an update of plasma-nm and libnm-qt for Fedora with some fixes for modem connections so if you could try it and report whether it solves your problem or not that would be great.

If you don't want to wait for the update (which takes a while), you can download new builds directly from koji, just wait until build is finished for your architecture.

[1] - http://koji.fedoraproject.org/koji/taskinfo?taskID=7947480
[2] - http://koji.fedoraproject.org/koji/taskinfo?taskID=7947538
Comment 5 Najjar 2014-10-27 14:08:23 UTC
The problem seems to be resolved. I've noticed that kde-plasma-nm-mobile doesn't come installed with the rest of plasma-nm, it wasn't on my system and when attempting to install the updates from koji I was prompted to install it (not update it)

When installing the current stable package from the update repo (with your test builds from koji) speeds disappear. But when installing the test package (along with the other koji packages) things work as they should

So I can't confirm if those particular RPMs fixed the problem, or whether it was plasma-nm-mobile (because I can't get a clear explanation of what nm-mobile is supposed to do)
Comment 6 Jan Grulich 2014-10-27 14:22:49 UTC
It was not caused by missing kde-plasma-nm-mobile, because this subpackage is just for dependencies and it actually doesn't install anything. Problem was in IpInterfaceName property in modem device, which was not updated properly and thus we didn't know proper path to get current download/upload.
Comment 7 Jan Grulich 2014-10-27 14:23:24 UTC
Git commit f65fc66c236502e1e912531e3f783cdc7daf2727 by Jan Grulich.
Committed on 27/10/2014 at 10:15.
Pushed by grulich into branch '0.9.3'.

Watch for IpInterface change, otherwise it won't get updated
This is necessary for ModemDevices as IpInterface is used for monitoring
of current download/upload

M  +17   -0    libs/models/networkmodel.cpp
M  +1    -0    libs/models/networkmodel.h
Comment 8 Jan Grulich 2014-10-27 14:23:45 UTC
Git commit 28bc59ec62dc9cbd49c5af3ce415e7334c5fdd87 by Jan Grulich.
Committed on 27/10/2014 at 10:09.
Pushed by grulich into branch 'NM/0.9.8'.

Add workaround to properly update IpInterface

M  +2    -1    device.cpp
Comment 9 Najjar 2014-10-28 11:33:54 UTC
A minor problem arose. The original problem is resolved, but now sometimes after multiple connects/disconnects the speeds disappear altogether. The problem happens more often if the only connection is 3G, less often/maybe never when LAN is connected

Attached a screenshot
Comment 10 Najjar 2014-10-28 11:34:45 UTC
Created attachment 89344 [details]
Screenshot of speeds disappearing
Comment 11 Jan Grulich 2014-10-30 13:51:31 UTC
I was able to reproduce your issue, but the speed appeared later. I guess it's some issue in Plasma dataengine which we use for that and since you just need to wait for a while to get the speed I don't consider this as an issue.