You are not logged in.

#1 2008-07-17 01:22:32

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

pm-suspend disabling ath_pci module. [SOLVED]

I am having a problem resuming from either a suspend or a hibernate.  I am using the pm-utils so pm-suspend and pm-hibernate respectivly.  When I resume from these, my network is down and I have to unload ath_pci and then reload it and run netcfg2 mynet54g again to reconnect.  How should I go about correcting this?

Last edited by semperfiguy (2008-07-17 14:12:43)

Offline

#2 2008-07-17 11:42:53

Jack B
Member
Registered: 2006-06-27
Posts: 107
Website

Re: pm-suspend disabling ath_pci module. [SOLVED]

I had this problem too, I fixed it by switching to the ath5k module, because it looked interesting :-)

If you want to keep using madwifi, or if ath5k doesn't properly support your card, I would look at the pm utils documentation.  IIRC there is a way of specifying extra actions to be taken during suspend/resume.  I would unload the offending module before suspend, and reload after.  I'm afraid I can't check details atm as I'm at work.

Hope this helps

~Jack

Offline

#3 2008-07-17 14:12:16

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: pm-suspend disabling ath_pci module. [SOLVED]

Allright, I created I hook with this content in /etc/pm/sleep.d

#!/bin/bash
case $1 in
    hibernate)
    rmmod ath_pci
        ;;
    suspend)
    rmmod ath_pci
    ;;
    thaw)
    modprobe ath_pci
        ;;
    resume)
        modprobe ath_pci
    ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac

Is that the "cleanest" fix I can do? I numbered it 12 so it runs just after netcfg suspends the networks and just before it resumes them.

Offline

#4 2008-07-17 15:18:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: pm-suspend disabling ath_pci module. [SOLVED]

No, cleanest is to use the SUSPEND_MODULES variable, as described in the pm-utils wiki page. There is a hook already provided for handling modules, so no need to write your own.

Offline

Board footer

Powered by FluxBB