SUMMARY I am running Plasma version 5.18.5 on Kubutnu 20.04. I am seeing a bug that has been present for a long time (multiple releases of KDE and Kubuntu). The icon for the network control panel in the tray will often vanish (usually after a wake from sleep). I have to kill plasmashell and invoke it to get it back. STEPS TO REPRODUCE 1. Wake/sleep/wake/sleep several times OBSERVED RESULT Eventually, when waking up, the plasma-nm icon will no longer be in the panel, and it will not be in the hidden icons either. EXPECTED RESULT plasma-nm icon to always be there. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 ADDITIONAL INFORMATION This could be confirmation bias, since it's when I *want* the NM panel, but it seems to do it more when I wake from sleep, and the wireless network I was on is no longer there. Any tips on what I could gather for your analysis would be appreciated! :)
tsdgeos in #kde-devel mentioned that a possible cause might be a kded crash, and "plasma-nm doesn't seem to be smart enough to restart itself properly." The next time it does it, I will try to gather syslog and .xsession-errors output.
That's odd. Could also be Systray-model-related shenanigans.
I don't think it is a problem in systemtray model itself. I last releases it was changed several times, including one major rewrite. plasma-nm is "dbus-activable", this means that applet is shown when there is corresponding service running. It is possible that on suspend/wake the "org.freedesktop.NetworkManager" is disappearing and appearing again, but there are some timing issues. Joshua, * 5.18.5 is pretty old can you upgrade to newer version? * when icon is not present, can you try: 1. Open settings of System Tray. Right click on expander arrow or button in the popup (in latest Plasma) 2. Go to Entries, find Networks (Automatic load). Disable it (by selecting "Disabled", save settings and then enable again (for example by selecting "Shown when relevant"). 3. Please report the result of this test.
Konrad - Thanks for you reply! I will give that test a try as soon as it next vanishes. As to the version, I'm on Kubuntu 20.04, and I'm running the latest in kubuntu-ppa/backports/. It seems There was a decision to bump the required version of Qt in KDE, so there are no newer KDE/Plasma packages for Focal. Kubuntu 20.10 isn't out yet, so to upgrade Plasma, as far as I know, I'd have to do a LOT of compiling. :) If you know of simpler way, I'm all ears!
I vanished again. So, this is what I did: 1. Right clicked on expander arrow, and selected "Configure System Tray. 2. Found "Networks (Automatic Load) 3. Changed to Disabled 4. Clicked Apply 5. Changed networks to Always shown. 6. Hit apply 7. It's back. Agh...I did not pay attention to what it was before I changed it. It may have been "Shown when relevant." I'll keep an eye on it.
Thanks, that's what I expected. When it will happen again, can you also try running from console: sudo systemctl restart network-manager.service This should also make network icon appear. Unfortunately I don't know how to implement permanent solution, yet.
I do not think it's kded crashing, the applet might wrongly re-check whether NetworkManager DBus service is running. That's what makes it auto-loaded. And it's actually not the applet itself, but it's Plasma code somewhere checking DBus services specified in desktop files.
Jan Grulich, you are correct. My mistake, I wanted to change component of different issue :)
Welp...it vanished again. I did try sudo systemctl restart network-manager.service from the terminal, and it brought back the icon.
Just a data point. Vanished again. sudo systemctl restart network-manager.service brought it back.
Hi. I am having the exact same issue with Kubuntu 20.04 (5.18.5). I never experienced this issue with the version in Kubuntu 18.04. The only way to fix is to set icon to disabled, apply, then always shown apply or the command line sudo systemctl restart network-manager.service. It's super annoying but seeing I can use the command line to fix is far faster than doing the systray edit apply apply fix at least.
Any updates as to this being fixed in a later version? Hopefully will upgrade to Ubuntu 22.04 soon so curious if this is fixed yet. Also, is there a command-line equivalent to hide/show the network icon? `sudo systemctl restart network-manager.service` does work, but it would be nice if I could bring it back without restarting my network. :)
I am running KDE Neon these days. Currently at Plasma 5.27. I have not seen the network icon disappear since I started using it. Just FYI. :)
Yay, let's call it fixed until it happens again. I suspect this was ultimately due to a too-old NetworkManager version or something.
Sorry to report, this happened again. Resume from hibernate. KDE Neon, Plasma 5.27.6
Bulk transfer as requested in T17796