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)

842Mono
  • 10,070

3 Answers3

63

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.

shakaran
  • 107
panticz
  • 1,936
2

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

Gremlin
  • 747
  • 7
  • 18
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.

mivk
  • 5,811