[ltp] apm sound script
Bibek Sahu
linux-thinkpad@www.bm-soft.com
Sun, 4 Feb 2001 20:02:30 -0600 (CST)
On Mon, 5 Feb 2001, Thomas Hood wrote:
> > However, the system won't go to sleep if the sound device is open
> > (I presume this is related to not putting the PCI bus to sleep, but I
> > don't know). The attached script takes care of this problem and mixer
> > settings.
>
> Hmm. The woody alsa-base package already contains a script
> "/etc/apm/event.d/alsa" which does pretty much what your script
> does. That script can also be instructed to kill processes
> holding open sound devices. Have you installed alsa-base?
Nope. I held off because the debian packages were built off of ALSA
0.4 at last check, and I need at least 0.5.9 (preferably 0.5.10) for it to
handle my cs461x correctly.
However, since it has apparently been upgraded to 0.5.10b recently,
I'm grabbing it now.
The advantage of my script is that it doesn't actually kill esound,
it simply suspends it. Then it reactivates it after an apm resume event.
However, this can probably be moved to an '01esound' script. :-)
> Thomas
Thanks :-)
- Bibek
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html