alsa and no sound

Pavel Rozenboim pavelr at coresma.com
Sun Aug 3 08:28:29 UTC 2003


> -----Original Message-----
> From: Mike [mailto:mike at redtux.demon.co.uk]
> Sent: Sun, August 03, 2003 3:38 AM
> To: severn
> Subject: Re: alsa and no sound
> 
> 
> On Sat, 2003-08-02 at 16:04, Joel Young wrote:
> > From: Mike <mike at redtux.demon.co.uk>
> > >On Sat, 2003-08-02 at 04:58, Gerald Henriksen wrote:
> > >> By default alsa mutes the inputs and outputs on a 
> soundcard and you
> > >> must use alsamixer to unmute them (m key) as well as increase the
> > >> level as necessary.
> > >thanks
> > > 
> > > now - any idea how to stop it doing it?
> > 
> > How is:
> > 
> > post-install sound-card-0 /usr/sbin/alsactl restore 
> >/dev/null 2>&1 || :
> > pre-remove sound-card-0 /usr/sbin/alsactl store >/dev/null 2>&1 || :
> > 
> > in modules.conf
> > 
> 
> tried this (but in /etc/modprobe.conf - using 2.6-test2)
> 
> what I get is
> ignoring badline at for both of these commands ie:
> 
> Aug  3 01:16:14 localhost modprobe: WARNING: 
> /etc/modprobe.conf line 14:
> ignoring bad line starting with 'pre-remove'
> Aug  3 01:16:36 localhost modprobe: WARNING: 
> /etc/modprobe.conf line 13:
> ignoring bad line starting with 'post-install'

The syntax of modprobe.conf is different from that of modules.conf - there
are no pre-install/pre-remove statements.

Try using something like this:
install sound-card-0 /sbin/modprobe --ignore-install sound-slot-0 && {
/usr/sbin/alsactl restore >/dev/null 2>&1 || : }

remove sound-card-0 {/usr/sbin/alsactl store >/dev/null 2>&1 || : };
/sbin/modprobe -r --ignore-remove sound_slot_0


> 
> 
> > I think that covers what you want.
> > 
> > Joel
> > 
> > 
> > --
> > Rhl-beta-list mailing list
> > Rhl-beta-list at redhat.com
> > http://www.redhat.com/mailman/listinfo/rhl-beta-list
> 
> 
> --
> Rhl-beta-list mailing list
> Rhl-beta-list at redhat.com
> http://www.redhat.com/mailman/listinfo/rhl-beta-list
> 





More information about the test mailing list