Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unload/Load madwifi driver before/after suspend

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
tak
Posts: 25
Joined: 2008-05-21 14:54
Location: Oregon

Unload/Load madwifi driver before/after suspend

#1 Post by tak »

Hi,

I could not find clear-cut info on this.
How can I (with a script or something) unload madwifi driver (ath_pci) before suspend and load it after resume?

I have Lenny on Inspiron 5150. Suspend works now after some tinkering (http://www.amitsrivastava.net/2008-03-2 ... ll-vostro/), except that wireless does not work after resume. I found out that if I do:

Code: Select all

modprobe -r ath_pci
modprobe ath_pci
then it works. I have tried adding ath_pci as one of the modules to be unloaded/loaded in /etc/default/acpi-support to no avail. Any ideas?

Thanks.

infinitycircuit
Posts: 1137
Joined: 2007-07-24 03:31
Location: California

#2 Post by infinitycircuit »

man 8 pm-suspend:
/etc/pm/config.d
The files in this directory are evaluated in C sort order. These files
can be provided by individual packages outside of pm-utils. If a global
configuration variable is set, the value set to will be appended to the
previous value. If any other variable is set, it will be ignored. The
syntax is simply: VAR_NAME = value. See the CONFIGURATION VARIABLES
section for valid variables defined by pm-utils. External packages can
define others, see their respective documentation for more information.

...

SUSPEND_MODULES
Space separated list of modules to unload before suspend.

tak
Posts: 25
Joined: 2008-05-21 14:54
Location: Oregon

#3 Post by tak »

infinitycircuit,

Thank you!
I just placed a file in /etc/pm/config.d/ named "suspend" and wrote:

Code: Select all

SUSPEND_MODULES=ath_pci
in it. And it worked!

Post Reply