Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/dsp disappeared [partially solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
PiniHadad
n00b
n00b


Joined: 16 Jun 2003
Posts: 69

PostPosted: Mon Jan 17, 2005 3:15 pm    Post subject: /dev/dsp disappeared [partially solved] Reply with quote

I recently updated a few things including compiling and installing a few kernels and now /dev/dsp doesn't exist any more. I've done a whole bunch of searching and can't find anything useful. I use alsa and kernel level oss emulation. I'm now running 2.6.10 vanilla. I tried booting 2.6.9-mm1 and it still didn't exist. This was definatly working with 2.6.9-mm1 but I've recompiled that version of the kernel recently and I'm not sure that it's worked since then (although it may have). I use the alsa driver that's part of the kernel and have alsa-lib 1.0.7, alsa-headers 1.0.8_rc1 (I don't know if I need this), & alsa-utils 1.0.6 installed. Xmms, with the native alsa output plugin, works. Something that may be related is that if I open the kde control center, go to sound system, and click test sound, artsd crashes with sigsegv even though it's set up to use alsa natively (this used to work). Something else I recently did is switch sata controller drivers which changed 2 of my disks from hd.. to sd.., but I don't see how this could affect anything especially since I'm running a software raid on top of that so my system is still on md0.
Here's some possibly useful info:
Code:
# cat /usr/src/linux/.config | grep OSS
# CONFIG_CHR_DEV_OSST is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y

Code:
# lsmod
Module                  Size  Used by
...
snd_intel8x0           32928  3
snd_ac97_codec         75936  1 snd_intel8x0
snd_seq_oss            34944  0
snd_seq_midi_event      7680  1 snd_seq_oss
snd_seq                54160  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          8716  2 snd_seq_oss,snd_seq
snd_pcm_oss            53604  0
snd_pcm                97224  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              25668  2 snd_seq,snd_pcm
snd_page_alloc          9924  2 snd_intel8x0,snd_pcm
snd_mixer_oss          20096  1 snd_pcm_oss
snd                    55012  15 snd_intel8x0,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               9888  1 snd
...

Code:
# ls -a /dev/dsp
ls: /dev/dsp: No such file or directory

Code:
# cat /etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-intel8x0
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1

If anyone can help me I'd really appreciate it.


Last edited by PiniHadad on Mon Jan 17, 2005 8:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Mon Jan 17, 2005 4:41 pm    Post subject: Reply with quote

what happens if you restart the alsasound service?
On bootup I have no /dev/dsp /dev/mixer, but from the moment I restart the alsasound daemon (/etc/init.d/alsasound restart), all the nodes come back...
Back to top
View user's profile Send private message
PiniHadad
n00b
n00b


Joined: 16 Jun 2003
Posts: 69

PostPosted: Mon Jan 17, 2005 8:15 pm    Post subject: Reply with quote

That did it. Thanks a lot :-) Do you have any idea what caused this or if there are any bugs filed anywhere about this?
I realized this may not be clear. Restarting alsasound causes the devices to be created, but like yours, they disappear again when I reboot and I have to do it again.
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Tue Jan 18, 2005 12:07 am    Post subject: Reply with quote

PiniHadad wrote:
That did it. Thanks a lot :-) Do you have any idea what caused this or if there are any bugs filed anywhere about this?
I realized this may not be clear. Restarting alsasound causes the devices to be created, but like yours, they disappear again when I reboot and I have to do it again.


well... as I stated before, I have the exact same problem, and I don't know what causes it...
I've manually added the modules to load to /etc/modules.autoload.d/kernel-2.6, but that still didn't bring a solution...

It sucks bigtime, cause everytime I reboot, I have to restart the alsasound daemon... :(

maybe someone else has a solution for this... :)
Back to top
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Tue Jan 18, 2005 4:52 pm    Post subject: Reply with quote

Here is another gentoo user who has this damn problem. I need to restart alsasound everytime I reboot to get /dev/dsp back and for me this happened after an recent update, too...

The init script for alsa belongs to alsa-utils, which I did not upgrade ( 1.0.6 ). As a conclusion either the alsa-script was always buggy and its bug is now triggered by the new alsa-driver in the kernel - or its a bug in the new alsa-driver used in linux 2.6.10.
Back to top
View user's profile Send private message
jedioetzi
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2003
Posts: 91
Location: Bolzano

PostPosted: Thu Jan 20, 2005 12:09 pm    Post subject: Reply with quote

