Bug 141029 - NetworkManager does not show correct value for signal strengh
Summary: NetworkManager does not show correct value for signal strengh
Status: VERIFIED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Beta 3
Hardware: All SUSE Other
: P5 - None : Normal (vote)
Target Milestone: Beta 8
Assignee: Timo Hoenig
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-25 14:31 UTC by Forgotten User 55iwwMllzz
Modified: 2007-06-05 09:57 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Signal strengh is zero, even though iwconfig reports a positive a Link Quality of 40 (121.20 KB, image/png)
2005-12-25 14:33 UTC, Forgotten User 55iwwMllzz
Details
Signal strengh and Encrypted values in KNetwork Manager are wrong (110.38 KB, image/png)
2006-01-28 21:40 UTC, Forgotten User 55iwwMllzz
Details
nm-tool and iwconfig output (83.93 KB, image/png)
2006-02-05 00:10 UTC, Forgotten User 55iwwMllzz
Details
As you can see, the small bar chart in the System Tray area shows the correct value (same in nm-applet). But on the other 2 places where KNetworkManager shows the signal strengh, the values are wrong. (86.99 KB, image/png)
2006-03-02 14:53 UTC, Forgotten User 55iwwMllzz
Details
The fix: use net->getStrength() instead of dev->getStrength(), add fallback, show correct icon if signal is zero (781 bytes, patch)
2006-03-03 12:41 UTC, Timo Hoenig
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User 55iwwMllzz 2005-12-25 14:31:03 UTC
Even though iwconfig shows a positive Link Quality value, KNetworkManager displays a zero value for Signal strengh. Please see the attached screenshot.
Comment 1 Forgotten User 55iwwMllzz 2005-12-25 14:33:13 UTC
Created attachment 61764 [details]
Signal strengh is zero, even though iwconfig reports a positive a Link Quality of 40
Comment 2 Timo Hoenig 2006-01-05 13:33:17 UTC
Joao, could you please give it a try with nm-applet and report whether it shows the signal strength correctly?
Comment 3 Timo Hoenig 2006-01-25 16:32:36 UTC
Joao, can you please re-test with Beta2 (should be released by tomorrow)?  It has an updated version of NetworkManager and KNetworkManager
Comment 4 Forgotten User 55iwwMllzz 2006-01-28 21:40:46 UTC
Created attachment 65545 [details]
Signal strengh and Encrypted values in KNetwork Manager are wrong
Comment 5 Forgotten User 55iwwMllzz 2006-01-28 21:47:09 UTC
I have re-tested now with Beta2 and the problem persists. As you can see by the attached screenshot, the value of Signal strengh does not match iwconfig's Link Quality. Also it says "Encrypted: no" which is wrong (as iwconfig shows, WEP is being used).
Comment 6 Forgotten User 55iwwMllzz 2006-01-31 00:44:34 UTC
Where does KNetworkManager get the signal strengh from? HAL?
Comment 7 Timo Hoenig 2006-02-01 08:23:43 UTC
Can you please run `nm-tool` as root?  It should tell whether NM shows a signal strength for the network.

