Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 21:52:47 -0500 (EST)
From:      Stuart Barkley <stuartb@4gh.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/78906: Allow mixer_enable="NO" in rc.conf
Message-ID:  <20050316025247.C8B4170@freeman.4gh.net>
Resent-Message-ID: <200503160300.j2G30BtO036605@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         78906
>Category:       conf
>Synopsis:       Allow mixer_enable="NO" in rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 16 03:00:11 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050316025247.C8B4170>