Ubuntu 16.04 WiFi issues - How to perhaps fix it for you as well...

SneWs's picture

There have been plenty of reports regarding WiFi issues on Ubuntu 16.04. The majority of issues seems to stem from suspend/resume issues where the network would not re-connect, show the wrong icon in the top bar or similar.

The temporary workaround for this is to restart the network manager if you have no network at all, or, if you have network but the nm applet is showing the wrong status, just restart the nm applet.

Restart network manager.

sudo service network-manager restart

Restart the nm applet.

killall nm-applet && nm-applet &

How to fix it

So, this might or it might not work for you dep. on what issue you've been experiencing. But this did solve it for me on two different laptops.

Lets start with figuring out what WiFi chip we have.

sudo lshw -class network

The result should look something like this:

snews@TuxBook:~$ sudo lshw -class network
  *-network               
       description: Wireless interface
       product: Wireless 7265
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 59
       serial: 60:57:18:78:f9:92
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-28-generic firmware=16.242414.0 ip=192.168.1.20 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:49 memory:f7000000-f7001fff

With the above information available to us we can go to work and try to solve the resume from suspend issue.

sudo vi /etc/pm/config.d/config

In this file, paste the following

SUSPEND_MODULES="iwlwifi wlp2s0" 

The values for the suspend_modules dep. on the output from the lshw command. In my case I see that my driver is named iwlwifi and that the logical name for my chip is wlp2s0. Hence I add those to the suspend_modules line.

Now, issue a restart of the network manager

sudo service network-manager restart

Now you should be able to suspend your laptop and when you resume it, WiFi should get reconnected automatically, and you should see the correct network type indicator in the nm applet.

The above might also work for you, so give it a try and see what happens.

UPDATE: It seems that as of 16.04.1 this is not an issue for me any more.

Resources:
http://askubuntu.com/questions/762198/16-04-lts-wifi-connection-issues - This details the /etc/pm/config.d/config config, but I had to modify it a little bit to make it work on my two laptops.

31 comments

by Mike V. on Fri, 08/05/2016 - 03:43

I wanted to thank you for doing the research and posting this information. I was having the wifi problem with my laptop after resuming from a suspesion after I upgraded from 14.04 to 16.04 and when I googled the problem I found references to SUSPEND_MODULES but I would not have known to use the lshw command to find the correct parameters to use. I followed your instructions and it solved my problem. This was very helpful.

by michael on Tue, 11/01/2016 - 11:51

works like a charm

by David Morris on Wed, 11/02/2016 - 16:58

Well, These tip are working to resolve the issues to connect the internet via Wifi.

by Viktor on Fri, 11/11/2016 - 03:28

Works great, thank you!
Note that /etc/pm/config.d/config might be a new file, it did not already exist on my system (Kubuntu 16.04)
But creating it with the appropriate value worked

by Jeannie Burt on Fri, 11/11/2016 - 23:44

I finally removed Network Manager and installed WICD, which I had used years ago, then went to nm when it seemed more friendly (before nm recently went South). WICD may not be sexy, but it's simple, starts when it's supposed to, and reliably displays other wireless networks available, which nm was not doing. I plan to use WICD until Ubuntu gets its act together with nm.

by Rudi on Mon, 11/28/2016 - 17:52

I upgraded to 16.04 and now my HP compaq 8710p does not boot. With the first attempt, the HP stops somewhere in the boot sequence. After a forced shutdown and switch on, the HP loads the Grub menu and only boots via the recovery menu of the older Kernell versions. This happens everytime I want to boot.
However, when I disable WiFi in the system configuration, Ubuntu loads ditrectly, but very slowly. (I have iwl4965 WiFi driver running after a boot via the recovery menu.)
Is there anything I can do to correct this?

But, based on the fact that you can use the older kernel it sounds like you might be missing some kernel module(s) post upgrade.

I would recommend doing a

lsmod

See if you can identify any modules from that list when booted in safe mode and try to append them to your regular kernel from the grub boot menu to get into the system with the newer kernel.

Other than that I'm afraid I can't really be much of help for this issue. Perhaps try to post on http://askubuntu.com for a wider audience.

Good luck.

by Amit kumar on Fri, 12/02/2016 - 09:51

Thanks and smile

by ajay on Sun, 12/18/2016 - 02:48

I have 16.04.1
Most of the time wifi wont connect after resuming from suspended mode. Had to restart network-manager.
Now I have applied the workaround mentioned here and it works well. Thanks!

by 16.04 xubuntu on Tue, 01/03/2017 - 11:25

Hi everybody,
I have xubuntu 16.04 and an internet problem.
when I turn on my computer I have wifi and can see wifi networks. After disabling and then enabling networking I can't see avaliable wifi networks. I am conected to one but I cant see others (there are many other networks around me). When I restart my computer, the probleme is fixed... while I dont disable networking and enable it. I had add (SUSPEND_MODULES="iwlwifi wlp2s0") in (sudo nano /etc/pm/config.d/config) but that haven't helped. There are 5 screenshots after every step I have done: filedropper.com/problemwi-fitar

