Ubuntu 14.10 Network Manager problem
For some time I experience not working wireless connection after waking up my laptop.
Network manager indicator shows connection established, but browser can’t load any page.
sudo dmidecode System Information Manufacturer: Acer Product Name: Aspire E1-571G Version: V2.04 Serial Number: NXM0DEC0132422B5421601 UUID: 04F5A584-DB02-E211-83C6-B888E3CB1338 Wake-up Type: Power Switch SKU Number: Aspire E1-_064C_V2.04 Family: Type1Family
In the same time I start using openvpn. I was considering possibility that openvpn is in some way interrupting network manager’s functionality. Later I observed that even if during the whole session I didn’t established connection via openvpn, at next waking connection was lost.
I tried to restart network-manager service, as well as networking service without success.
sudo service network-manager restart sudo service networking restart
As modem and router in one device I use FRITZ!Box 7390. I can access the router on address 192.168.178.1 during the internet connection absence. My computer is registered in the list of connected devices, but with No internet acces status.
Next step is investigation of the log file.
grep -i networkmanager /var/log/syslog > Dev/nm.log
Comparing log messagess after suspending my laptop and waking it up, to log messages after complete restart.
left side after restart, right side after wake up - DIFF
I found question about similar problem, but provided workaround is not working for my case.
After few days I observed another mystical behaviour. In case I put my laptop to sleep while I am connecting via openvpn, after wake up, only openvpn connection is not working. Killing the openvpn process will make internet accessible again.
As I didn't find any other solution and it is a while I keep restarting openvpn manually after wake up, I decided to keep using this workaround in automatized way.
In documentation for pm-utils is described how to attach new hook to resume process. In /usr/lib/pm-utils/sleep.d/ I have created new file called 99zzz-restart-openvpn and chmoded it to 755. It is executed when resuming from RAM after suspend or thawing from harddisk after hibernate.
#!/bin/sh case "$1" in resume|thaw) echo "Restarting openVPN to fix no connection network problem after resume" pkill -e openvpn openvpn /etc/openvpn/vpnht-eu.ovpn & ;; esac exit 0















