How to fix wifi after suspend/resume in Fedora

Problem: Just like in Ubuntu, the wireless on my Thinkpad X61s running Fedora 14 would sometimes stop working after suspending and resuming. The wifi light would be on but no networks would be detected. The wifi card is an "Intel PRO/Wireless 4965 AG or AGN", according to lspci.

Solution: I used the following quick and dirty script:

#!/bin/sh

case "$1" in
    thaw|resume)
        modprobe -r iwlagn
        modprobe iwlagn
        ;;
    *) exit $NA
        ;;
esac

Save it as 90resetwifi.sh, run chmod +x 90resetwifi.sh and put it in /etc/pm/sleep.d.

2011-02-11 · · ·

blog comments powered by Disqus