LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2006, 07:17 PM   #1
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Rep: Reputation: 30
/dev/dsp -- how do I set it up? (no sound RTCW issue)


Distro: Debian Sarge.
kernel: uname -r =2.6.8-2-k7
desktop: KDE 3.3.2

symptoms:
1) some sound apps work. I can play an mp3 from my cdrw dev/hdc aka /media/cdrom0 with Noatun, Kabodle, Totem movie player (all by right clicking the .mp3 and selecting the app).

2)
a. some sound apps don't work. XMMS complains:
Couldn't open audio Please check that: Your soundcard is configured properly You have the correct output plugin selected No other program is blocking the soundcard"
b. Rythmbox Music Player also can't play and complains:
1st error box -- "could not pause playback"
2nd error box -- "Device "/dev/dsp" does not exist"

3) Return to Castle Wolfenstein graphics load but not the sound: "Could not open /dev/dsp". I opened a root terminal and browsed to /dev but didn't see 'dsp' anywhere.

4) ps aux output lists several items including aRts which I know is associated to sound:
beebleq 4750 0.3 0.8 21884 8328 ? S 07:48 2:01 /usr/bin/artsd -F 10 -S 4096 -d -m artsmessage -c drkonqi -l 3 -f

Mmmkay. How do I configure my sound properly? It's onboard nforce sound on Abit NF7-S ver.2 (Nforce2 ultra).

MEPIS didn't give me any problems with sound -- anyone know how to parrot on Debian what MEPIS does by default?
 
Old 01-25-2006, 07:47 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
you have sound. you just have some settings off in xmms. right click xmms and look over the audio settings in preferences or something like that
 
Old 01-25-2006, 07:54 PM   #3
Maestro485
Member
 
Registered: Apr 2004
Location: Pittsburgh
Distribution: Slackware
Posts: 136

Rep: Reputation: 16
There may be a chance that the permissions on /dev/dsp are set too strictly. I've had that problem before but with slackware. If the user is unable to access /dev/dsp, then you will get those kind of errors. Changing the permissions may do the trick.

Matt
 
Old 01-25-2006, 08:07 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
but Noatun, Kabodle, Totem works, so i don't think it's permissions. also look to make sure that /dev/dsp is your sound card and not /dev/snd or something similar
 
Old 01-25-2006, 08:08 PM   #5
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Original Poster
Rep: Reputation: 30
bosewicht: I think before I start changing settings in there I'd better get more specific feedback. I actually did try switching between Alsa, esound output plugin and OSS, but nothing changed (still get error). I don't think it's XMMS because at least two other apps also don't work.

Maestro485: nothing can be hidden from root and that's how I browsed to see no /dev/dsp. So I don't think it's a permission issue (not permissions with root). I do have these devices(?) under dev/snd:
debian:/dev/snd# ls -la
total 0
drwxr-xr-x 2 root root 160 2006-01-24 21:15 .
drwxr-xr-x 12 root root 3920 2006-01-24 21:16 ..
crw-rw---- 1 root audio 116, 0 2006-01-24 21:15 controlC0
crw-rw---- 1 root audio 116, 24 2006-01-24 21:15 pcmC0D0c
crw-rw---- 1 root audio 116, 16 2006-01-24 21:15 pcmC0D0p
crw-rw---- 1 root audio 116, 25 2006-01-24 21:15 pcmC0D1c
crw-rw---- 1 root audio 116, 18 2006-01-24 21:15 pcmC0D2p
crw-rw---- 1 root audio 116, 33 2006-01-24 21:15 timer

Anyone think this is trying to be /dev/dsp?
 
Old 01-25-2006, 08:10 PM   #6
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Original Poster
Rep: Reputation: 30
funny. you posted in that 4.5 minute interval that I did...

Ok, so /dev/snd IS relevant. Now what do I do with it?
 
Old 01-25-2006, 08:15 PM   #7
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
ok, so in xmms change the dev from /dev/dsp to /dev/snd the apps are defaulting to /dev/dsp and there is none, hence the errors. You have sound, it works, those apps are looking at the wrong device.
 
Old 01-25-2006, 08:56 PM   #8
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Original Poster
Rep: Reputation: 30
No. We're getting no joy here. It's more than one solitary application(XMMS). What's the connecting master application that affects XMMS, Rhythmbox, OSS based games like RTCW? Anyone?
 
Old 01-25-2006, 09:21 PM   #9
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
this may be a udev thing, so there may be a udev way to fix it, but do you have /dev/dsp0, /dev/dsp1, etc.? if so, did you try linking /dev/dsp to /dev/dsp0:

ln -s /dev/dsp0 /dev/dsp

(do as root, and check permissions are ok)
 
Old 01-25-2006, 10:24 PM   #10
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Original Poster
Rep: Reputation: 30
Wait a second...