I suppose the problem belongs to 2.6.10. I have the same problem and I had only upgraded the kernel version.

using restarting alsa the devices appears, but then I get strange problems with volume control of gnome.

I searched in gentoo bugs but nothing found...
Back to top
View user's profile Send private message
Peripatetic
n00b
n00b


Joined: 17 Dec 2002
Posts: 10
Location: Florida

PostPosted: Sun Jan 23, 2005 4:37 pm    Post subject: Try this Reply with quote

I had the same problem after upgrading to vanilla 2.6.10-r1 from 2.6.8.1. I fixed it by compiling sound support into the kernel rather than as a module
Code:
 <*> Sound card support

and disabling alsa and oss in the kernel. Then I reemerged alsa-driver and alsa-utils. Now /dev/dsp and /dev/mixer as well as everything in /dev/sound are created on startup.

I'm just guessing here, but I think the problem was that the soundcore module doesn't get initialized in time when the alsa modules are loaded. That's why if you restart alsasound it works. But if we build sound into the kernel, then it finishes initializing before alsa is loaded. Anyway, I'd like to know if this fix works for anybody else. Also, it shouldn't matter whether you're using the kernel's builtin alsa support or alsa-driver but I haven't tested the in-kernel option yet.
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Sun Jan 23, 2005 6:02 pm    Post subject: Re: Try this Reply with quote

Peripatetic wrote:
I had the same problem after upgrading to vanilla 2.6.10-r1 from 2.6.8.1. I fixed it by compiling sound support into the kernel rather than as a module


that could very well be the solution for this annoying problem... :)

I don't have alsa in the kernel either, but I do have the soundcore as a module...
I'll rebuild my kernel, and update this post if it works :)


thanks for pointing this out Peripatetic!


EDIT: well, you were right!!! thanks a lot for bringing this to my attention... everything works great now!
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Mon Jan 24, 2005 8:05 pm    Post subject: Reply with quote

An alternate solution would be to upgrade udev to udev-050. That solved the problem for me.
Back to top
View user's profile Send private message
lot3k
n00b
n00b


Joined: 05 Jun 2005
Posts: 24
Location: Birmingham, AL

PostPosted: Mon Sep 25, 2006 10:39 pm    Post subject: Reply with quote

I haven't had luck with any of these in getting /dev/dsp reinitialized.

running linux-2.6.17-gentoo-r8 with udev-087-r1. Sound card support compiled in, as well as disabled oss/alsa in kernel. All driver configuration has occured externally.

I let alsaconf do it's magic in detecting the card, as wel as attempted restarting service upon load. I even created aliases linking to /dev/dsp and have had no luck having them regenerated. I'm to the point of attempting to create them manually.
Back to top
View user's profile Send private message
shirozaru
n00b
n00b


Joined: 29 Nov 2005
Posts: 9

PostPosted: Mon Sep 25, 2006 11:59 pm    Post subject: Reply with quote

+1 to lot3k post

unfortunately i dont have the vaguest idea when this started.
Back to top
View user's profile Send private message
lot3k
n00b
n00b


Joined: 05 Jun 2005
Posts: 24
Location: Birmingham, AL

PostPosted: Tue Sep 26, 2006 1:42 am    Post subject: Reply with quote

lot3k wrote:
I haven't had luck with any of these in getting /dev/dsp reinitialized.

running linux-2.6.17-gentoo-r8 with udev-087-r1. Sound card support compiled in, as well as disabled oss/alsa in kernel. All driver configuration has occured externally.

I let alsaconf do it's magic in detecting the card, as well as attempted restarting service upon load. I even created aliases linking to /dev/dsp and have had no luck having them regenerated. I'm to the point of attempting to create them manually.


Issue was PEBKAC, I wasn't expressly compiling with OSS support.
Back to top
View user's profile Send private message
shirozaru
n00b
n00b


Joined: 29 Nov 2005
Posts: 9

PostPosted: Tue Sep 26, 2006 11:44 pm    Post subject: Reply with quote

+1 to PEBKAC as well.

sometimes i am such a n00b
Back to top
View user's profile Send private message
AA
n00b
n00b


Joined: 29 Jul 2003
Posts: 59
Location: N51:16:10, E0:30:27

PostPosted: Thu Oct 12, 2006 12:30 am    Post subject: Reply with quote

oss support compiled as a module and media-libs/alsa-oss is how I fixed it.

