So, I got it to work with a little hack.  Turns out that if I use OSS 
sound compiled into the kernel, I can suspend and resume, but artsd 
doesn't handle it very well.  If I run "artsshell suspend" to suspend 
artsd either before the suspend or after the resume, sound in kde resumes 
fine.  I put this into the /etc/apm/events.d directory.

Now, the hackish part is... artsshell only connects to arts if you run it 
as the user at the console.  It does not work as root, and apmd runs the 
suspend/resume scripts as root.  Does anybody know how to disable 
chekcking in artsd?  As it is, my script tries to figure out who's logged 
in at the console, performs an su, then runs artsshell.  I'm probably 
doing all sorts of naughty things security-wise.

Wes


On Wed, 4 Jun 2003, Jason Nielsen wrote:

> > 
> > Hmmm... isn't this kind of tough if you use KDE/Gnome (they like to keep 
> > control of sound with arts/esd)?
> > 
> > If I can get sound compiled into the kernel, will that help?
> > 
> > Wes
> > 
> 
> Good point, I don't use either so that slipped my mind...  but to answer
> your question sound will unload properly if you compile the sound into the
> kernel.  I'm not sure why that is but probably has something to do with
> the kernel suspending and resuming properly.. no running module gets hung!  
> I found OSS to suck ass though for my intel8x0 so I switched back to
> alsa... you can't compile alsa into the kernel unless you are using 2.5.*
> and I had trouble with pcmcia-cs with these kernels.. could be fixed now
> but I haven't tried as everything is working fine.  All you really have to
> do is find out how to stop esd/arts and restart it on resume.  Basically
> in /etc/apm/suspend.d you would have a script that stops all apps running
> sound and shuts down esd/arts then runs a '/etc/init.d/alsasound stop' and
> in /etc/app/resume.d you would '/etc/init.d/alsasound start' and restart
> esd/arts and all sound apps you like to have running and all should work
> nice.
> 
> Cheers,
> 
> Jason
> 
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 
> 

--
[EMAIL PROTECTED] mailing list

Reply via email to