Quicker reconnect wireless after resume from standby..

Starting openSUSE 11.0 the switch was made to the iwl3945 driver (instead of using ipw3954). One thing is that resuming from suspend works better with the newer driver. For me this has been true as with 10.3 & 10.2 I often needed to reload the ipw driver to get wireless working properly after a resume.

Anyway… one thing did bug me with the new driver. It could take up to a minute for the wireless to reconnect after resuming from standby.

I’ve added a simple scan command to power management so the available wireless networks get rescanned just a wee bit after the laptop resumes. It seems to work as now I’m getting my wireless reconnect within 15 seconds.

This is what I’ve put in /etc/pm/sleep.d (in a file named 01network that has the execute flag)


#!/bin/bash
case $1 in
    hibernate)
        #service network stop
        #sleep 1
        ;;
    suspend)
        #sleep 1
        ;;
    thaw)
        echo "oh, suspend to disk is over, we are resuming..."
        #service network start
        sleep 3
        iwlist wlan0 scan
        ;;
    resume)
        sleep 3
        iwlist wlan0 scan
        ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac

Simple… but seems to do it nicely.

Curious if it also helps for you?

Cheers,
Wj

Magic31 wrote:
> Starting openSUSE 11.0 the switch was made to the iwl3945 driver
> (instead of using ipw3954). One thing is that resuming from suspend
> works better with the newer driver. For me this has been true as with
> 10.3 & 10.2 I often needed to reload the ipw driver to get wireless
> working properly after a resume.
>
> Anyway… one thing did bug me with the new driver. It could take up to
> a minute for the wireless to reconnect after resuming from standby.
>
> I’ve added a simple scan command to power management so the available
> wireless networks get rescanned just a wee bit after the laptop resumes.
> It seems to work as now I’m getting my wireless reconnect within 15
> seconds.

I think the new version of NM found in 11.1 fixes this issue. At least
on my system, the network is back up within seconds after a resume.

Larry

True, with 11.1 reconnect is much better… still was having a lag in reconnect now and then… I think it was happening when moving around (connecting to different wireless and connected networks).
The scan at resume keeps reconnect quicker for me.

Cheers,
Wj