I have a strange problem on Toshiba Satellite NB and Ubuntu 12.04 on it. This system is working flawlessly a couple of months now already, but since last week I am getting a strange problem.
I put my NB to sleep/hibernate > Wake up > Wifi/LAN connects to network again > IP is assigned > no internet. After wakeup I can ping only local IPs like the gateway IP 192.168.1.1 or other PCs in my local network, but I can't ping servers like 220.127.116.11 or other public IPs. The only solution is to reboot the system. Afterwards internet works. With the same IP assigned.
One week ago it worked, I am sure. I suspect some latest updates which I did install on wednesday 16.7. I didn't do any dramatic software changes in the recent days. How can I list all the recent updates I have installed? Can I roll back to test the "last working state"?
As for the investigation I have done a bit x-testing with following results:
- disabled networking before putting to sleep and enabling after wakeup > same thing
- connecting to either a WiFi or LAN cable > same on both
- just disabling networking without sleep > enabling networking > same thing
- sudo service networking restart > same as No. 3
- made custom script in /etc/pm/sleep.d/ with different commands to stop networking on sleep|hibernate and start upon wakeup > same as 3.
- sudo modprobe -r iwlwifi > then modprobe iwlwifi > same
- boot into windows 7 on 2nd partition > connect to wifi > sleep > wake > internet works
- compared ifconfig before and after sleep > same
It is ridiculous, that local lan works. If a networking kernel module would be "dead" i wouldn't ping anything, or I wouldn't connect to a network at all, or not? On Windows I would try to do something like
ipconfig -release / -renew / -flushdns
Is there any similar function in Ubuntu ?
There is definitely something to restart to get it working, because a complete system restart helps, but I wasn't able to identify what. Maybe somebody could help?
I fount another thread on askubuntu with exact the same questions, but nobody answered.. What's weird, it's a Satellite there as well. https://askubuntu.com/questions/454370/12-04-wireless-is-connected-but-is-not-functional-after-suspend