how to load/unload modules at suspend/resume?

paul beard <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
I have finally figured out what I need to do for sound to work on 
my ThinkPad A20. My first mistake was compiling the module into 
the kernel: kinda makes it hard for the kernel to detach/attach 
devices and drivers if you do that.

So now I have worked out that if I can send a "kldunload snd_pcm 
&& kldunload snd_csa" at suspend and the reverse (kldload) at 
resume, everything will be fine.

But how to do that? I thought it was done in apmd.conf, but that 
hasn't paid off so far. What am I missing?


-- 
Paul Beard: seeking UNIX/internet engineering work
in Seattle area. Details available below:
	<http://paulbeard.no-ip.org/paulbeard.html>

Weiner's Law of Libraries:
	There are no answers, only cross references.


To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.