From owner-freebsd-questions@FreeBSD.ORG Fri Apr 14 21:42:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8720716A404 for ; Fri, 14 Apr 2006 21:42:57 +0000 (UTC) (envelope-from daeg@houston.rr.com) Received: from ms-smtp-02.texas.rr.com (ms-smtp-02.texas.rr.com [24.93.47.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27ACE43D46 for ; Fri, 14 Apr 2006 21:42:57 +0000 (GMT) (envelope-from daeg@houston.rr.com) Received: from cpe-24-167-65-111.houston.res.rr.com (cpe-24-167-65-111.houston.res.rr.com [24.167.65.111]) by ms-smtp-02.texas.rr.com (8.13.4/8.13.4) with ESMTP id k3ELgtrA008769 for ; Fri, 14 Apr 2006 16:42:55 -0500 (CDT) From: David J Brooks Organization: KC5WNK To: freebsd-questions@freebsd.org Date: Fri, 14 Apr 2006 16:42:54 -0500 User-Agent: KMail/1.9.1 References: <200604141441.20388.daeg@houston.rr.com> <20060414133246.A81702@home.ephemeron.org> <200604141621.45202.daeg@houston.rr.com> In-Reply-To: <200604141621.45202.daeg@houston.rr.com> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(=?iso-8859-1?q?gxJxxc=0A=09R=09nSNPNr*/=5E=7EStawWU9KDJ-CT0k=24f=23?=@t2^K&BS_f|?ZV/.7Q MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200604141642.54624.daeg@houston.rr.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: persistent mixer volume levels (solved) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 21:42:57 -0000 On Friday 14 April 2006 16:21, David J Brooks wrote: > Curious! I wrote up an rc.d script that seemes to work fine on reboot. I > get console messages confirming that volume has been changed. But as soon > as I log in, either as root or a normal user, I type 'mixer' and it shows > the volume levels back where they were before. > > I'm guessing that there is something else either in rc.d or in the login > sequence that is setting the mixer after my script runs. Any ideas what > that might be? Heh.. I should have explored more before asking. It all comes down to /etc/rc.d/mixer. This script resets all the volume levels from a saved state. The way to change it, (with persistence) is to set the mixer levels manually, then run '/etc/rc.d/mixer stop' which saves the current state. Fortunately I named my unnecessary script 'volume' so that it hasn't overwritten the canonical /etc/rc.d/mixer script. :) David -- Sure God created the world in only six days, but He didn't have an established user-base.