I have an Intel wireless network card in my notebook. Whenever I resume/wake/unhibernate my computer it takes about a minute or so in order to be able to connect to the Internet again. It's just too much! I know it isn't hardware issue, as I have windows 8 on the very same machine and it reconnects seamlessly, so the software running has no idea that internet connectivity has been suspended. Is it something wrong with how Ubuntu handles networking, or is it a problem with my configuration?
Asked
Active
Viewed 546 times
1 Answers
1
You may try to force a network restart and a wifi scan after resume. I will adapt the instructions I gave in this answer for another problem.
First, you need to create a small service script which will be triggered automatically by the system every time you resume. Run this command:
gksu gedit /etc/pm/sleep.d/20_restart_net
Add the following content:
case "${1}" in
resume|thaw)
service networking restart
iwlist scan
;;
esac
Save and reboot. Now try to suspend and resume to see if it's working.

Andrea Lazzarotto
- 7,956
-
-
-
@wxl forcing a scan should make the detection of a wireless network faster. – Andrea Lazzarotto Sep 11 '14 at 12:14
-
My theory is the scan already occurs, but Windows doesn't kill the connection on sleep. – wxl Sep 11 '14 at 13:47
-
It could be, but I doubt it. If Windows weren't killing the connection, the sleep status would consume a lot of energy. Anyway, it should be possible to tweak settings to keep the wifi always on, but there is little reason for using the sleep mode then. – Andrea Lazzarotto Sep 11 '14 at 21:47
ping
your Windows 8 install when the machine is in a similar state? – wxl Sep 08 '14 at 03:58ipconfig
. With another device on the network, use theping
command with the IP address and see if it responds. – wxl Sep 08 '14 at 17:53