Unload/Load madwifi driver before/after suspend

Kernels & Hardware, configuring network, installing services

Unload/Load madwifi driver before/after suspend

Postby tak » 2008-11-05 16:18


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-23-hibernate-suspend-resolved-ubuntu-gutsy-nvidia-dell-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?

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

Postby infinitycircuit » 2008-11-05 22:31

man 8 pm-suspend:

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.


Space separated list of modules to unload before suspend.

I am currently a Debian Maintainer. I am also in the New Maintainers' Queue.
Posts: 1137
Joined: 2007-07-24 03:31
Location: California

Postby tak » 2008-11-06 16:43


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

Code: Select all

in it. And it worked!
Posts: 25
Joined: 2008-05-21 14:54
Location: Oregon

Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests