View previous topic :: View next topic |
Author |
Message |
jcb_dk n00b
Joined: 25 Mar 2005 Posts: 13
|
Posted: Fri Mar 25, 2005 9:36 pm Post subject: /dev/sound file creation at boottime |
|
|
Hey
I have this weird problem. When i boot, then a /dev/sound file is created instead of a directory. This means that /dev/dsp and other files are missing.
After boot the following modules are loaded:
Code: | Module Size Used by
snd_pcm_oss 56480 0
snd_mixer_oss 20992 2 snd_pcm_oss
bridge 53272 0
snd_seq_midi 9248 0
snd_emu10k1_synth 8448 0
snd_emux_synth 39424 1 snd_emu10k1_synth
snd_seq_virmidi 8448 1 snd_emux_synth
snd_seq_midi_emul 8064 1 snd_emux_synth
snd_seq_oss 36480 0
snd_seq_midi_event 8320 3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq 58000 8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_emu10k1 103940 3 snd_emu10k1_synth
snd_rawmidi 26528 3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_seq_device 8972 7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_ac97_codec 78328 1 snd_emu10k1
snd_pcm 98052 3 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_timer 27268 3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc 10244 2 snd_emu10k1,snd_pcm
snd_util_mem 4864 2 snd_emux_synth,snd_emu10k1
snd_hwdep 10144 2 snd_emux_synth,snd_emu10k1
snd 57572 15 snd_pcm_oss,snd_mixer_oss,snd_emux_synth,snd_seq_virmidi,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep
soundcore 10464 2 snd
aes_i586 39296 0
dm_crypt 13064 0
dm_mod 62344 1 dm_crypt
fuse 38800 0
tuner 22820 0
tvaudio 24100 0
msp3400 27560 0
bttv 158224 1
video_buf 22276 1 bttv
btcx_risc 5256 1 bttv
tveeprom 13464 1 bttv
nvidia 3921948 0 |
And my /etc/modules.d/alsa looks like this:
Code: | # Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator 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-emu10k1
## 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 |
I found a solution, but it has to be done after each boot, which is very annoying:
Code: | rm /dev/sound
rmmod snd-mixer-oss
rmmod snd-pcm-oss
modprobe snd-mixer-oss
modprobe snd-pcm-oss |
And after submitting this solution, then i have:
Code: | ls -l /dev/sound/
total 0
crw-rw---- 1 root audio 14, 12 Mar 25 22:31 adsp
crw-rw---- 1 root audio 14, 4 Mar 25 22:31 audio
crw-rw---- 1 root audio 14, 3 Mar 25 22:31 dsp
crw-rw---- 1 root audio 14, 0 Mar 25 22:21 mixer |
Any suggestion to a solution is greatly appreciated!
/jcb_dk |
|
Back to top |
|
|
alkan Guru
Joined: 06 Aug 2004 Posts: 385 Location: kasimlar yaylasi
|
Posted: Fri Mar 25, 2005 9:44 pm Post subject: |
|
|
if you are using udev, you may want to set 'RC_DEVICE_TARBALL="no" and RC_DEVFSD_STARTUP="no"' in your /etc/conf.d/rc. /dev/sound might be coming form those tarballs |
|
Back to top |
|
|
jcb_dk n00b
Joined: 25 Mar 2005 Posts: 13
|
Posted: Fri Mar 25, 2005 9:52 pm Post subject: /etc/conf.d/rc |
|
|
i have:
Code: | # UDEV OPTION:
# Set to "yes" if you want to save /dev to a tarball on shutdown
# and restore it on startup. This is useful if you have a lot of
# custom device nodes that udev does not handle/know about.
RC_DEVICE_TARBALL="yes" |
because it should save the working configuration at shutdown. i cant imagine it has a relation to the problem?
I dont have a RC_DEVFSD_STARTUP option because im using sys-apps/baselayout-1.11.10-r4. |
|
Back to top |
|
|
RuiP l33t
Joined: 15 Jan 2005 Posts: 643
|
Posted: Fri Mar 25, 2005 10:26 pm Post subject: Re: /etc/conf.d/rc |
|
|
jcb_dk wrote: | because it should save the working configuration at shutdown. i cant imagine it has a relation to the problem? |
it seems that your problem is precisely that you save a wrong configation at shutdown and you've got that at startup...
Besides the main purpose of udev is to create a fresh /dev every time you start and not recover a saved one (or then it's better use devfs, wich works with a static /dev and is much more tested ans stable).
I had a lot of problems of the same kind, with /dev/sound... they only disapear with:
(1) RC_DEVICE_TARBALL="no"
(2) use a udev from x86 (i avoid udev ~x86 since then!)
(3) all sound related modules compiled inside kernel, except the specific sound driver (snd_intel8x0 in my case) that goes as a loadable module
(4) remove snd_intel8x0 from /etc/modules.autoload.d/kernel-2.6 (it loads automagically) _________________ ESTRAGON: We've lost our rights?
VLADIMIR: (distinctly) We got rid of them. |
|
Back to top |
|
|
jcb_dk n00b
Joined: 25 Mar 2005 Posts: 13
|
Posted: Fri Mar 25, 2005 10:30 pm Post subject: |
|
|
u ment:
Code: | (1) RC_DEVICE_TARBALL="yes" |
right? |
|
Back to top |
|
|
RuiP l33t
Joined: 15 Jan 2005 Posts: 643
|
Posted: Fri Mar 25, 2005 10:49 pm Post subject: |
|
|
no,
Code: |
RC_DEVICE_TARBALL="no"
|
udev must create devices when system start up. If you say yes it will load a saved tarball (if exist, of course) and in your case it maybe loading an incorrect /dev/sound file...
(or maybe its something else, if you make a search for /dev/sound or /dev/dsp you will find hundreds of threads with that kind of problem... )
another think i done too was emerge hotplug and added to boot level. hotplug is facultativ with devfs, but obligatory with udev.
good luck!
Edit, if udev is the problem, here a link full of information:
http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html _________________ ESTRAGON: We've lost our rights?
VLADIMIR: (distinctly) We got rid of them. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Mar 27, 2005 12:09 am Post subject: |
|
|
Just a small note here:
I was experiencing the same "udev-dsp-alsa" bliss for two weeks, switching between several kernels and ending up remerging anything alsa seven times in a row.
I just solved it, and it is too stupid to believe: you have to set the oss USE flag for the sound/* devices to be created!
If you use alsa-driver you must emerge it with uSE="oss" or you can wait till Larry the cow comes home...
No idea whether this also works with the in-kernel alsa. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
xurubezi n00b
Joined: 06 Mar 2004 Posts: 3 Location: Kansas
|
Posted: Tue Apr 26, 2005 12:54 pm Post subject: another possible solution (problem) |
|
|
I have been seeing the same problem of /dev/sound being created as a device file
instead of a directory. I have RC_DEVICE_TARBALL="no" and although I don't
have USE=oss in make.conf, it is enabled in the profile so those are not issues
for me. The work around I have been doing is:
Code: | /etc/init.d/alsasound restart |
but that has side effects in my session requiring me to log out and back in.
After some testing, I did find the problem and a workaround. I have been using in /etc/conf.d/rc:
Code: | RC_PARALLEL_STARTUP="yes" |
and found that changing that to Code: | RC_PARALLEL_STARTUP="no" |
causes /dev/sound to be properly created as a directory.
The differences I see in the startup is that with parallel startup, the consolefont,
keymaps and net.lo init scripts are executed during the alsasound startup.
Looks like there may be some concurrency issues with udev. |
|
Back to top |
|
|
jcb_dk n00b
Joined: 25 Mar 2005 Posts: 13
|
Posted: Tue Apr 26, 2005 2:34 pm Post subject: |
|
|
I also have RC_DEVICE_TARBALL="no" and RC_PARALLEL_STARTUP="no"
If i have the alsasound init script added to start at boot level or default level it still create the annoying /dev/sound file instead of a /dev/sound directory.
I can fix this 2 ways:
Code: | /etc/init.d/alsasound restart |
or
Code: | rmmod snd-pcm-oss
rmmod snd-mixer-oss
rm /dev/sound
modprobe snd-pcm-oss
modprobe snd-mixer-oss |
So my problem is still unresolved |
|
Back to top |
|
|
hiboo n00b
Joined: 17 Jan 2005 Posts: 55
|
Posted: Thu Apr 28, 2005 10:26 am Post subject: |
|
|
Have you tried to configure alsa with alsaconf ?
I had the same pb as you have, it it works |
|
Back to top |
|
|
|
|
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
|
|