How to restart the network manager applet

41,302

Solution 1

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

Here is a YouTube video explaining the answer.

Solution 2

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

Share:
41,302

Related videos on Youtube

Mina Michael
Author by

Mina Michael

Updated on September 18, 2022

Comments

  • Mina Michael
    Mina Michael over 1 year

    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)

    • Ryan
      Ryan about 7 years
      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.
    • Dan Dascalescu
      Dan Dascalescu about 7 years
      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.
    • Mina Michael
      Mina Michael about 7 years
      @DanDascalescu see the accepted answer. use killall nm-applet; nohup nm-applet &
    • isomorphismes
      isomorphismes almost 7 years
      @MinaMichael Thank you for the hint about sudo service ____ restart !!
  • Mina Michael
    Mina Michael over 9 years
    Sorry it didn't work for me. Btw I stated I'm on LXDE which is not gnome
  • dpb
    dpb about 8 years
    Perfect -- working on 16.04 still.
  • Youw
    Youw over 7 years
    I shouldn't try that when Pycharm/Chrome/A few ssh session are opened...
  • Sideshowcoder
    Sideshowcoder over 7 years
    does the trick on 16.10 as well, fixing the not discovering new wifi on the xps 13
  • Zibri
    Zibri over 7 years
    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.
  • Dan Dascalescu
    Dan Dascalescu about 7 years
    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.
  • Yonsy Solis
    Yonsy Solis almost 7 years
    but, how I can do the killall nm-applet && nohup nm-applet & automatically after resume ?
  • dragon788
    dragon788 over 6 years
    @YonsySolis I'll see if I can find the question and answer that covers that, but it is a udev or systemd power state rule IIRC.
  • FKEinternet
    FKEinternet almost 5 years
    I found nm-applet occupying the top 2 positions (sorted by CPU usage) in htop when I had a flaky Internet connection. The killall method seems to have cured both problems, thank you!
  • pds
    pds over 4 years
    killall nm-applet && nohup nm-applet & && disown -- Add disown to unhook executed job from the running shell.