LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-30-2004, 12:55 AM   #1
Pooldraft
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0
Posts: 8

Rep: Reputation: 0
Question "/dev/dsp" already in use


i go to run Rhythmbox .7.0 and i get this error {OSS device "/dev/dsp" already in use by another program} but no sound is playing i look and see if module is loaded it is and it was used by one program (gaim) i shut gaim down then tried again and no sound still!!! Any Ideas.....
 
Old 03-30-2004, 01:55 AM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
What is your desktop/distro. Most probably is due to a sound deamon (artsd or esd). Try killing either (depending on your desktop environment, arts = KDE, esd = GNOME):
Code:
$ killall -9 esd
or 
$ killall -9 artsd
Try again. Just remember that these deamons were made in the first place to overcome a problem with the OSS-free sound drivers: They don't support poliphony (multiple sound sources) the only way to have this in Linux is to either use the paid OSS drivers, use a sound deamon like esd or artsd or use the ALSA drivers, which support poliphony, depending on your hardware.

My personal recommendation would be to install ALSA, it's not hard at all, really. Plus depending on your audio HW sound quality may be far superior (under certain circumstances).
 
Old 03-30-2004, 05:48 AM   #3
Punboy
Member
 
Registered: Mar 2004
Posts: 32

Rep: Reputation: 15
If its arts causing the problem, go to kcontrol, under the multimedia section, to sound system, and tell it NOT to start the sound system. Or tell it to free the device after 2 seconds.
 
Old 03-30-2004, 08:52 AM   #4
Pooldraft
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
Unhappy

Welll i am using Gnome and i tired "killall -9 esd" and got the reply "esd: no process killed" , I then went to console and tried to run "esd" with no luck still busy. My hardware is {810 chipset AC'97 audio}, I then went to Mandrake toubleshoot and tried:

jesse@localhost jesse]$ /sbin/chkconfig --list alsa
alsa 0off 1off 2off 3off 4off 5off 6off
[jesse@localhost jesse]$ /sbin/chkconfig --list sound
sound 0off 1off 2on 3on 4n 5on 6off

i also changed the module from "i810_audio" to "snd-intel8x0"
but no luck.....
 
Old 03-30-2004, 05:07 PM   #5
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Quote:
Originally posted by Pooldraft
Welll i am using Gnome and i tired "killall -9 esd" and got the reply "esd: no process killed" , I then went to console and tried to run "esd" with no luck still busy. My hardware is {810 chipset AC'97 audio}, I then went to Mandrake toubleshoot and tried:

jesse@localhost jesse]$ /sbin/chkconfig --list alsa
alsa 0off 1off 2off 3off 4off 5off 6off
[jesse@localhost jesse]$ /sbin/chkconfig --list sound
sound 0off 1off 2on 3on 4n 5on 6off

i also changed the module from "i810_audio" to "snd-intel8x0"
but no luck.....
Ok, from what I gather you use both ALSA and OSS drivers? check your symlinks (/dev/dsp). Also if you are using both drivers at the same time, the device will be occupied by one of the drivers. My suggestion would be to edit your modules.conf (modprobe.conf in Mandy 10) file and take out (or comment out) the lines pertainig the i810_audio and install and post install lines, you will most likely have to reboot the system in order for the modules to unload and free the device. My suggestion would be to try separately either ALSA or OSS. Depending on how did you install ALSA you may need to re-run the snddevices script to re-create the devices under /dev/
 
Old 03-30-2004, 11:06 PM   #6
ideasman
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Home brew
Posts: 25

Rep: Reputation: 15
Use alsa with oss emulation, then you can have many devoces use /dev/dsp at once.
 
Old 04-14-2004, 06:56 PM   #7
Pooldraft
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
Unhappy Happend Again

Being the NOOB that i am I reinstalled and had no problem then while i was listening to music it did it again: My modprobe.conf :
Code:
alias ieee1394-controller ohci1394
alias eth0 eepro100
alias sound-slot-0 snd-intel8x0
install scsi_hostadapter /sbin/modprobe imm; /sbin/modprobe ppa; /bin/true
install snd-intel8x0 /sbin/modprobe --first-time --ignore-install snd-intel8x0 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe usb-uhci; /bin/true
remove snd-intel8x0 { /sbin/modprobe -r snd-pcm-oss; } ; /sbin/modprobe -r --first-time --ignore-remove snd-intel8x0
alias /dev/nvidia*   nvidia
I am not sure how to isolate the two modules and remove OSS so that i can get ALAS working and configure it to run multiple streams.
 
Old 04-15-2004, 09:23 AM   #8
Pooldraft
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
I fixed it but still only one stream at a time....how to activate ALAS and OSS emulation?
 
Old 04-15-2004, 04:02 PM   #9
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Quote:
Originally posted by Pooldraft
I fixed it but still only one stream at a time....how to activate ALAS and OSS emulation?
My question remains, you want to use both drivers at the same time? or use ALSA's OSS emulation? Please post your modules.conf (or modprobe.conf if you use a 2.6.x kernel).
 
Old 04-15-2004, 05:58 PM   #10
Pooldraft
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
I would like to just ues ALSA with OSS emulation
modprobe.config:
Code:
alias ieee1394-controller ohci1394
alias eth0 eepro100
alias sound-slot-0 snd-intel8x0
install scsi_hostadapter /sbin/modprobe imm; /sbin/modprobe ppa; /bin/true
install snd-intel8x0 /sbin/modprobe --first-time --ignore-install snd-intel8x0 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe usb-uhci; /bin/true
remove snd-intel8x0 { /sbin/modprobe -r snd-pcm-oss; } ; /sbin/modprobe -r --first-time --ignore-remove snd-intel8x0
alias /dev/nvidia*   nvidia
and modules.config
Code:
probeall scsi_hostadapter imm ppa
probeall usb-interface usb-uhci
alias ieee1394-controller ohci1394
alias eth0 eepro100
alias sound-slot-0 snd-intel8x0
above snd-intel8x0 snd-pcm-oss
 
Old 04-15-2004, 10:44 PM   #11
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
I'd actually better use the modules/modprobe.conf options listed at the alsa project's page... Remember that if you use kernel 2.6 the file used to load modules is modprobe.conf and with kernel 2.4 is modules.conf.
 
Old 04-16-2004, 02:00 AM   #12
Pooldraft
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"/dev/dsp not found" error on KDE, GNOME sound also doesn't work KneeLess Linux - Software 3 09-04-2007 04:41 PM
Could not open device "/dev/dsp" for writing bhomass Debian 7 11-16-2005 04:04 PM
problem in giving sound input through "/dev/dsp" b0nd Linux - Newbie 1 03-14-2005 11:16 PM
Slackware "lost" /dev/dsp, no sound Pathian Slackware 8 03-30-2004 06:52 PM
"/dev/dsp: Device or resource busy" Cdzin Linux - Hardware 4 02-25-2004 07:39 AM


All times are GMT -5. The time now is 02:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration