Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 2 down vote accepted
sudo /etc/init.d/networking restart
share|improve this answer
    
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=192.168.1.102 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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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