(In reply to comment #6)
> Where does KNetworkManager get the signal strengh from? HAL?

No, NetworkManager.
Comment 8 Forgotten User 55iwwMllzz 2006-02-05 00:10:29 UTC
Created attachment 66479 [details]
nm-tool and iwconfig output

As you can see by the attached screenshot (taken using Beta3), although iwconfig shows a positive value for Link Quality, nm-tool gives 0% for Strengh and 0.000 MHz for Freq. No wonder that KNetworkManager shows wrong values.
So this is a NetworkManager bug. Should a new bug be opened?
Comment 9 Timo Hoenig 2006-02-05 17:13:58 UTC
Thanks for the updates, Joao.

I'll investigate this.  No need to open a new bug, I'll adjust the summary and will get back to you as I have news.

Moving to Beta 3.
Comment 10 Forgotten User 55iwwMllzz 2006-02-05 20:32:22 UTC
Just noticed one curious thing: even though nm-tool and KNetworkManager yellow tooltip show a zero value for signal strengh, the KNetworkManager System Tray icon (which is a tiny bar chart) reflects the real signal strengh value. Where does it get its value from?
Comment 11 Timo Hoenig 2006-02-05 23:00:55 UTC
(In reply to comment #10)

> Just noticed one curious thing: even though nm-tool and KNetworkManager yellow
> tooltip show a zero value for signal strengh, the KNetworkManager System Tray
> icon (which is a tiny bar chart) reflects the real signal strengh value. Where
> does it get its value from?

This is a bug.  As long as NM does not provide accurate information about the signal strength, KNM has no possibility to determine the signal strength by itself.
Comment 12 Forgotten User 55iwwMllzz 2006-02-23 18:16:31 UTC
In Beta4, nm-tool still doesn't report the correct signal strengh. I have tested with a non-encrypted network and nm-tool always report 100% signal strengh while, at the same time, iwconfig's Link Quality varies.
Comment 13 Forgotten User 55iwwMllzz 2006-03-02 14:48:22 UTC
(In reply to comment #11)
> This is a bug.  As long as NM does not provide accurate information about the
> signal strength, KNM has no possibility to determine the signal strength by
> itself.

Actually, I found out that is not entirely true. I tried GNOME on Beta5 and the yellow tooltip displayed when the mouse pointer is over the 'nm-applet' icon shows:
   «Wireless network connection to 'QD-TCF' (43%)»
And that percentage value, not only is correct, but also changes dinamically. This means that nm-applet gets the correct signal strengh, even though nm-tool reports a wrong value.

And this happens also with KNetworkManager. The small icon on the System Tray with the little bar chart actually shows the correct value for Signal Strengh! But the rest of KNetworkManager shows a wrong value. Please see attached screenshot for details.
Comment 14 Forgotten User 55iwwMllzz 2006-03-02 14:53:10 UTC
Created attachment 71013 [details]
As you can see, the small bar chart in the System Tray area shows the correct value (same in nm-applet). But on the other 2 places where KNetworkManager shows the signal strengh, the values are wrong.
Comment 15 Timo Hoenig 2006-03-02 15:01:25 UTC
Thanks for the updates Joao.

The divergence between the signal strength shown by ifup and NM is done on purpose.  NM normalizes the signal strength reported by the wireless driver to a logarithmic scale.

I hope Will has an idea wrt divergence between the context menu and the signal strength shown in the tray.

cc'ing Will.
Comment 16 Timo Hoenig 2006-03-02 15:02:33 UTC
s/ifup/ifconfig
Comment 17 Robert Love 2006-03-03 00:13:13 UTC
Timo: The divergences are because nm-tool is showing the per-network quality and the tooltip is showing the per-device strength.

In other words, we have two values here.  Both a device-wide and a per-network value.  A few drivers are broken and do not compute the per-network value.

This is what the user is seeing here.  The iwconfig value is the per-device setting and his driver displays this.  The nm-tool value is the per-network and his device does not.

I don't think there is a bug here, actually, except that this driver needs to be fixed.  All of the places that the user is seeing zero are per-network.
Comment 18 Timo Hoenig 2006-03-03 07:11:38 UTC
No, no, no, we do have a bug!  And you found it -- hooray :-) Thanks, Robert.

For the progress bars and tooltips we're using net->getStrength() but we're using dev->getStrength() for the tray icon.  This fits to the what I'm seeing in the attachment of comment #14.

Comment 19 Timo Hoenig 2006-03-03 12:41:38 UTC
Created attachment 71142 [details]
The fix: use net->getStrength() instead of dev->getStrength(), add fallback, show correct icon if signal is zero
Comment 20 Timo Hoenig 2006-03-03 12:51:06 UTC
I've commited the fix to SVN.

Joao, thanks for the testing and your patience.

If you're keen on using the fixed package, please let me know.  Otherwise you will not have the pleassure of getting it until Beta 8 is released (two weeks from now).
Comment 21 Timo Hoenig 2006-03-03 12:53:46 UTC
Fixed, closing.