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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1575655

Title:
  the network indicator shows the wrong status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-applet/+bug/1575655/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to