How to add in a pm-utils hook to disable pcmcia wifi card for suspend/hibernate?
How can I add in a hook for pm-utils to check to see if a pcmcia wifi card is active and have it deactivated for suspend and hibernate? This card interferes with suspend and hibernate if it is active. It is an EDUP 802.11 b/g wifi card that uses the bcm 4312 chipset. Also would need to reactivate it on resume as well.
I'm not sure what the requirement is for bringing down your pcmcia, so try reading 'man pm-suspend'.
What I have done before, is added a file at /etc/pm/config.d/bttv with the line 'SUSPEND_MODULES="bttv"'. This is supposed to rmmod bttv prior to suspend. I added this line for kernel version 2.6.37, due to a regression in suspend on my bttv based card. Without it, the tuner is not restored properly. I have since just pulled the card since I hardly use it anymore.
I have been slowly investigating the problem ever since then. I do not know why 2.6.36 works fine and 2.6.37 suddenly changes it. Unfortunately 2.6.37-rc is a huge mess that I have not been able to bisect due to many problems during the pull cycle. I have random problems due to suspend since that release, but never really prevented the machine from fully returning. One of these days I will figure it out.
|All times are GMT -5. The time now is 09:01 PM.|