Problem
For the last year or so I've had constant issues with the wireless on my laptop. Network drops randomly every 5-10 minutes at home, while away from home I sometimes can't connect at all.
I've looked up countless AskUbuntu questions, forum posts, bug tracker reports, etc – to no avail.
Previously the icon in the status bar showed up-and-down arrows instead of the appropriate wifi icon – whether internet was working or not. When internet went down there was NO indication in the status bar or elsewhere. The laptop thought it was still online but no websites would load and no services would work.
After upgrading to 18.04 it now gives me a pop-up error when internet fails: "Activation of network connection failed"
There are two potentially relevant messages in dmesg
:
- wlp1s0: deauthenticating from 44:e1:37:2f:e5:40 by local choice (Reason: 3=DEAUTH_LEAVING)
- wlp1s0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-22)
I'm currently posting from my phone because I don't have access to wired internet and my laptop isn't connecting at all. So it may take some time to type up responses to comments and answers.
Update: Upon getting home I tested my home wifi and I was able to connect without error, so it's not like the wireless card has gone out on me. Home network: Connects fine, but loses internet every 3-5 minutes. Phone HotSpot: Doesn't connect ("Activation of network connection failed")
Environment
- I have a Dell Latitude E5570. It did not come with Ubuntu. Ubuntu 16.04 was installed cleanly from a bootable USB after formatting the drive
sudo lshw -class network
shows I have an Intel Corporation Wireless 8620 Wireless Interface (rev 3a)- The same command shows my driver is
iwlwifi
- I'm currently running Ubuntu 18.04 (among the many things I tried to fix my internet, upgrading Ubuntu was one of them)
ls -l /lib/firmware/iwlwifi-8000C-*
shows I have firmware versions 13 through 34.dmesg | grep iwlwifi
confirms I'm loading firmware version34.0.1
- I'm running NetworkManager version
1.10.6
- I don't believe my wireless hardware is damaged because I can see a list of publicly broadcast SSIDs. When enabling my phone's hotspot it immediately shows up as an option. I just cant connect when I select the desired network.
What I've tried
- Create
/etc/pm/config.d/config
and add the lineSUSPEND_MODULES="iwlwifi wlp1s0"
- Create
/etc/modprobe.d/iwlwifi.conf
and add the lineoptions iwlwifi fwlps=N
sudo modprobe -r hp_wmi
- Edit
/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
and change3
to2
- Update
linux-headers
- Upgrade to Ubuntu 18.04
- Turn off the laptop, unplug the battery, wait 10 minutes, plug everything back up
- Disable wifi security
- Connect to 2.4GHz or 5GHz
- Edit
/etc/modprobe.d/iwlwifi.conf
and set11n_disable=
to either1
or8
- Uninstall Docker and Vagrant
- Edit
/etc/default/crda
and setREGDOMAIN=US
I probably tried a lot of other things that I just can't recall at the moment. I'm still having trouble and it's infinitely frustrating.
Best Answer
What Worked
I previously avoided using alternate network managers because in all of my research and testing I found multiple blog posts and AskUbuntu answers claiming that WICD hasn't been updated since 2012, that NetworkManager has been better since 16.04, that many tools for network management don't support multiple networks (making them useless for a laptop that moves from place to place), etc
I ultimately decided to give it a chance. Step-by-step (for anyone having a similar issue and following along):
At the very least I was able to connect to my phone's hot spot, so I think things are looking up. I'll connect to my home network and see if I can stay online all day without losing internet.
Caveat
Using Wicd caused all of my connection and stability issues to go away entirely. Now once I'm online, I stay online all day. I can also now connect to my phone's hotspot. However, it now takes 2-3 minutes to initially connect when I wake my computer from sleep or first turn it on. This isn't the end of the world, but it can be a bit annoying.