Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [SLE] Autoloading of sound modules
  • From: Sunny <sloncho@xxxxxxxxx>
  • Date: Mon, 7 Nov 2005 16:41:59 +0000 (UTC)
  • Message-id: <e7eeb230511070841m471639d4qaaeaa745a97cd8ee@xxxxxxxxxxxxxx>
On 11/7/05, Paul W. Abrahams <abrahams@xxxxxxx> wrote:
>
> In fact I do have a problem with loading the sound problems -- or even with
> using Yast to configure the soundcard. Yast indicates the following sound
> cards (under Hardware/Sound):
>
> Number Card Model
> SIS S17012
> Not configured Sound Controller
>
> If I try to edit the first card, Yast simply returns me to the main screen.
> If I try to delete it, nothing happens. If I try to edit the second card, I
> get an error.
>
> So how can I set Yast on the path to goodness and righteousness? And after
> I've done that, how can I force autoloading of the necessary modules?
>
> More generally, if a module isn't getting loaded on startup, how should I
> specify that it should be loaded? I could always insert explicit modprobe
> commands into a startup file, but that seems to me to be a dirty way of
> solving the problem. Somewhere there ought to be a list of modules that I
> could add to.
>
> And by the way, I've done alsaconf many times. It seems to work.
>
> Paul
>

I had this problem with an old ISA sound card in one box. YaST failed
to configure this. There is a bug report on opensuse.org, but it is
not fixed yet.

Anyway, based on a post on this list, I tried alsaconf, and it did
configure the card. It'll ask if you want the appropriate entries in
modprobe.d to be created. Say yes.

It created for me:
1. /etc/modprobe.d/sound :
alias snd-card-0 snd-sb16
alias sound-slot-0 snd-sb16
options snd-sb16 isapnp=0

2. /etc/sysconfig/hardware/hwcfg- (note it ends up with the dash):
MODULE='snd-sb16'
STARTMODE='auto'

Rename hwcfg- to hwcfg-static-xxxx, where xxxx is whatever you want,
in my case I named it sb16, so now i had the file:
/etc/sysconfig/hardware/hwcfg-static-sb16

The coldplug system will load any module, which is in
hwcfg-static-xxxxx files under /etc/sysconfig/hardware.

This solved the problem for me, now the module is loaded on startup
and I have sound.

Cheers

--
Svetoslav Milenov (Sunny)

< Previous Next >