View previous topic :: View next topic |
Author |
Message |
FunkyChicken n00b
Joined: 29 Sep 2002 Posts: 16 Location: Halifax, Nova Scotia, Canada
|
Posted: Sun Oct 20, 2002 12:43 am Post subject: Checking to See what application has access to /dev/dsp |
|
|
Hi,
I have been playing with wine, after i had finished the program and exited, i can not hear any sound from and application, i.e xmms, xine, etc. I am using OSS drivers, so only one can access /dev/dsp at a time. How can you check to see what application has access to /dev/dsp
P.S i did a ps -auwx | grep wine , etc to see if there were any zombie process es running, and there was none.
Thanks in Advance |
|
Back to top |
|
|
nmr_spectrometer n00b
Joined: 07 Oct 2002 Posts: 55
|
Posted: Sun Oct 20, 2002 12:34 pm Post subject: |
|
|
try:
Code: |
/usr/sbin/lsof | grep dsp
|
You can do this as a normal user, but you have to specify the path because typically regular users don't have /usr/sbin in the path. lsof "lists open files", and the grep will pick out the lines containing "dsp". If this generates no output then nothing has dsp open. |
|
Back to top |
|
|
TuxFriend Apprentice
Joined: 14 Aug 2002 Posts: 151
|
Posted: Sun Oct 20, 2002 2:51 pm Post subject: |
|
|
nmr_spectrometer wrote: | try:
Code: |
/usr/sbin/lsof | grep dsp
|
|
1 additional comment: you need to "emerge lsof" first.
TuxFriend |
|
Back to top |
|
|
FunkyChicken n00b
Joined: 29 Sep 2002 Posts: 16 Location: Halifax, Nova Scotia, Canada
|
Posted: Sun Oct 20, 2002 4:28 pm Post subject: |
|
|
Emerged lsof and it does exactly what i want .....
Thanks
Now i tried the wine application and reproduced the same problem (i.e after it has finished and exited i can not play any sound whatsoever - xmms says sound card busy), now when i do a /usr/sbin/lsof | grep dsp .... nothing shows up saying it is using the sound card at that time.
*NOTE*
I unloaded the modules (in this case modprobe -r i810_audio and modprobe -r ac97_codec) and started a sound app and the sound worked again. |
|
Back to top |
|
|
nmr_spectrometer n00b
Joined: 07 Oct 2002 Posts: 55
|
Posted: Tue Oct 22, 2002 1:37 am Post subject: |
|
|
Sorry, I forgot to mention you need to emerge lsof! Gentoo let's you compile and install everything, which is both good and bad. I was getting pissed off when I couldn't find "nslookup" and "telnet"... anyway. It sounds like wine might be locking up the driver, and then letting go of it, so the lsof command shows nothing but you still get no sound. At least you could unload the module, I've not been so lucky at times.
nmr_spectrometer |
|
Back to top |
|
|
|