debian:/dev# lsmod
Module Size Used by
nls_cp437 5760 1
isofs 37752 1
iptable_filter 2944 0
ip_tables 18368 1 iptable_filter
fglrx 451840 7
ipv6 262532 10
autofs4 19908 0
af_packet 22600 2
floppy 60304 0
pcspkr 3688 0
rtc 12728 0
shpchp 100716 0
pciehp 97388 0
pci_hotplug 34352 2 shpchp,pciehp
i810_audio 37204 0
ac97_codec 18700 1 i810_audio
joydev 9856 0
usbhid 32000 0
usblp 13056 0
nvidia_agp 7836 1
snd_intel8x0 36140 2
snd_ac97_codec 69508 1 snd_intel8x0
snd_pcm 97480 3 snd_intel8x0
snd_timer 25668 1 snd_pcm
snd_page_alloc 11720 2 snd_intel8x0,snd_pcm
gameport 4736 1 snd_intel8x0
snd_mpu401_uart 8000 1 snd_intel8x0
snd_rawmidi 25316 1 snd_mpu401_uart
snd_seq_device 8264 1 snd_rawmidi
snd 57380 9 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,sn d_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 10336 2 i810_audio,snd
forcedeth 17792 0
ehci_hcd 31364 0
ohci_hcd 21380 0
usbcore 118308 6 usbhid,usblp,ehci_hcd,ohci_hcd
agpgart 34536 2 nvidia_agp
tsdev 7360 0
mousedev 10444 1
evdev 9600 0
capability 4616 0
commoncap 7296 1 capability
psmouse 20232 0
ide_cd 42528 1
cdrom 40284 1 ide_cd
ext3 126696 1
jbd 61848 1 ext3
mbcache 9284 1 ext3
ide_generic 1472 0
ide_disk 19264 3
amd74xx 14108 1
ide_core 138724 4 ide_cd,ide_generic,ide_disk,amd74xx
sd_mod 21696 0
ata_piix 8132 0
libata 41412 1 ata_piix
scsi_mod 124748 2 sd_mod,libata
unix 28660 410
font 8448 0
vesafb 6688 0
cfbcopyarea 3840 1 vesafb
cfbimgblt 3072 1 vesafb
cfbfillrect 3712 1 vesafb

aaaaaaand...
debian:/dev# lspci
0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
0000:00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1)
0000:00:05.0 Multimedia audio controller: nVidia Corporation nForce MultiMedia audio [Via VT82C686B] (rev a2)
0000:00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
0000:02:00.0 VGA compatible controller: ATI Technologies Inc Radeon R350 [Radeon 9800 Pro]
0000:02:00.1 Display controller: ATI Technologies Inc Radeon R350 [Radeon 9800 Pro] (Secondary)

I think my problem is that Sarge didn't automatically load nforce sound stuff. It loaded intel drivers, which is incorrect.

MY NEW QUESTION: how do I configure my sound card so that I get nvidia drivers instead of intel?

Idea -- gonna disable the onboard sound in BIOS and see if Linux can fix it. BRB.
 
Old 01-25-2006, 11:14 PM   #11
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
maybe this has already been addressed but have you checked in `alsamixer`, i know there are many settings available on my nforce2 board..

also did you install the nvidia nforce drivers? IIRC, I leave all sound options blank except for AC97 in the kernel config and then install the nforce drivers, otherwise there were some weird conflicts.. i cant remember though for sure.. havent recompiled in a couple months..

i would check `alsamixer` atleast youll see what card is being detected by alsa..
 
Old 09-23-2006, 10:54 AM   #12
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Anyone having sound problems in Wolfenstein Enemy territory or other games can try the suggestions here. https://help.ubuntu.com/community/EnemyTerritory I am running Debian Etch, not Ubuntu, but the suggestions work for most distros. If not, change the commands a little bit to fit your distro. Let me know if this helps.
 
Old 10-02-2006, 06:45 PM   #13
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Original Poster
Rep: Reputation: 30
you guys are awesome I never actually got it fixed, and I think it was because I hadn't installed the drivers. thx for keeping it alive -- just installed Xandros a few days ago and plan on getting it to work.
 
Old 10-02-2006, 09:12 PM   #14
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
the biggest thing that helped me with sound is switching from oss to alsa
 
Old 10-25-2006, 01:39 PM   #15
genarator
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
guys, what about 7.1 speakers systems.

please, i Have already posted a thread about it, and I got no answer
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 12:27 PM
/dev/dsp (no sound) ericb Linux - Hardware 1 01-10-2006 11:12 AM
no sound from /dev/dsp Dargason Linux - Software 24 01-06-2006 02:49 PM
No sound, /dev/dsp no such device OlRoy Linux - Hardware 4 05-31-2003 04:26 PM
sound : /dev/dsp j-charles Linux - Newbie 4 02-28-2002 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 AM.

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