LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   /dev/dsp does not exist (https://www.linuxquestions.org/questions/slackware-14/dev-dsp-does-not-exist-691418/)

vbisis 12-18-2008 03:32 AM

/dev/dsp does not exist
 
Recently I noticed I haven't got any sound in Unreal Tournament 2004 anymore.

Having a look at the error message durinh start of the game, it tells me there is no /dev/dsp .

It is right, the file is not existing so I created a link from /dev/dsp1 and after that I had sound again.

But I don't think this is the correct way, anyway the link is gone after every reboot.

I could add a line to rc.local, but I think something like that should be done by udev?
But how?

Hope someone can help, thanks in advance!

Tuttle 12-18-2008 03:44 AM

does /dev/dsp0 exist?

ps. have a quick look at /etc/udev/rules.d/40-alsa.rules

vbisis 12-18-2008 03:46 AM

No, only /dev/dsp1

But as far as I know all modules are loaded. I'm not at home at the moment, so I can't have a look right now. I'll post the output of lsmod later.

gegechris99 12-18-2008 03:54 AM

What is your Slackware version?

You can also check that /etc/rc.d/rc.alsa is executable.

Also check which group your user belongs to:

Code:

less /etc/group | grep "user"
replace "user" with your user name.

Your user should be in group "audio"

vbisis 12-18-2008 12:41 PM

My Version is current from beginning of december, using slackware kernel 2.6.27.7 generic recompiled for 64 GB Ram support.

rc.alsa is executable
user is in audio

@ Tuttle: This file is not there, but only under /lib :

cat /lib/udev/rules.d/40-alsa.rules
# do not edit this file, it will be overwritten on update

KERNEL=="controlC[0-9]*", NAME="snd/%k"
KERNEL=="hwC[D0-9]*", NAME="snd/%k"
KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k"
KERNEL=="midiC[D0-9]*", NAME="snd/%k"
KERNEL=="timer", NAME="snd/%k"
KERNEL=="seq", NAME="snd/%k"
KERNEL=="mixer0", SYMLINK+="mixer"
KERNEL=="dsp0", SYMLINK+="dsp"
KERNEL=="audio0", SYMLINK+="audio"

It worked on Slackware 12.1, so some update to current must have broken it.

gegechris99 12-18-2008 02:24 PM

Quote:

Originally Posted by vbisis (Post 3380217)
KERNEL=="dsp0", SYMLINK+="dsp"

dev/dsp should have been created as a symlink to /dev/dsp0 but you said only /dev/dsp1 is existing in your system.

It's a bit strange because /dev/dsp0 should have been created as part of package a/devs-2.3.1-noarch-25.tgz

I would suggest to reinstall that package.

vbisis 12-18-2008 02:49 PM

Great! That was the solution! Thanks a lot!

Never even really noticed that this udev - rule was on /dev/dsp0

vbisis 12-18-2008 02:49 PM

Great! That was the solution! Thanks a lot!

Never even really noticed that this udev - rule was on /dev/dsp0


All times are GMT -5. The time now is 12:56 AM.