You are not logged in.
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
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
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
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