Bug 901008

Summary: KDE NetworkManager applet shows disconnected link with wicked
Product: [openSUSE] openSUSE Tumbleweed Reporter: Giuseppe Gorgoglione <gorgoglione>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bwiedemann, dimstar, forgotten_DV81ZEWZkN, forgotten_sM9JzehKpy, forgotten_xVWkOds7nr, gorgoglione, joachim.banzhaf
Version: 201410*   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screenshot

Description Giuseppe Gorgoglione 2014-10-13 21:13:19 UTC
After installation from x86-64 DVD ISO (KDE GUI) the Network Manager service is disabled by default and no network connection is detected and made available.

Starting Yast2 -> Services Manager, and enabling "Network Manager" the problem is fixed.
Comment 1 Bernhard Wiedemann 2014-10-14 05:44:17 UTC
I think NetworkManager is only the default for laptops,
while wicked would be used on other machines.

Is this a laptop? Wired or Wireless connection?
Comment 2 Giuseppe Gorgoglione 2014-10-14 10:23:59 UTC
(In reply to Bernhard Wiedemann from comment #1)
> I think NetworkManager is only the default for laptops,
> while wicked would be used on other machines.
> 
> Is this a laptop? Wired or Wireless connection?

My installation is under VMware Workstation. The host system is a laptop with both wired and wireless connections (both shared with guest as virtual wired connection through NAT).

I just reinstalled a VM from scratch and verified that my bug description was not totally correct: the network connection is actually available out of the box, served by wicked. I was confused by the fact that the KDE NetworkManager tray applet is still loaded by default even when NetworkManager service is disabled, and incorrectly shows the network as not available.
Comment 3 Bernhard Wiedemann 2014-10-14 11:12:12 UTC
Created attachment 609954 [details]
screenshot

from https://openqa.opensuse.org/tests/27169/modules/xterm/steps/1
Comment 4 Bernhard Wiedemann 2014-10-14 11:18:35 UTC
OK, so the summary is that
after a default DVD KDE install,
network is working via wicked,
but KDE shows NetworkManager's disconnected-link-icon in the bottom right
which is at least confusing
Comment 5 Giuseppe Gorgoglione 2014-10-14 12:20:33 UTC
(In reply to Bernhard Wiedemann from comment #4)
> OK, so the summary is that
> after a default DVD KDE install,
> network is working via wicked,
> but KDE shows NetworkManager's disconnected-link-icon in the bottom right
> which is at least confusing

Yes, exactly. I also dearly miss the possibility to get in a simple way from the applet information about IP / MAC address / throughput of each connection, when NetworkManager service is disabled, but indeed the major point is the misrepresentation of the status.
Comment 6 Forgotten User xVWkOds7nr 2014-10-25 13:40:03 UTC
*** Bug 902496 has been marked as a duplicate of this bug. ***
Comment 7 Forgotten User sM9JzehKpy 2014-10-25 13:49:55 UTC
As far as I know there is no graphical frontend for Wicked.  The plasma-nm (KDE NetworkManager) is a frontend for NetworkManager. Which as far as I know is still the default for openSUSE and both GNOME and KDE rely on NetworkManager as the default. 

How did wicked ended up to be in control of the network interfaces ? Was this chosen during install ? 

At this moment there is no alternative then to remove manually plasma-nm from the installation. In the future with KDE Frameworks I believe that plasma-nm is only loaded in the systray if it detects a running NetworkManager
Comment 8 Forgotten User DV81ZEWZkN 2014-11-21 18:30:27 UTC
possible solution would be to drop 01-plasma-nm.js from plasma-nm, and extend plasma-disable-networkmanager.diff patch from kdebase4-workspace:

-    if (!applets.contains("org.kde.networkmanagement")) {
+    if (!applets.contains("org.kde.networkmanagement") && !QDBusConnection::systemBus().interface()->isServiceRegistered("org.freedesktop.NetworkManager") {


(yeah, as coolo wrote in orig. patch, it is kinda fragile, but i don't know what else we could do - this is also similar to upstream's approach in Plasma 5)
Comment 9 Tomáš Chvátal 2015-12-09 11:05:33 UTC
This should be fixed with Leap/TW now as it is properly hidden in plasma5.