[ltp] 600X Sound After Resume

Richard Neill linux-thinkpad@linux-thinkpad.org
Fri, 14 Jul 2006 16:46:48 +0100


Chris Schumann wrote:
> I'm running FC5 on two 600X's that exhibit the same problem: No sound after
> a resume. I know I can rmmod the snd_cs46xx module and modprobe it, but I
> can't do that (even as root) when I'm logged in an X session because it's in
> use. lsmod shows that it's being used by one process, but gives no name.

Thats a really irritating bug in lsmod!

Try (as root):
    lsof | grep dsp
or
    fuser /dev/dsp


> 
> As a work-around, I can log out, use a console session and stop and start
> the module. When I log back in, sound is back.
> 

Let me guess - you are using a sound server? Likely culprits are:

  KDE's arts
  timidity

I don't know what gone does.


The good news is, you don't need to run *any* sound servers now. We have 
alsa + dmix.

1)Disable the Desktop Environment's sound server. Tell it to play 
notifications through an external player. Eg this
-----------------
#!/bin/bash
#Play audio file immediately (alsa; avoid arts startup delay). Volume 
decreased to 0.4
sox "$1" -t wav -v 0.4 - | aplay
----------------------

2)Set all applications to output to alsa, rather than oss.
Certainly you can do this with mplayer,vlc,xmms etc

3)Anything that can't should be wrapped in "aoss". eg
     aoss /usr/bin/play  somefile.


Hope that helps.










> Is there a way to 1) automate the work-around, 2) fix the driver or 3) use
> some other driver/tool?
> 
> I'm afraid I might miss responses to the list, so please try to copy me.
> I'll post any solution to thinkwiki.
> 
> Thanks,
> Chris S
> 

-- 
rn214@hermes.cam.ac.uk  **  http://www.richardneill.org
Richard Neill, Trinity College, Cambridge, CB21TQ, U.K.