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
       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= 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.

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.



Thank you!

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.

Wifi issue

How to save the file that contains suspend_module data

SneWs's picture

It dep. on the editor you are using

But if you are just using the commands directly from this page, that should have you inside Vim.
So to save the file, after entering the text, press ESC to exit input mode. Now press:



works like a charm

Well, These tip are working

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

Perfect, and simple

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

Network Manager problems ubuntu 16.04

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.

WiFi driver prevents 16.04 from booting

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?

SneWs's picture

This is most likely not the best place to seek tech support

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


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.

I have 16.04.1

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!

Hi everybody,

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


SneWs's picture

Check this

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.

Thank you!

It worked!

i have no wireless interface

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

Same here..

Same here..
it shows like....

*-network UNCLAIMED
description: Network controller

plz help anyone..

SneWs's picture

Meaning of UNCLAIMED

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.


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

SneWs's picture

Use sudo or su

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.

thank you.

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 ;-)


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

not stable solution

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

Did you really save your changes?

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

not stable solution

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


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.

not working after rebooting/restarting system

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. :/


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


Happy to hear it!


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

Wifi Issue Ubuntu

Thanks a lot. This works. saved my time.

Random WiFi Drops

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!


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

ssid not showing

Device installed: realtek RTL8723BE PCIe wireless network adaptor.
WiFi is connecting to hotspot wlan generated through mobile, but not displaying ssid of my home router.
Using Ubuntu 16.04 on hp laptop.

Great info! Thanks for

Great info! Thanks for sharing! I just wish that people that take the time to share these kind of excellent details wanted better exposure and would take the extra few minutes to put it in the ubuntu wiki and/or places such as help.ubuntu.com that are viewed by the larger ubuntu community as a whole.

SneWs's picture


For myself this is just simpler since I'm not an avid Ubuntu user, I just occasionally have to use it. Most of my computing nowadays are done using Solus :)

already not change

I tried ur method...but logical name and driver name I specified as urs...but then nw I m not able to suspend the modules

Unstable WiFi connetion solved - Ubuntu 16.04

Hi SneWs,

After an update today the network on my laptop become unstable. Thanks to your solution, it is stable again.
Thanks a bunch!

SneWs's picture


Happy to hear that it help you out.

wifi drop out after 5/10 mins even net speed is high

my systems was dual booted wifi workings is good in windows 10 but not working in ubuntu 16.04 Lts
how can solve this problem i'm very tired with this problem my system type is Lenono ideapad 110-15isk.

SneWs's picture

Have you installed additional drivers?

Sounds like you might need to install some additional drivers to get your WiFi chip to work.
Open up the ‘Software & Updates’ tool from the Unity Dash and Click the ‘Additional Drivers’ tab and make sure that you have any available drivers listed there installed.


I recently installed Ubuntu 16.04 from USB onto a Acer Aspire V5-121 laptop, and whenever I tried Ubuntu without installing, Wifi worked ok, but every time I installed the Ubuntu, Wifi completely stopped working.
Why does it stop working?

SneWs's picture

Same as above, do you have all drivers installed?

Sounds like you might need to install some additional drivers to get your WiFi chip to work.
Open up the ‘Software & Updates’ tool from the Unity Dash and Click the ‘Additional Drivers’ tab and make sure that you have any available drivers listed there installed.

Network connection lost after 5 seconds while WIFI icon shows OK

I have an ASUS SonicMaster X540L series laptop with Ubuntu 16.04, and after using it for almost one year its WIFI connection did not resume after longer suspended states of the laptop. It wasn't annoying so much I restarted the machine and WIFI was working fine again. Nowadays I noticed that there were no network connection at all when using WIFI. I have two WIFI hotspots in my apartment and if I chose the other one clicking at the WIFI icon of network manager at the top of the screen the connection resumed for only 5 seconds and after that connection was lost again. I tried to connect to my mobile phone's WIFI hotspot with my laptop and the result was the same. When I plugged in an UTP cable and used the ethernet adapter everything was fine and stable.

I tried your workaround and WIFI network connection resumed but after a few minutes it was lost again and switching between hotspots also recovered the connection for just a few seconds. I restarted the network-manager service again and the connection resumed again. It seems that network-manager has a problem and restarting it recovers the WIFI connection but this state is not stable. Can you advice something to solve this issue?

Best regards

SneWs's picture

That's sad

WiFi in Ubuntu has been quite broken for quite some time. The only sane recommendation I can give you would be to either wait for 18.04 to be released and hope that the majority of the issues you are experiencing have been solved.

Another "solution" would be to switch away from Ubuntu, I would recommend looking into Solus Linux, it's a bit different, but in a good way IMHO. Ikey and crew are doing a fine job of shipping a really solid rolling release. And since Ubuntu has moved away from Unity to Gnome anyway, using Solus with the Gnome desktop would not be any bigger jump than switching from Ubuntu 16.04 to 18.04.

Half solution...

After trying every combination of restarting the network manager service and switching between WIFI hotspots I found a half solution. After switching on the laptop and logging into the Unity desktop I restart the network manager service in a terminal like this:

sudo service network-manager restart

After that I try to browse the web. It is OK for 5 seconds, then connection is lost. After that I restart network manager the second time and then connection is stable through WIFI.

This is insane but works...

Best regards

SneWs's picture


Yeah, that sounds quite wonky. I would recommend you to (if you can) to upgrade to 18.04 ASAP or switch distro completely. If you still want to use Ubuntu, perhaps go with one of the spins such as Mate or Kubuntu. I've not had any network related issues in any of those in 18.04.

Upgrade to Ubuntu 18.04

Since I have a lot of applications installed on my laptop and a lot of configurations that I made and I did not want to start everything from a clean install therefore I decided to stick to Ubuntu so I upgraded from 16.04 to 18.04 using the -d option (like this: sudo do-release-upgrade -d). This option was necessary because Canonical's official standpoint about upgrading was like this: "Upgrades from 16.04 LTS will not be enabled until a few days after the 18.04.1 release expected in late July." (this is from wiki.ubuntu.com). Everything went fine during the upgrade process (which took many-many hours) and after that I logged in and WIFI had the same issue like before the upgrade. It took several days to experiment the workaround because the solution that worked for 16.04 (issuing "sudo service network-manager restart" twice consecutively) would not work for 18.04.

I found a workaround that is like this: open the settings window from the main menu bar clicking at the upper right corner of the screen. In the settings window select the "Wi-Fi" section then switch the laptop to flight mode and after few seconds switch the WIFI on and switch flight mode off. These steps should be repeated at least one more time but until WIFI connection is working stable.

This is weird and must not be a hardware issue because WIFI connection stays stable continuously after applying this workaround until the next reboot, or turning off and on the machine.


Add 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.