* media-libs/alsa-oss
Latest version available: 1.0.11
Latest version installed: 1.0.11
Size of files: 224 kB
Homepage: http://www.alsa-project.org/
Description: Advanced Linux Sound Architecture OSS compatibility layer.
License: GPL-2
Back to top
View user's profile Send private message
navaburo
n00b
n00b


Joined: 18 Apr 2007
Posts: 2
Location: NYC Metropolitan Area, USA

PostPosted: Fri May 11, 2007 5:12 pm    Post subject: same issue Reply with quote

i have the same issue

no /dev/dsp

but restarting alsa brings it back

sound works otherwise though (playback in audacious or aRts)
Back to top
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 322
Location: Greece

PostPosted: Sat Oct 06, 2007 2:43 pm    Post subject: Reply with quote

hi,i don't know where to start from,i hope someone will help me.after an update thast i did yesterday when i log in i get a crash message about artsd like this
Quote:
The application Soundserver (artsd) crashed and caused the signal 6(SIGABRT)


the backtrace is this :
Quote:
This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

(no debugging symbols found)
Quote:

Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1216309584 (LWP 8668)]
0xb7f2a410 in __kernel_vsyscall ()
#0 0xb7f2a410 in __kernel_vsyscall ()
#1 0xb7a5e2d3 in __waitpid_nocancel () from /lib/libpthread.so.0
#2 0x080650a3 in ?? ()
#3 0x000021eb in ?? ()
#4 0x00000000 in ?? ()


when i run
Quote:
# /etc/init.d/alsasound restart
* Storing ALSA Mixer Levels ... [ ok ]
* Killing processes using ALSA ... [ ok ]
* Unloading ALSA modules ... [ ok ]
* Loading ALSA modules ...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Loading: snd_intel8x0 ... [ ok ]
* Loading: snd_intel8x0m ... [ ok ]
* Loading: snd-mixer-oss ... [ ok ]
* Loading: snd-pcm-oss ... [ ok ]
* Loading: snd-seq ... [ ok ]
* Restoring Mixer Levels ...

The result is that i can't get sound through anything,not amarok(crashes),not even in firefox when i try to see a video,firefox crashes.i don't know what to do.please if anyone needs more info or has any idea please post it,i really don't know what to do
EDIT:i re merged arts and kdelibs as suggested in a post but nothing
Back to top
View user's profile Send private message
totycro
n00b
n00b


Joined: 14 May 2007
Posts: 26

PostPosted: Sun Oct 07, 2007 8:54 am    Post subject: Reply with quote

zoe wrote:

when i run
Quote:
# /etc/init.d/alsasound restart
* Storing ALSA Mixer Levels ... [ ok ]
* Killing processes using ALSA ... [ ok ]
* Unloading ALSA modules ... [ ok ]
* Loading ALSA modules ...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Loading: snd_intel8x0 ... [ ok ]
* Loading: snd_intel8x0m ... [ ok ]
* Loading: snd-mixer-oss ... [ ok ]
* Loading: snd-pcm-oss ... [ ok ]
* Loading: snd-seq ... [ ok ]
* Restoring Mixer Levels ...

The result is that i can't get sound through anything,not amarok(crashes),not even in firefox when i try to see a video,firefox crashes.i don't know what to do.please if anyone needs more info or has any idea please post it,i really don't know what to do
EDIT:i re merged arts and kdelibs as suggested in a post but nothing

i have the exact same problem, but i can't tell what caused it. i use emu10k1 and the ouput of `/etc/init.d/alsasound start` should be fine:
Code:
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                              [ ok ]
 *   Loading: snd-seq-oss ...                                             [ ok ]
 *   Loading: snd-pcm-oss ...                                             [ ok ]
 *   Loading: snd-emu10k1-synth ...                                       [ ok ]
 *   Loading: snd-seq-midi ...                                            [ ok ]
 * Restoring Mixer Levels ...                                             [ ok ]

if i don't start alsasound, playing audio files with mplayer works fine, but i have no /dev/mixer or /dev/dsp
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 6609

PostPosted: Sun Oct 07, 2007 9:27 am    Post subject: Reply with quote

As I must have stated about a hundred times in similar threads:

Follow wiki article carefully.
Back to top
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 322
Location: Greece

PostPosted: Sun Oct 07, 2007 10:54 am    Post subject: Reply with quote

Quote:
As I must have stated about a hundred times in similar threads:

Follow wiki article carefully.


Maybe i didn't mention that everything was working perfect and arts and amarok crashed after my latest upgrade.Many people around the internet have the same with alsa after some upgrade.I found one library that is broken and i will try to fix it and post again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum