1

I recently reinstalled my laptop with ubuntu gnome 16.10. I previously had 16.04 which was upgraded from 15.10, but this time I installed clean. My wifi-module works fine and I connect to networks successfully. On the first network, the internet is fine, but when I go to work for example (and thus switch wifi-network) I have to restart the network-manager for the internet to work. It will connect to the wifi-network, but the internet won't work.

Laptop: Dell XPS 13, 9350

EDIT 1: it doesn't (only?) happen after switching wifi, it happens everytime I suspend the laptop and unsuspend it (i.e. close the lid and open it again).

2 Answers2

2

Create a script that restarts your NetworkManager after suspend:

sudo gedit /etc/systemd/system/wifi-resume.service

Paste the following in it:

#/etc/systemd/system/wifi-resume.service
#sudo systemctl enable wifi-resume.service
[Unit]
Description=Restart networkmanager at resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

Now activate it:

sudo systemctl enable wifi-resume.service

From Wifi doesn't work after suspend after 16.04 upgrade but can't mark as dupe, credits to Joakim Koed.

negusp
  • 2,831
0

Check for ubuntu 'network manager' set as "No Proxy" and open terminal

sudo service network-manager stop
sudo service network-manager start

Or you can do

sudo service network-manager restart