Bug 397352

Summary: Network Icon shows question mark when connected to a bridge
Product: [Plasma] plasmashell Reporter: null
Component: Networks widgetAssignee: Jan Grulich <jgrulich>
Status: RESOLVED FIXED    
Severity: normal CC: jgrulich
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Network Icon when using wifi with a VPN
Network icon when using wifi and a bridge

Description null 2018-08-10 18:06:08 UTC
The Network Icon shows a wifi indicator with a question mark instead of the wifi strength (+ lock, since I am using a VPN). 

I created a bridge (which I need for certain programs to work), however if I connect to it the indicator stops showing my connection status. Toggling "Show and configure virtual connections" does not fix the icon.

FYI, the bridge is using IPv4's "Shared to Other Computers". IPv6 is "Ignored".
Comment 1 Jan Grulich 2018-09-20 13:27:58 UTC
To understand the situation, you have "wifi icon + question mark" when you are connected to a wireless network and no icon at all when you are connected to bridge?
Comment 2 null 2018-09-20 13:47:20 UTC
Created attachment 115119 [details]
Network Icon when using wifi with a VPN
Comment 3 null 2018-09-20 13:47:46 UTC
Created attachment 115120 [details]
Network icon when using wifi and a bridge
Comment 4 null 2018-09-20 13:50:22 UTC
No. I didn't really explain this very well, sorry. 
I mean, I have 4 states.

Wifi: Shows wifi icon with the bars representing the signal strength
Wifi + VPN: Shows wifi icon with the bars representing the signal strength, plus a little padlock
Wifi + bridge: Shows wifi icon with no bars and a little question mark
Wifi + vpn + bridge: Shows wifi icon with no bars and a little question mark
Comment 5 Jan Grulich 2019-02-06 16:47:55 UTC
Git commit bc4d82c1565791db704788e5825e800bb07fc544 by Jan Grulich.
Committed on 06/02/2019 at 16:47.
Pushed by grulich into branch 'master'.

plasma-nm Connection Icon not showing correct icon when using a bridge

Summary:
This bug has already been reported in bug 397352

Whenever I'm adding a bridge interface to my system, plasma-nm changes the connection icon to a disconnected state even though an active wired or wireless connection is present. In my case, even though I have an active WiFi connection running in the background, as soon as I add the bridge interface, the connection icon changes from 'network-wireless-100' to 'network-wireless-available'.

This is probably happening because when the bridge becomes active, NetworkManager considers it the 'ActivatingConnection' and we are choosing the icon based on the 'ActivatingConnection' without running any checks on it. If the 'ActivatingConnection' returns an invalid object we move onto the 'PrimaryConnection'. I have made this diff to only consider the ActivatingConnection for the icon if the first Device for that connection is a "Wifi", "Ethernet", "Modem" or "Bluetooth". If it's not then move to the PrimaryConnection.

Reviewers: jgrulich, #plasma

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18689

M  +4    -1    libs/declarative/connectionicon.cpp
M  +13   -0    libs/uiutils.cpp
M  +6    -0    libs/uiutils.h

https://commits.kde.org/plasma-nm/bc4d82c1565791db704788e5825e800bb07fc544
Comment 6 Ben Cooksley 2024-12-23 18:25:59 UTC
Bulk transfer as requested in T17796