Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl

2024-09-29 Thread Tomoaki AOKI
On Sun, 29 Sep 2024 17:24:00 +0100 Jamie Landeg-Jones wrote: > Christos Margiolis wrote: > > > Is there a reboot involved here? If not, then /etc/sysctl.conf is not > > read again, so it makes sense that it falls back to the defaults. > > May I humbly suggest that whilst it make sense to us wh

Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl

2024-09-29 Thread Jamie Landeg-Jones
Alban Hertroys wrote: > Is there a way to persist those settings when re-attaching the device? Have a look at "man devd", and the sample files in /etc/devd.conf and /etc/devd/* I think this should do what you want.

Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl

2024-09-29 Thread Jamie Landeg-Jones
Christos Margiolis wrote: > Is there a reboot involved here? If not, then /etc/sysctl.conf is not > read again, so it makes sense that it falls back to the defaults. May I humbly suggest that whilst it make sense to us who know how FreeBSD works, it doesn't make sense to a casual user. I guess

Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl

2024-09-29 Thread Christos Margiolis
Hello Alban, I am the author of the patches mentioned. Alban Hertroys wrote: > I have a number of sysctl’s in /etc/sysctl.conf to tune my audio output: > > hw.snd.default_unit=2 > hw.snd.maxautovchans=0 > dev.pcm.2.play.vchans=0 > dev.pcm.2.bitperfect=1 > > These do get set properly after booti

uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl

2024-09-29 Thread Alban Hertroys
Hello, I am generally rather happy with this change in 14.1-RELEASE: "Audio now supports asynchronous device detach. This greatly simplifies hot plugging and unplugging of things such as USB headsets, and eases use of PulseAudio in cases that require operating system sleep and wake (suspend and