dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #40534
[Bug 1575655] Re: the network indicator shows the wrong status
Hi,
After testing some more, restarting the networkmanager does fix the
issue for me too. However, it doesn't make sense, to me, to restart the
whole service to fix this issue. Restarting the applet makes more
sense.... to me.
I have found a way to automatically restart nm-applet each time the
machine resumes from a suspend.
Disclaimer!!
((This is only a (hack/temporary-fix/work-around) as it doesn't address the cause of the issue.))
Short description of solution:
I created a script that kills nm-applet at suspend|hibernate, then starts another nm-applet on resume|thaw. Then I placed it in (etc/pm/sleed.d) and named it "90_Restart_nm-applet" and made it executable.
Specific steps taken:
1- Download attached script (90_Restart_nm-applet)
2- Open a terminal (Ctrl+Alt+T)
5- type in "sudo nautilus" without the quotations and enter your password.
******PLEASE DO NOT DO ANYTHING, OTHER THAN THE FOLLOWING STEPS , IN
THIS FILE MANAGER WINDOW (NAUTILUS), INCLUDING DELETING, RENAMING, AND
MOVING FILES. IT WILL MESS WITH THE OWNERSHIP OF AND ACCESS TO
FILES********** <------ headache to track fix.
6- navigate to the downloaded script (90_Restart_nm-applet) and copy it. It is probably in your downloads folder in /Home/<your_user_name>/Downloads.
7- navigate to /etc/pm/sleep.d
8- paste (90_Restart_nm-applet) there, then right click it, and select properties.
9- go to (Permissions) tab and check (Allow executing file as program).
10- close properties menu and file manager (Nautilus)
done.
Someone might be able to write terminal commands to do this, I don't
know how to.
Now the nm-applet should restart whenever the system resumes from a
suspend.
Few things to note:
a- I'm running UBUNTU 16.10 with a UNITY 7.5.0. Kernel... I posted my info in a precious comment...
b- Because of (a), the address at which your script to be placed might be different than mine. Do some research. I found mine in an answer by (fader) here: "http://askubuntu.com/questions/92218/how-to-execute-a-command-after-resume-from-suspend" <--- a good place to start.
Please keep in mind that this doesn't fix the underlying issue, it is
only a work-around. As such, it may create more issues than the one it
fixes.
Let me know if anymore information is needed,
Basem.
P.S
I have a feeling that I put comment in the wrong format for this website. Let me know how to fix it, Thanks.
** Attachment added: "Kills nm-applet on suspend and starts it on resume"
https://bugs.launchpad.net/ubuntu/+source/indicator-applet/+bug/1575655/+attachment/4820369/+files/90_Restart_nm-applet
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-applet in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1575655
Title:
the network indicator shows the wrong status
Status in indicator-applet package in Ubuntu:
Confirmed
Bug description:
Description: Ubuntu 16.04 LTS
Release: 16.04
indicator-applet:
Installed: (none)
Candidate: 12.10.2+15.04.20141127.2-0ubuntu1
Version table:
12.10.2+15.04.20141127.2-0ubuntu1 500
500 http://se.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
The network indicator sometimes shows the icon for wired connections
and sometimes claims wifi without connection even though I'm
consistently connected over wifi. I don't mean to say that it switches
between these two or that always is wrong. But sometimes my connected
to wifi symbol changes to wired. Other times it will change to the no
connection wifi. The info is correct on boot, but switches over time,
possibly after suspension.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: indicator-applet (not installed)
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 27 14:54:42 2016
InstallationDate: Installed on 2016-04-08 (18 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160323)
SourcePackage: indicator-applet
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-applet/+bug/1575655/+subscriptions
References