Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Feb 2022 18:10:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261692] /var/db/mixer[x]-state files are ignored
Message-ID:  <bug-261692-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261692

            Bug ID: 261692
           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=20
vol 77:77 bass 50:50 treble 50:50 pcm 75:75 mic 68:68 =3Drec 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:

# REQUIRE: FILESYSTEMS=20

to

# REQUIRE: FILESYSTEMS ntpdate

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.

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



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