Subject: misc/21023: mixerctl rc.d script isn't documented
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cube@cubidou.net>
List: netbsd-bugs
Date: 04/05/2003 13:47:38
>Number:         21023
>Category:       misc
>Synopsis:       mixerctl rc.d script isn't documented
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 05 03:48:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Quentin Garnier
>Release:        NetBSD 1.6Q
>Organization:
Quentin Garnier - cube@cubidou.net
"Feels like I'm fiddling while Rome is burning down.
Should I lay my fiddle down and take a rifle from the ground ?"
Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.
>Environment:
System: NetBSD padme 1.6Q NetBSD 1.6Q (NVIDIA_ACPI-$Revision: 1.3 $) #31: Thu Mar 20 13:54:34 CET 2003 cube@padme:/home/cube/src/nv-netbsd/netvidia/src/sys/arch/i386/compile/NVIDIA_ACPI i386
Architecture: i386
Machine: i386
>Description:
	mixerctl.conf(5) says that variables are set at boot time, but
	that only happens if you set mixerctl=YES in your rc.conf.
	Additionally, there is no mention of the mixerctl_mixers
	variable to have settings saved and restored through
	reboots.
>How-To-Repeat:
>Fix:
Index: mixerctl.conf.5
===================================================================
RCS file: /cvsroot/src/share/man/man5/mixerctl.conf.5,v
retrieving revision 1.5
diff -u -r1.5 mixerctl.conf.5
--- mixerctl.conf.5	2003/02/14 15:20:20	1.5
+++ mixerctl.conf.5	2003/04/05 11:45:24
@@ -25,7 +25,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 2, 2002
+.Dd April 5, 2003
 .Dt MIXERCTL.CONF 5
 .Os
 .Sh NAME
@@ -48,6 +48,18 @@
 .Nm
 from the current mixer settings, execute:
 .Dl Ic mixerctl -a \*[Gt] /etc/mixerctl.conf
+.Pp
+Set
+.Sy mixerctl
+to YES in
+.Xr rc.conf 5
+to have the variables set at boot time.
+Additionnally, you can have the settings saved
+and restored for the devices of your choice
+by listing them in
+.Sy mixerctl_mixers
+in
+.Xr rc.conf 5 .
 .Sh FILES
 .Bl -tag -width /etc/mixerctl.conf -compact
 .It Pa /etc/mixerctl.conf
@@ -95,6 +107,7 @@
 .Ed
 .Sh SEE ALSO
 .Xr mixerctl 1
+.Xr rc.conf 5
 .Sh HISTORY
 The
 .Nm
Index: rc.conf.5
===================================================================
RCS file: /cvsroot/src/share/man/man5/rc.conf.5,v
retrieving revision 1.77
diff -u -r1.77 rc.conf.5
--- rc.conf.5	2003/03/10 22:47:44	1.77
+++ rc.conf.5	2003/04/05 11:45:25
@@ -32,7 +32,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd November 25, 2002
+.Dd April 5, 2003
 .Dt RC.CONF 5
 .Os
 .\" turn off hyphenation
@@ -310,6 +310,17 @@
 to calibrate touch panel device.
 Passes
 .Sy tpctl_flags .
+.It Sy mixerctl
+.Sq YES
+or
+.Sq NO .
+Read
+.Xr mixerctl.conf 5
+to set mixer values.
+List in
+.Sy mixerctl_mixers
+the devices whose settings are to be saved at shutdown and
+restored at start-up.
 .El
 .Ss System security setting
 .Bl -tag -width net_interfaces
>Release-Note:
>Audit-Trail:
>Unformatted: