Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Extra can't locate snd-card-# messages on boot with Alsa
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
OverrideX
n00b
n00b


Joined: 09 Jul 2002
Posts: 8

PostPosted: Tue Jul 09, 2002 12:26 pm    Post subject: Extra can't locate snd-card-# messages on boot with Alsa Reply with quote

If you're getting messages on bootup using Alsa that annoy you like the ones below:
Quote:
modprobe: Can't locate module snd-card-1
modprobe: Can't locate module snd-card-2
modprobe: Can't locate module snd-card-3
modprobe: Can't locate module snd-card-4
modprobe: Can't locate module snd-card-5

You can get rid of them by editing /etc/modules.d/alsa and adding this line to the bottom:
Quote:
options snd snd_cards_limit=1

Then run update-modules as root and you're all set. -Dan
Back to top
View user's profile Send private message
BillyD
Guru
Guru


Joined: 05 May 2002
Posts: 323
Location: Australia

PostPosted: Thu Jul 11, 2002 4:00 am    Post subject: Reply with quote

Thanks OverrideX, that was annoying the hell outta me.
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Fri Nov 08, 2002 4:57 am    Post subject: Twice put this in the file? Reply with quote

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-driver/files/alsa-modules.$

# ALSA portion
alias char-major-116 snd
options snd snd_major=116 snd_cards_limit=1
# OSS/Free portion
alias char-major-14 soundcore

Thats the way the instructions say to make the file appear:

Check the ALSA portion at the top of the file. By adding this line you can specify the max number of soundcards you have (generally, just one).

Code listing 2.5: At the top of /etc/modules.d/alsa

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-src/gentoo-web/xml/doc/en/alsa-guide.xml,v 1.4 2002/11/01 02:40:47 zhen Exp $

# ALSA portion
alias char-major-116 snd
options snd snd_major=116 snd_cards_limit=1
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:

Thats what I did. Still had error. Now are you saying to add the "options snd snd_major=116 snd_cards_limit=1" AGAIN to the bottom of this file? :?:
http://www.gentoo.org/doc/alsa-guide.html
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Fri Nov 08, 2002 5:50 am    Post subject: It does not.work here. Reply with quote

Twice or not, I still get the errors. :x
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Fri Nov 08, 2002 7:55 pm    Post subject: Reply with quote

for 1-7 do
Code:
alias snd-card-?? off
in /etc/modules.d/alsa then update-modules.

Thought this fixed things with my system,

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa


Last edited by lx on Fri Nov 08, 2002 7:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Fri Nov 08, 2002 7:56 pm    Post subject: Reply with quote

Does nothing for me as I have stated above.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Fri Nov 08, 2002 7:59 pm    Post subject: Reply with quote

Darthanubis wrote:
Does nothing for me as I have stated above.


Adding
alias snd-card-01 off
alias snd-card-02 off
alias snd-card-03 off
alias snd-card-04 off
alias snd-card-05 off
alias snd-card-06 off
alias snd-card-07 off

where did you state that?? :wink:

cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Fri Nov 08, 2002 8:02 pm    Post subject: Reply with quote

OH SHIT!

Sorry dude, I'll try that right now!
Back to top
View user's profile Send private message
Wedge_
Advocate
Advocate


Joined: 08 Aug 2002
Posts: 3614
Location: Scotland

PostPosted: Fri Nov 08, 2002 9:35 pm    Post subject: Reply with quote

A slightly simpler way is to change
Code:
options snd snd_cards_limit=1
to
Code:
options snd cards_limit=1
and then run update-modules. It mentions that they removed the "snd_" in the ALSA docs somewhere.
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Fri Nov 08, 2002 9:54 pm    Post subject: Reply with quote

Wedge_ wrote:
A slightly simpler way is to change
Code:
options snd snd_cards_limit=1
to
Code:
options snd cards_limit=1
and then run update-modules. It mentions that they removed the "snd_" in the ALSA docs somewhere.


snd snd major=116 apllies to this too then?


I don't want to assume.
Back to top
View user's profile Send private message
Wedge_
Advocate
Advocate


Joined: 08 Aug 2002
Posts: 3614
Location: Scotland

PostPosted: Fri Nov 08, 2002 10:13 pm    Post subject: Reply with quote

I don't actually have the line written like you have. At the top of /etc/modules.d/alsa, I have
Code:

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
then all the other stuff, and then at the bottom I have
Code:
options snd cards_limit=1
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Fri Nov 08, 2002 10:21 pm    Post subject: Reply with quote

Wedge_ wrote:
I don't actually have the line written like you have. At the top of /etc/modules.d/alsa, I have
Code:

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
then all the other stuff, and then at the bottom I have
Code:
options snd cards_limit=1



alias char-major-116 snd?

That can't be right? 8O :?:

Why is snd at the end like that?
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Fri Nov 08, 2002 10:55 pm    Post subject: Reply with quote

lx wrote:
Darthanubis wrote:
Does nothing for me as I have stated above.


Adding
alias snd-card-01 off
alias snd-card-02 off
alias snd-card-03 off
alias snd-card-04 off
alias snd-card-05 off
alias snd-card-06 off
alias snd-card-07 off

where did you state that?? :wink:

cya lX.


All this did was turn off the modules loaded with warnings messages I was gettng at boot. Thanks for that. But the modprobe: modprobe: Can't find snd cards 1-7 errors remain.

Also removing the "_" does nothing to changes this as well. :x
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Sat Nov 09, 2002 10:08 am    Post subject: Reply with quote

Darthanubis wrote:


All this did was turn off the modules loaded with warnings messages I was gettng at boot. Thanks for that. But the modprobe: modprobe: Can't find snd cards 1-7 errors remain.

Also removing the "_" does nothing to changes this as well. :x


Well I have snd-card-1 etc not snd-card-01 but don't think it will solve your problem.

Only thing I find about modprobe and alsa is in the alsasound script in /etc/init.d/:
Code:

  ebegin "Initialising ALSA."

  drivers="`/sbin/modprobe -c | \
    grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | \
    awk '{print $3}'`"
  for i in $drivers; do
    if [ "$i" != off ]; then
      einfon "Starting sound driver: $i "
      /sbin/modprobe $i
      eend 0
    fi
  done


If snd-card-[[:digit]] is set to off modprobe ain't called, maybe you're using an older/different script cause in my startup modprobe snd-card-1 etc is never called, it always calls /sbin/modprobe snd-emu10k1 or whatever the alias is pointing at.

Check the startup script / what version of alsa-driver are you running c.q. what script did you add to the boot runlevel?,

Hope you fix it,

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
bps7j
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2002
Posts: 83
Location: Charlottesville, VA, USA

PostPosted: Sun Feb 02, 2003 6:57 pm    Post subject: Reply with quote

on my version of alsa, the snd_ can't be put on the front of either options mentioned above.

Code:
options snd major=116 cards_limit=1

_________________
There are only 10 kinds of people:
those who understand binary and those who don't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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