Thanks!

SneWs's picture

by SneWs on Tue, 01/03/2017 - 17:51

When you executed

sudo lshw -class network

did you actually have the logical name say it was wlp2s0? You can't just blindly copy/paste the config I provided in the post, but you need to replace it with the actual logical name from your output.

by Flávio on Thu, 01/12/2017 - 20:32

It worked!

by Nori on Tue, 01/17/2017 - 17:36

i have no wireless interface in result as showing in description !!! as description i have ethernet interface and network controller

by Amit Kumar on Fri, 04/07/2017 - 16:27

Same here..
it shows like....

*-network UNCLAIMED
description: Network controller

plz help anyone..

SneWs's picture

by SneWs on Fri, 04/07/2017 - 22:18

When it's listed as UNCLAIMED it usually means that there is no driver available for the chip. You might try searching for linux-backports-modules for whatever version of Ubuntu you are using. That could potentially solve your issue.

by rte on Mon, 01/30/2017 - 22:59

how can i create directories and files anand edit the file contents? the computer says that i'm not the owner?

SneWs's picture

by SneWs on Tue, 01/31/2017 - 10:46

Sounds like you are new to Linux, in that case, welcome.

You need to make sure that you become the super user, also know as root for editing system configurations and system files. You can do that either by using sudo vi /some-file.txt or use su.

I suggest that you read https://www.linux.com/learn/linux-101-introduction-sudo as a start.

by dik pater on Fri, 02/03/2017 - 20:03

My wife is using the lnux ubuntu firefox on a celsius H series.
I followed your instructions and it all works again.
She is very happy again ;-)

Regards

Dik Pater
The Netherlands ( 2nd country in the world)

by Emma Kane on Tue, 02/07/2017 - 13:12

Great, robust solution which fixed my issue.

by jonyruny on Sat, 02/11/2017 - 20:26

it does works like a charm. But , its annoying to every time service restart, go to suspend and comeback again and from this state it does not even restart properly again. Need to force shutdown by powerbutton. Please give us a solution of this issue

SneWs's picture

by SneWs on Sat, 02/11/2017 - 21:19

Sounds like you might not have saved your changes to /etc/pm/config.d/config or you might have entered the wrong module(s) and/or something else wrong in the file.
If you have multiple NICs they will all be listed in the output from

sudo lshw -class network

Make sure you use the module name from the output described as

description: Wireless interface

by jonyruny on Sat, 02/11/2017 - 22:22

I think it is saved as, the command, sudo cat /etc/pm/config.d/config shows....

SUSPEND_MODULES="iwlwifi wlp3s0" ,, the device logical name here is ,,, wlp3s0 of my device

SneWs's picture

by SneWs on Sun, 02/12/2017 - 00:00

Well, not sure what could be wrong in your specific case in that case. :/
Ubuntu WiFi has been quite broken since the release of 16.04, same issues has been visible on one of my machines running 16.10...

I guess you will either have to put together a simple script to automate it and make the pain a bit less or try to find some other solution to the problem. Sry.

by vedant on Fri, 02/17/2017 - 18:17

the solution works well for me only if I suspend my system. If I reboot it, the Wifi again stops establishing connection and no Wifi networks can be seen. A suspend at this stage works as a quick fix though but the issue still persists somewhere. :/

by Ubuntu User on Wed, 03/29/2017 - 21:05

Just wanted to say thank you - I've been restarting network manager far too often. This appears to have resolved the issue.

SneWs's picture

by SneWs on Wed, 03/29/2017 - 21:18

Happy to hear it!

by ME AND MY OS on Wed, 05/03/2017 - 18:24

Followed everything and doesnt work for me . am new to linux and i tried following up bcus i need internet on my pc but i am so disconnected from d internet. Gosh i hate my pc cus i cant code laravel and download some libs. pls can u find a way to help me out

by Menuka on Wed, 06/07/2017 - 08:56

Thanks a lot. This works. saved my time.

by Manu Konchady on Fri, 07/07/2017 - 06:17

I had to add the logical name following the driver name in the SUSPEND_MODULES line to get WiFi working. The driver name alone did not work. Some of the other solutions that I read before yours suggested the driver name alone. Thanks for the help!

by Cesar on Fri, 08/11/2017 - 17:25

I have tried a lot of solutions and this is the best one by far. So simple and elegant!! Thank you!!!

by Ayushi on Fri, 08/25/2017 - 09:06

Try disabling secure boot,it worked for me.

Post new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
© 2008 - 2017 Marcus Grenängen. Drupal theme by Kiwi Themes.