From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 23:03:53 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21FEF16A4CE for ; Wed, 2 Feb 2005 23:03:53 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6136043D1F for ; Wed, 2 Feb 2005 23:03:52 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j12N3YEA013531; Wed, 2 Feb 2005 23:03:36 GMT Message-ID: <42015D60.5040904@cis.strath.ac.uk> Date: Wed, 02 Feb 2005 23:08:16 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050202) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Friedrich References: <200502022105.j12L5w9Z027219@mail-core.space2u.com> <200502021709.50302.FreeBSD@insightbb.com> In-Reply-To: <200502021709.50302.FreeBSD@insightbb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: Tom Huppi cc: freebsd-questions@freebsd.org cc: Joachim Dagerot Subject: Re: Getting a microphone to work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 23:03:53 -0000 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