November 1

Network Resume Dance

Posted by Bryan Clark
Filed under NetworkManager | 5 Comments

I learned this little dance while Network Manager was having a problem with sleep and resume. Bringing my laptop out of sleep always had problems getting networking again. Network Manager would die upon resume so this is how I would get my wireless card (iwl3945) to return after resuming from sleep. I’m looking forward to not running this all the time…

[clarkbw@localhost ~]$ sudo /etc/init.d/NetworkManager restart
Stopping NetworkManager daemon:                            [FAILED]

Setting network parameters...

Starting NetworkManager daemon:                            [  OK  ]

[clarkbw@localhost ~]$ sudo /etc/init.d/NetworkManager stop

Stopping NetworkManager daemon:                            [  OK  ]

Now wait about 10 seconds…

[clarkbw@localhost ~]$ sudo /etc/init.d/NetworkManager start
Setting network parameters...

Starting NetworkManager daemon:                            [  OK  ]

[clarkbw@localhost ~]$

This entry was posted on Thursday, November 1st, 2007 at 9:31 am and is filed under NetworkManager. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

5 Responses to “Network Resume Dance”

  1. Chris Lord on November 1st, 2007 at 10:29 am

    I also have an Intel wireless chipset and I found that whitelisting the module (in Ubuntu, see /etc/default/acpi-support) works well and NetworkManager only needs to be restarted when you resume as it doesn’t refresh the networks quick enough (none of this stop start stop wait start nonsense :) )

  2. Jeremy Katz on November 1st, 2007 at 12:09 pm

    You really shouldn’t need to be unloading the module or restarting NetworkManager. The only little quirk I’ve got right now with iwl3945 on resume is that (sometimes) wpa_supplicant is keeping its cached scan results around. But after 30 seconds or so, it realizes that I’ve gone home and finds the other network.

    And now that the brunt of F8 is out of the way, I might actually get around to prodding at wpa_supplicant to make it forget things too.

  3. dgoodwin on November 4th, 2007 at 5:24 pm

    Thanks for this, I was having the same problem with iwl3945 and thought I was running into a brick wall with restarting services, nothing seemed to get that wifi back up. Waiting 10 seconds was the key.

  4. Jay on November 5th, 2007 at 3:44 pm

    Bryan,
    I’ve been there too. I have a script in ~/bin/re_wifi (contents below… and yes it doesn’t work w/o the sleeps). I don’t need it as much as I used to but when I go from work (LEAP) to Home (WPA) it’s a requirement. I found I had to go back all the way to “network” so it would unload the wireless driver, but I did notice recently that the Dispatcher seems to do something similar.
    FWIW, this is on a RHEL5. system. I’m going to F8 as soon as I get a chance.

    sudo /etc/init.d/NetworkManagerDispatcher stop
    sleep 5
    sudo /etc/init.d/NetworkManager stop
    sleep 5
    sudo /etc/init.d/network stop
    sleep 5
    sudo /etc/init.d/ipw3945d stop
    sleep 45
    sudo /etc/init.d/ipw3945d start
    sleep 5
    sudo /etc/init.d/network start
    sleep 5
    sudo /etc/init.d/NetworkManager start
    sleep 5
    sudo /etc/init.d/NetworkManagerDispatcher start

  5. Suspend/Resume with linux laptops « Keystone IT Tech on March 2nd, 2008 at 1:34 pm

    [...] latest Nvidia driver. The wifi (Intel 3945) driver needs to be reset after resuming. I adapted a script I found and connected it to a launcher on the panel. echo “Resetting Network” sudo [...]

Leave a Reply