Comment 17 for bug 272300

Revision history for this message
Isaac Su (me-isaacsu) wrote :

Brian's FIX worked for me. My wifi wouldn't connect after suspend/resume. Running freshly installed Ubuntu 8.10 RC on a thinkpad t42p with the Atheros 5212 wireless chip.

Three things that I did were

1. added MODULES="ath_hal" to /etc/defaults/acpi-support (not sure if this is significant)
2. added STOP_SERVICES="networking" to /etc/defaults/acpi-support

3. added "ifconfig wifi0 up" to /usr/lib/pm-utils/sleep.d/10NetworkManager (see code block below)

case "$1" in
        hibernate|suspend)
                suspend_nm
                ;;
        thaw|resume)
                ifconfig wifi0 up <-----
                resume_nm
                ;;
        *) exit $NA
                ;;
esac

hope this helps