LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Failed to open audio device (/dev/dsp): No such device (http://www.linuxquestions.org/questions/slackware-14/failed-to-open-audio-device-dev-dsp-no-such-device-455194/)

stevesk 06-15-2006 05:35 PM

Failed to open audio device (/dev/dsp): No such device
 
Hello! When I try to play any sound through a program like xmms, I receive the following message:

** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): No such device

I BELIEVE (but not sure) it is happening since I installed Dropline Gnome (I tried to install FreeRock Gnome first, but not even my firefox was working anymore because of problems in lib files, so I reinstalled my whole system and tried this one)

I tryed to use alsaconf and reconfigure my sound, but it didn't solve the problem.

I compiled my own kernel with not much knowleadge, but I could make audio working until yesterday. The main "system change" that I've made today was to install Dropline Gnome. I tried to run xmms as root, but didn't solve the problem.

Thanks to anyone who tries to help me.

Edit: Oh, btw, there IS a file in /dev/dsp linking to another file: /dev/sound/dsp. I tried to chmod 777 both of them and it also didn't work.

tuxdev 06-15-2006 05:51 PM

Does sound work as root? That error message really doesn't make sense if both /dev/dsp and /dev/sound/dsp both exist.

stevesk 06-15-2006 06:11 PM

Quote:

Originally Posted by tuxdev
Does sound work as root? That error message really doesn't make sense if both /dev/dsp and /dev/sound/dsp both exist.

No, the sound doesn't work not even using xmms as root. See for yourselves:

bash-3.00$ su
Password:
bash-3.00# cd /dev
bash-3.00# ls -al dsp
lrwxrwxrwx 1 root root 9 2006-06-15 18:25 dsp -> sound/dsp
bash-3.00# cd /dev/sound
bash-3.00# ls -al dsp
crwxrwxrwx 1 matrix audio 14, 3 2006-06-13 17:24 dsp
bash-3.00# xmms

** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): No such device

bash-3.00#

I think it is quite weird too.

cwwilson721 06-15-2006 06:17 PM

Try logging in as root (hey, gotta try...)

Also, could you post
Code:

lsmod
lspci

May give us a better grasp at what is going on.

Also, have you run 'alsaconf' as root (Not su as root)?

I see the 'oss' error in your post. oss has given way to alsa now....

And what kernel are you running?

stevesk 06-15-2006 06:56 PM

I am using 2.6.16.20 kernel...I recompiled it and it seemed to work now. Quite strange, but let's say this thread is solved for now.

I thank tuxdev and cwwilson721 for the help.

cwwilson721 06-15-2006 07:01 PM

You are very welcome.

It's happened to myself countless times: Compile or install the kernel, things foul up.
I know I did it right...
Reconfig, doublecheck my sound settings, Duh! Forgot to enable the chipset in alsa, and had it set for some reason in oss.....

It happens. That why this is called "Golf", not "Cooking"

oops, need to reboot my OS bef...

explosions_in_the_sky 01-01-2009 06:29 AM

Hi,
I had similar issue with xmms, but was intermittent. Sometimes it work sometime I get this error message. Meanwhile I could play sound using mplayer and I could listen to streaming videos and audios on the internet.
Finally I fixed it by editing the output plugin.
Options----> Preferences--->Audio I/O plugins--->Output plugin
I changed it from OSS driver to ALSA output plugin. However after the change I could not edit the volume from xmms player :p.


All times are GMT -5. The time now is 02:54 AM.