alsa and no sound

Mike mike at redtux.demon.co.uk
Sun Aug 3 13:35:02 UTC 2003


On Sun, 2003-08-03 at 09:28, Pavel Rozenboim wrote:
> > -----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 || : }
> 
this bit does not seem to work - if I run alsactl restore from the
command line it works

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

for info this is my /etc/modprobe.conf


alias char-major-14 soundcore
alias char-major-14 sound
alias char-major-14-6 sndstat
alias char-major-10-1 mousedev
alias sound-card-0 snd-cs4236
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
install sound-card-0 {/usr/sbin/alsactl restore >/dev/null 2>&1 || :
};/sbin/modprobe --ignore-install sound_slot_0
remove sound-card-0 {/usr/sbin/alsactl store >/dev/null 2>&1 || :
};/sbin/modprobe -r --ignore-remove sound_slot_0

(I have experimented with the no working line)
> 
> > 
> > 
> > > 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
> > 
> 
> 
> --
> Rhl-beta-list mailing list
> Rhl-beta-list at redhat.com
> http://www.redhat.com/mailman/listinfo/rhl-beta-list





More information about the fedora-test-list mailing list