From stuartb@4gh.net  Wed Mar 16 02:52:49 2005
Return-Path: <stuartb@4gh.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 022B416A4CE
	for <freebsd-gnats-submit@freebsd.org>; Wed, 16 Mar 2005 02:52:49 +0000 (GMT)
Received: from smtp04.mrf.mail.rcn.net (smtp04.mrf.mail.rcn.net [207.172.4.63])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8A03043D1F
	for <freebsd-gnats-submit@freebsd.org>; Wed, 16 Mar 2005 02:52:48 +0000 (GMT)
	(envelope-from stuartb@4gh.net)
Received: from 208-59-171-35.c3-0.slvr-ubr2.lnh-slvr.md.cable.rcn.com (HELO freeman.4gh.net) (208.59.171.35)
  by smtp04.mrf.mail.rcn.net with ESMTP; 15 Mar 2005 21:52:46 -0500
Received: by freeman.4gh.net (Postfix, from userid 1001)
	id C8B4170; Tue, 15 Mar 2005 21:52:47 -0500 (EST)
Message-Id: <20050316025247.C8B4170@freeman.4gh.net>
Date: Tue, 15 Mar 2005 21:52:47 -0500 (EST)
From: Stuart Barkley <stuartb@4gh.net>
Reply-To: Stuart Barkley <stuartb@4gh.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Allow mixer_enable="NO" in rc.conf
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         78906
>Category:       conf
>Synopsis:       [patch] Allow mixer_enable="NO" in rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-rc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 16 03:00:11 GMT 2005
>Closed-Date:    Thu May 17 13:17:24 GMT 2007
>Last-Modified:  Thu May 17 13:17:24 GMT 2007
>Originator:     Stuart Barkley
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD freeman.4gh.net 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Tue Mar 8 19:56:41 EST 2005 stuartb@freeman.4gh.net:/usr/src/sys/i386/compile/4GH i386
>Description:
/etc/rc.d/mixer always restores mixer settings to state preserved on
the last shutdown.

The enclosed patch allows the user to disable this functionality.
>How-To-Repeat:
Set mixer to any specific setting.
After rebooting you will find the same mixer settings.

Note: I have a small /usr/local/etc/rc.d script I use which is similar to
/etc/rc.d/mixer, except it doesn't save the mixer settings on shutdown.
Instead the mixer settings are always set to a known and desired base setting.

Note: The /etc/rc.d/mixer script does not preserve the record source
settings across reboots.

>Fix:

--- /etc/rc.d/mixer.orig	Thu Nov  4 20:27:17 2004
+++ /etc/rc.d/mixer	Tue Mar  8 21:34:11 2005
@@ -34,6 +34,7 @@
 . /etc/rc.subr
 
 name="mixer"
+rcvar=`set_rcvar`
 stop_cmd="mixer_stop"
 start_cmd="mixer_start"
 reload_cmd="mixer_start"
>Release-Note:
>Audit-Trail:

From: Stuart Barkley <stuartb@4gh.net>
To: freebsd-gnats-submit@FreeBSD.org,
	Stuart Barkley <stuartb@4gh.net>
Cc:  
Subject: Re: conf/78906: Allow mixer_enable="NO" in rc.conf
Date: Tue, 15 Mar 2005 22:10:26 -0500 (EST)

 ---------- Forwarded message ----------
 Date: Tue, 15 Mar 2005 22:08:08 -0500 (EST)
 From: Stuart Barkley <stuartb@4gh.net>
 Cc: current@freebsd.org
 Subject: Re: rcNG changes/aditions
 
 On Mon, 14 Mar 2005 at 23:06 +0100, Jose M Rodriguez wrote:
 
 > update to PR conf/75137 (sound modules): I rework this adding support
 > for preloaded modules to /etc/rc.subr
 
 This prompted me to submit a one line patch of my own for
 /etc/rc.d/mixer which allows you to turn off this functionality in
 your rc.conf file.
 
 See:
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=78906
 
 And I just now realize that this patch is slightly incomplete.  It
 should also patch /etc/defaults/rc.conf to include:
 
 mixer_enable="YES"	# Preserve mixer state across reboots
 
 so that the previous behavior still occurs by default.
 
 Stuart Barkley
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Wed Feb 22 02:22:52 UTC 2006 
Responsible-Changed-Why:  

Bring to the attention of the list 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78906 
State-Changed-From-To: open->closed 
State-Changed-By: mtm 
State-Changed-When: Thu May 17 13:15:48 UTC 2007 
State-Changed-Why:  
This is fixed in rev. 1.7 of rc.d/mixer. 
I have emailed the committer to MFC it to RELENG_6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78906 
>Unformatted:
