35

Sometimes my network manager indicator (applet) shows as if I'm not connected to wifi (no bars) and when I right click it it says "networking disabled" although I am connected to the internet. Maybe it's a bug or something.

Running sudo service network-manager restart fixes this applet. It restarts the whole network. Does anyone know a simple way to restart just the applet? (nm-applet)

4
  • Is there a bug in Launchpad for this issue that we can follow? I'm more interested in "curing the disease" than "treating the symptom", so to speak.
    – Ryan
    Mar 18, 2017 at 18:17
  • 1
    I have the same problem in 16.04, and sudo service network-manager restart doesn't always fix it. For example, now the indicator shows zero "bars" and no network, even though I'm online typing this comment. Screenshot. Apr 3, 2017 at 20:33
  • 1
    @DanDascalescu see the accepted answer. use killall nm-applet; nohup nm-applet &
    – 842Mono
    Apr 3, 2017 at 20:46
  • @MinaMichael Thank you for the hint about sudo service ____ restart !! Jul 29, 2017 at 15:32

3 Answers 3

61

You can restart nm-applet with this command from terminal:

killall nm-applet; nohup nm-applet &

or by restarting the network-manager service (which will restart nm-applet):

sudo systemctl restart network-manager

or

sudo service network-manager restart

In new Ubuntu 22.04 versions and upper:

sudo systemctl restart NetworkManager.service

Here is a YouTube video explaining the answer.

8
  • 4
    Perfect -- working on 16.04 still.
    – dpb
    May 15, 2016 at 17:53
  • does the trick on 16.10 as well, fixing the not discovering new wifi on the xps 13 Nov 8, 2016 at 18:11
  • 1
    it doesn't work on 16.10. the app restarts but it does not show in taskbar. only works by restarting network-manager service. after killing nm-applet, not even restarting network manager shows it again, and I had to restart lightdm.
    – Zibri
    Dec 16, 2016 at 9:42
  • Worked on 16.04.2, while sudo service network-manager restart didn't (it led to the indicator showing zero "bars" and no network, even though I'm online typing this comment. Screenshot. Apr 3, 2017 at 20:35
  • but, how I can do the killall nm-applet && nohup nm-applet & automatically after resume ? Jul 17, 2017 at 1:54
2

If you have gnome, restarting the shell (Alt-F2, r, Return) might do it.

2
  • Sorry it didn't work for me. Btw I stated I'm on LXDE which is not gnome
    – 842Mono
    Sep 29, 2014 at 19:07
  • I shouldn't try that when Pycharm/Chrome/A few ssh session are opened...
    – Youw
    Nov 1, 2016 at 14:24
0

None of the accepted answer's suggestions worked for me in Ubuntu 16.04.5, but this did:

sudo killall -9 nm-applet && nm-applet &

The main difference seems to be sudo before killall.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .