[Bug 261693] /var/db/mixer[x]-state files are ignored

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 03 Feb 2022 18:10:35 UTC

            Bug ID: 261693
           Summary: /var/db/mixer[x]-state files are ignored
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: stuartinhavana@yahoo.com

Expected behaviour:

Adding values to a mixer state file such as this:

$ cat /var/db/mixer4-state 
vol 77:77 bass 50:50 treble 50:50 pcm 75:75 mic 68:68 =rec mic

should result in those values being set after a reboot.

Actual behaviour:

Values in /var/db/mixer4-state are ignored.

As a workaround I changed  /etc/rc.d/mixer to have:




with that change present the values were picked up on reboot:

$ mixer
Mixer vol      is currently set to  77:77
Mixer bass     is currently set to  50:50
Mixer treble   is currently set to  50:50
Mixer pcm      is currently set to  75:75
Mixer mic      is currently set to  68:68
Recording source: mic

It seems that /etc/rc.d/mixer runs before the /dev/mixer* files exist. In my
case the device is a usb one, but I don't think any of the others (eg built in
sound card) are present either.

You are receiving this mail because:
You are the assignee for the bug.