My eeePC Ubuntu (9.10) wireless connection stops working after returning from sleep or hibernation. The only thing that helps is restarting the machine.

Is there some way to reset networking without restarting the Ubuntu? I've already tried commands like

sudo ifconfig wlan0 down
sudo ifconfig wlan0 up

but it doesn't help. I have this problem for some months now and I couldn't find any good answers by googling around.

sudo /etc/init.d/networking restart
  • Thanks, unfortunately it still doesn't help. But I'll accept your answer since it's what I was asking about. – Igor Brejc Mar 4 '10 at 21:32
  • On Precise this says Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces. – Mechanical snail May 1 '13 at 4:44

After perusing numerous threads and articles about wireless just hanging for no reasons and forcing me to restart the computer, these are the only steps that ever got me my wireless connection back without rebooting.

1. Find out about the wireless card and its driver

lshw -C network

You should get some comprehensive output about your wireless and ethernet. What you're looking for is the line that has the name of the wireless card's driver. Mine looks like this:

 configuration: broadcast=yes driver=iwlagn ip= latency=0 [...]

There we go: driver=iwlagn.

2. Unload and reload its kernel module

sudo modprobe -r iwlagn
sudo modprobe iwlagn

I hope this works for you as it does for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.