Date: Wed, 02 Feb 2005 23:08:16 +0000 From: Chris Hodgins <chodgins@cis.strath.ac.uk> To: Steven Friedrich <FreeBSD@insightbb.com> Cc: Joachim Dagerot <jd@dagerot.com> Subject: Re: Getting a microphone to work Message-ID: <42015D60.5040904@cis.strath.ac.uk> In-Reply-To: <200502021709.50302.FreeBSD@insightbb.com> References: <200502022105.j12L5w9Z027219@mail-core.space2u.com> <Pine.BSF.4.58.0502021629030.21778@nuumen.pair.com> <200502021709.50302.FreeBSD@insightbb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Steven Friedrich wrote: > On Wednesday 02 February 2005 04:44 pm, Tom Huppi wrote: > >>BTW, does anyone know off-hand how to set 'mixer' settings as >>default (so I would not have to re-set them after a re-boot?) >> > > I don't know how you could do it automagically, but when you want to save the > settings, you could: > echo -n "mixer " > mixer.def && mixer -s >> mixer.def > > then do a chmod +x mixer.def > > and then load default setting by invoking ./mixer.def > > HTH Wrote a little shell script to drop into /usr/local/etc/rc.d. I hope someone finds it useful. :) Chris #!/bin/sh MIXERCMD=/usr/sbin/mixer DEVICE=/dev/mixer0 #OUTPUT=/dev/null OUTPUT=/dev/stdout # Set the mixer values here. VOL="vol 25:25" PCM="pcm 75:75" LINE="line 75:75" MIC="mic 0:0" CD="cd 75:75" REC="rec 0:0" OGAIN="ogain 50:50" LINE1="line1 50:50" PHIN="phin 0:0" PHOUT="phout 0:0" $MIXERCMD -f $DEVICE \ $VOL $PCM $LINE $MIC $CD $REC \ $OGAIN $LINE1 $PHIN $PHOUT > $OUTPUT
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42015D60.5040904>