LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-09-2004, 11:27 PM   #1
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Rep: Reputation: 30
Problems with sound device being in use.


I've been using Linux as my main OS for almost 2 years now and I am still having little troubles with the sound device. Playing some Rock under XMMS works fine. I click stop for whatever reason. Go back to press play again and it gives me the message about the sound card being configured properly, make sure no other program is using sound.. ect. Is there a command to find out what is using the sound device? Or one to clear up the sound device? Thanks in advance.

I forgot to mention I'm running Fedora Core 1 with all the YUM/Up-2-Date updates installed. Using onboard nForce2 sound.

Last edited by RemusX2; 05-09-2004 at 11:34 PM.
 
Old 05-10-2004, 12:52 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Are you using KDE? Specifically arts? I've never really used it but I understand that it's utter crap. To find out whether arts is running do a ps -A| grep arts. I think it should come up as "artsd". To find out which process is using your sound card (assuming you're using OSS and not ALSA) you can do a fuser -m /dev/dsp. This will give you a process identity number which you'll have to match to the output of ps -A to find out the name of the process.

Once you're definetly sure which process is using your dsp you can then kill it with kill -s 15 <pid> or killall -s 15 <process name>. It that doesn't do it (ie process is still running) then change the "15" to a "9". Once the offending process has been killed, try XMMS again. If it works you'll have to look into disabling that particular process on startup.

Last edited by adz; 05-10-2004 at 12:57 AM.
 
Old 05-10-2004, 03:59 AM   #3
shedir
Member
 
Registered: Mar 2004
Location: Dresden, Germany
Distribution: Gentoo
Posts: 31

Rep: Reputation: 15
Not only KDE, but also gnome and some other wms use "sound servers". You can make xmms use those sound servers by using the appropriate output plug-in. Have a look at http://www.xmms.org/plugins.php?category=output
 
Old 05-10-2004, 12:28 PM   #4
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Original Poster
Rep: Reputation: 30
I am using Gnome and generally use OSS. The ' fuser -m /dev/dsp ' command does not work giving me an error. What do I need to have installed in order to use that? And the
' ps -A| grep arts ' command comes up with nothing. It just hangs the console. Also under XMMS I have the output as OSS driver 1.2.10. I saw you two are both using Debian. Would Debian be a good switch for me? I've used Mandrake in the past and didn't like it. Fedora Core 1 has treated me mostly well. But I have also read to stay away from these distros because they will only give me trouble.
 
Old 05-10-2004, 01:28 PM   #5
shedir
Member
 
Registered: Mar 2004
Location: Dresden, Germany
Distribution: Gentoo
Posts: 31

Rep: Reputation: 15
Quote:
I am using Gnome and generally use OSS.
I think gnome uses the esd sound daemon. XMMS -> Preferences -> Audio I/O Plugins -> eSound Output Plugin should solve your Problem (if esd is running properly). It seems that this Plugin is included into the original xmms tarball and should be available with no further packages to be installed.

Quote:
And the ' ps -A| grep arts ' command comes up with nothing.
Arts is the sound daemon of KDE and should not run if you don't use KDE.

Quote:
Would Debian be a good switch for me? I've used Mandrake in the past and didn't like it. Fedora Core 1 has treated me mostly well. But I have also read to stay away from these distros because they will only give me trouble.
There are lot's of discussions on LQ which distro is "the best". I can say that the package management of debian is very good and that "stable" is very stable. The software in stable is a bit outdated but by using backports / the debian extra cd or other "unofficial" repositories you can install newer versions of programs. Or you could use "testing". The number of broken packages is much less than the word "testing" suggests. Unlike other distros debian will ask you a lot about how things should be handled during installation / administration and many things must be configured "by hand" / on the command-line.
 
Old 05-10-2004, 05:53 PM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Quote:
I am using Gnome and generally use OSS.
What shedir said.
Quote:
The ' fuser -m /dev/dsp ' command does not work giving me an error.
What error?
Quote:
And the ' ps -A| grep arts ' command comes up with nothing. It just hangs the console.
Well it should come up with nothing since you're using gnome but the fact that it hangs the console is troubling. Try doing it again with a process you know will be running (eg ps -A|grep X should bring up XFree86) and see what happens.
Quote:
Also under XMMS I have the output as OSS driver 1.2.10.
Try the esd plugin as shedir suggested and see where that gets you. If it solves your problem then you're laughing.
Quote:
Would Debian be a good switch for me? I've used Mandrake in the past and didn't like it. Fedora Core 1 has treated me mostly well. But I have also read to stay away from these distros because they will only give me trouble.
I wouldn't bother switching if sound is your only problem. If you have other concerns then it's never a bad idea to go exploring. Fedora has apt-get by default now so I can't say that the package management is that much better but there are more packages easily obtainable though debian. They're also more standardised if you stick to the official mirrors.

Last edited by adz; 05-10-2004 at 05:54 PM.
 
Old 05-10-2004, 08:32 PM   #7
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Original Poster
Rep: Reputation: 30
[remus@localhost remus]$ ps -A|grep X
5314 ? 00:01:25 X

[remus@localhost remus]$ fuser -m /dev/dsp
bash: fuser: command not found

The ESD plugin has given me no problems so far. And I think I found the problem with the OSS plugin not working correctly. After I would exit UT2004 it wouldn't clean itself up so I would have to kill the process to open up the sound device again.

Thanks for all the help, it is much appreciated.
 
Old 05-10-2004, 08:55 PM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
No worries. Glad we could help. Post back if any similar problems develop. As for fuser it's part of the debian base system so I thought it would be part of Fedora too. Apparently not. Double check as root to see if it's there (maybe it's there but not in your user's PATH). You can also do a man fuser. If it's installed the manpage will come up. If you don't have it maybe there's an rpm somewhere out there. It's worth having as it's quite useful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Problems: CD works, no system/mp3/video sound tabnaka SUSE / openSUSE 5 01-13-2006 12:33 PM
Sound Blaster Sound Card problems idioticneophyte Linux - Hardware 17 02-01-2005 04:02 AM
sound problems and wine sound problems derfaust Linux - Software 1 07-23-2004 03:45 AM
Problems getting sound to play under Mandrake w/2 sound cards HGeneAnthony Linux - Hardware 1 07-02-2004 02:19 PM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-05-2004 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration