Solved /boot/loader.conf doesn't set "hw.snd.default_unit"

Hello!

Reference = https://forums.freebsd.org/threads/...ut-how-do-i-configure-sound-on-startup.36362/

I am trying to make my speakers work at boot.
I did the same thing (I think...) with RELEASE and it worked, but not now with STABLE.

/boot/loader.conf:
Code:
nvidia_load="Yes"
hw.usb.uaudio.default_channels=6
hw.snd.default_unit=7
snd_uaudio_load="YES"

cat /dev/sndstat
Code:
pcm0: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0083) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC1150 (Rear Analog 7.1/2.0)> (play/rec) default
pcm5: <Realtek ALC1150 (Front Analog)> (play/rec)
pcm6: <Realtek ALC1150 (Rear Digital)> (play)
pcm7: <USB audio> (play)

doas sysctl hw.snd.default_unit
Code:
hw.snd.default_unit: 4

I don't why the default is still 4.

May someone tell me what am I doing wrong?

Merci.

Fabien
 
sometimes alsamixer is a good friend, i.e.

.asoundrc
Code:
# make sure the USB microphone is picked up
#pcm.!default {
#pcm.!default front:Headset {
pcm.!default {
          type asym
          playback.pcm {
                  type plug
                  slave.pcm "hw:1,0"
          }
          capture.pcm {
                  type plug
                  slave.pcm "hw:1,0"
          } 
}
# pcm.!default {

might test: mpg123 http://listen.radionomy.com/mylenefarmerwebradio
if you send it to card 1 (hw:1,0)

beaucoup.
 
Thank you, I will try this.

But what is happening to my /boot/loader.conf, is he lazy?
 
Alsamixer wasn't helpfull to me.

I add hw.snd.default_unit=7 in /etc/sysctl.conf and it works.

I think I have to read more about the .conf files, cool!
 
Back
Top