As of kernel 2.6.11-gentoo-r9 and alsa-utils-1.0.8, not only the new init script from Bug 41600 is not included in alsa-utils, it also does not work correctly - using that script, none of my configured sound cards (from /etc/modules.d/alsa, in the form "alias snd-card-0 snd-ens1371" "alias snd-card-1 snd-intel8x0") are loaded. I am not sure, but it seems that modprobe -c does NOT report the aliases? Also the init script (before the non-solution from Bug 41600) included greps for "snd-card-" but modprobe now reports them as "snd_card_". I changed the way again how to get the configured soundcards to greping /etc/modules.conf for the aliases by changing line 62 (reading local DRIVERS="$(modprobe -c | grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | awk '{print $2}')" to local DRIVERS="$(grep -E '^alias[[:space:]]*snd[-_]card[-_][[:digit:]][[:space:]]*snd[-_][[:alnum:]]*$' /etc/modules.conf | awk '{ print $3 }')" At least this works for me, but havent tried on 2.4. I would have reopened Bug 41600 but couldnt. Reproducible: Always Steps to Reproduce: 1. 2. 3. Gentoo Base System version 1.4.16 Portage 2.0.51.19 (!/usr/portage/profiles/default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 mobile AMD Athlon(tm) XP 2600+ Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 6 2005, 14:56:38)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/net/gentoo_shared/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/" MAKEOPTS="-j3" PKGDIR="/net/gentoo_client/Arch/athlon-xp/packages" PORTAGE_TMPDIR="/usr/tmp" PORTDIR="/net/gentoo_shared/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X Xaw3d aalib alsa apm avi berkdb bitmap-fonts cdr crypt cscope directfb emacs emboss encode esd foomaticdb fortran gdbm ggi gif gpm gtk gtk2 imlib ipv6 jpeg kerberos krb4 libg++ libwww mad mikmod mmap mmx mmx2 motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl pam pdflib perl png postgres python quicktime readline samba sdl slang socks5 spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode userlocales vorbis xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Please, post the output of the following: modprobe -c | grep 'alias snd' ls -R /lib/modules/`uname -r`/ | grep snd
Installed: sys-apps/module-init-tools-3.0-r2 modprobe --version: module-init-tools version 3.0 modprobe -c | grep 'alias snd': - gives absolutely no output ls -R /lib/modules/`uname -r`/ | grep snd: snd-hwdep.ko snd-page-alloc.ko snd-pcm.ko snd-rawmidi.ko snd-rtctimer.ko snd-timer.ko snd.ko snd-mixer-oss.ko snd-pcm-oss.ko snd-seq-device.ko snd-seq-midi-emul.ko snd-seq-midi-event.ko snd-seq-midi.ko snd-seq-virmidi.ko snd-seq.ko snd-seq-oss.ko snd-ens1371.ko snd-intel8x0.ko snd-ac97-codec.ko snd-ca0106.ko snd-emu10k1-synth.ko snd-emu10k1.ko snd-util-mem.ko snd-emux-synth.ko
Forgot: when everything is correct, snd module related stuff shown by lsmod: snd_seq_midi 6560 0 snd_pcm_oss 48288 0 snd_mixer_oss 17664 1 snd_pcm_oss snd_seq_oss 32448 0 snd_seq_midi_event 6464 2 snd_seq_midi,snd_seq_oss snd_seq 50768 5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event snd_intel8x0 28800 0 snd_ens1371 21344 0 snd_rawmidi 20576 2 snd_seq_midi,snd_ens1371 snd_seq_device 6988 4 snd_seq_midi,snd_seq_oss,snd_seq,snd_rawmidi snd_ac97_codec 74040 2 snd_intel8x0,snd_ens1371 snd_pcm 83528 4 snd_pcm_oss,snd_intel8x0,snd_ens1371,snd_ac97_codec snd_timer 21828 2 snd_seq,snd_pcm snd 46820 11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_intel8x0,snd_ens1371,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer snd_page_alloc 7620 2 snd_intel8x0,snd_pcm gameport 3648 1 snd_ens1371
Looks like you have old ALSA init script. Does command below: grep Header /etc/init.d/alsasound | awk '{print $4}' print '1.22'? If not, please re-emerge alsa-utils and try again. Did you ran modules-update after changing /etc/modules.d/alsa? If not, that's why modprobe -c cannot see your aliases. BTW, it's normal that modprobe reports modules as snd_card_ and not snd-card-
"grep Header /etc/init.d/alsasound | awk '{print $4}'" gives 1.22 Sure I did modules-update and I know its normal that "snd-" is reported as "snd_". And that is why the script doesnt work, besides the fact that aliases are obviously not reported by modprobe -c. My soundcard aliases in /etc/modules.d/alsa are alias snd-card-0 snd-ens1371 alias snd-card-1 snd-intel8x0
Well, modules are reported in form snd_card_ but when loading snd-card- should work too. If not, it's problem with modprobe, not with init script, as modprobe should report aliases and accept snd-card- Could you please post your /etc/modprobe.conf?
Yes snd- loads as well as snd_ But modprobe only report them as snd_ That is what I meant: grepping for "snd-" will always fail. Ill post the modprobe.conf when I am back at that machine...
Nothing to say about modprobe.conf: There are only some # (comment lines) in it :o This is rather strange, as all other machines have lots of stuff there... Now the probable reason: /sbin/modules-update calls /sbin/generate-modprobe.conf. Now I found an "Options" (note the big O) line in one file in /etc/modules.d file! I am not sure whether this could have been the problem, I corrected the Options line to options and retried - and it works! So the mistake was definitely that "Options" line, which had the result of generate-modprobe.conf to fail and generate an empty /etc/modprobe.conf. So one should possibly make generate-modprobe.conf at least generate an error message in this case? The thing is, that wrong "Options" line was not even in the /etc/modules.d/alsa file, but had the effect of generate-modprobe.conf to fail completely, making the error hard to track down. An error message and/or a more tolerant generate-modprobe.conf (which would discard such wrong lines for example) would be desirable. I apologize for the inconvenience and trouble and ask for this "feature request" to be forwarded to the right person, responsible for the modules-update stuff - or should I file a different bugreport/feature request for that? At least an error message would be important IMO. Thanks for your patience and - sorry, again.