Ubuntu – 16.04 LTS – all wifi connectivity lost when changing wifi networks

16.04intelnetwork-managerwireless

After upgrading from 15.10 to 16.04, when I switch wifi networks using the network manager applet, all networking capability is lost. Before selecting the different wifi network, the wifi works perfectly. After I lose connection, I can restart the wifi using sudo systemctl restart network-manager.service. But I can't switch networks.

At the bottom of this post is a screenshot showing what the applet looks like after the attempt to switch networks: no wifi networks are visible from the applet's list, and the applet reports "device not ready."

Here is the output from lspci -knn | grep Net -A2; rfkill list:

03:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 6b)
    Subsystem: Intel Corporation Dual Band Wireless-N 7260 [8086:4160]
    Kernel driver in use: iwlwifi
0: asus-wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
2: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

The results of modinfo iwlwifi | grep 7260 are:

firmware:       iwlwifi-7260-13.ucode

Please note that this is unrelated to the commonly reported bug that wifi does not work on resume from suspend. There are at least three solutions to that issue here. I tried all of those suggestions, plus I also installed network-manager_1.2.0-0, all to no avail.

The issue I am requesting help on is specifically that wifi completely stops working whenever I attempt to switch networks.

I am adding a bounty and the results from the wifi script on ubuntuforums. Also, please note that I installed iwlwifi-7260-17.

I also am aware of the suggestions in bug report #1574347 (I posted on that report on post #8, although I think that the bug report is for the suspend-resume issue not my changing APs issue). In all events, I tried the suggestions to upgrade network-manager and network-manager-gnome (see post #42), to no avail.

I also am aware of bug report #1311257 and the suggested script to fix that bug. I implemented that script and regressed back to the suspend-resume issue.

Network Manager applet

Best Answer

You have upgraded to the latest LTS version of Ubuntu, and like many you have been having problems with Wi-Fi. You experienced loss of Wi-Fi on resuming from suspend. This was due to bug 1574347, bug 1311257 or some combination of the two. You found a workaround that worked. However when you switch networks you again lose Wi-Fi connectivity with NetworkManager not seeing any Wi-Fi access points. What should you do?

The following is the approach I would recommend.

  1. Research the problem
  2. Ask for help
  3. Raise a bug report
  4. Seriously consider whether you need the latest LTS version of Ubuntu
  5. Try an alternative to GNOME Network Manager
  6. Control your Wi-Fi from the terminal.

Step 1 You tried researching the problem. You did not find anything about this issue on the internet.

Step 2 You posted this question on Ask Ubuntu. You posted the results of running the Ubuntu Forums WiFi diagnosis script and a screenshot of your screen. When you did not get a response you posted a bounty on the question. All great moves on your part. We have chatted about your problem and I have analysed your WiFi script results in detail. Apart from a couple of kernel error messages apparently related to the suspend/ resume issue the results show working Wi-Fi that is just not connected to an Access Point.

Step 3 This is clearly a bug in GNOME Network Manager so create a bug report. The developers need bug reports to find an eliminate errors in the code. You do this by typing ubuntu-bug network-managerin a terminal.

Step 4. Seriously consider reverting to your previous version of Ubuntu. Adding LTS to the name of a release does not make it of higher quality than any other release. What creates the quality is the amount of testing it has undergone. LTS releases are used by much greater numbers of users than development releases so once they are live they are much more thoroughly tested. As 16.04 LTS has been live for less than a month it will have far more bugs than say 14.04 LTS. On Windows my policy was never to use an operating system release until it had been live for at least a year so other people found the bugs. In your case you need a recent kernel to solve another issue so you want to stick with 16.04.

Step 5. Looking at the bug list for GNOME network manager it is clear that they are actively working on a significant number of bugs. It is going to take some time for them to address all the serious ones. Consider replacing the GNOME network manager with another one. Wicd does not appear to be being actively developed but network management standards have been stable for years. I would recommend trying this as it does not depend on GNOME and is unlikely to have the same issue. You have tried Wicd in the past and have issues with it so you would like an alternative approach.

Step 6. You don't actually need a network manager to get Wi-Fi connectivity. You can use a terminal. Detailed instructions are here. Connecting to WPA Wi-Fi from the terminal