1

When I use wireless network,the network status icon show up wireless connection icon.WIFI connection status icon

But when I use command ifconfig wlan2 down to disconnect wifi,the network status icon still show up connection status.

The network status has not changed to disconnect icon.WIFI has already disconnected network,but the status icon still show up connection.

How can I to fix the status icon sync problem?

My ubuntu version is Ubuntu 14.04.1 LTS

  • I can confirm the same behavior with ubuntu-mate 16.04. – Thanos Apostolou Jun 3 '16 at 8:41
  • Is that ubuntu bug? Have any way to fix it? – william_h Jun 3 '16 at 8:59
  • If you would like to disable a certain card, you should remove the kernel module. – mchid Jun 3 '16 at 9:17
  • What kernel module does wlan2 use? I can give you an answer that will disable this card and will automatically show in network-manager the moment it is disconnected with this information. – mchid Jun 3 '16 at 9:19
  • 1
    A temporary workaround is after the ifconfig wlan2 down run the command killall nm-applet; nohup nm-applet & (this will restart nm-applet, not the whole netowrk-manager so that your ifconfig wlan2 down command still has effect). – Thanos Apostolou Jun 3 '16 at 9:28
0

Okay, here is an answer that should work. To disable the wifi card, you can disable the kernel module by running the following command:

sudo modprobe -r iwlwifi

If this works, the icon will usually update immediately.

To re-enable the kernel module to bring the device back up, run the following command:

 sudo modprobe iwlwifi
| improve this answer | |
  • I have tried the answer you provide. The network manager icon appear correctly. But the wifi status is incorrectly.After I use command sudo modprobe iwlwifi to re-enable the module. The network manager Icon displays disconnection status of wifi.But my wifi status is online. I think this problem is ubuntu bug because when I use command ifconfig eth3 down or ifconfig eth3 up to disable or enable the wire. The network manager icon of wire show up correctly.Wire network status show up correctly,too. – william_h Jun 17 '16 at 3:55
  • When I use ifconfig wlan2 down or ifconfig wlan2 up command to enable or disable wireless,the wireless network icon status is incorrectly.It is strange. The ifconfig command can work correctly for wire icon status ,but it can't work correctly for wireless icon status. Is that bug in ubuntu network manager? – william_h Jun 17 '16 at 3:55
  • @william_h That is not a bug. Network-manager is designed to be used instead of ifconfig commands. Use one or the other. You can use nmcli commands if you prefer to use command line and still want to use network-manager. – mchid Jun 23 '16 at 5:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.