freebsd 13.2 system
If you connect headphones, the sound continues to go to the laptop's speakers.
At random, I realized that if you stop the sound and write
then headphones will work, if 1 - speakers. Can I make it switch automatically?
If you connect headphones, the sound continues to go to the laptop's speakers.
At random, I realized that if you stop the sound and write
Code:
#sysctl hw.snd.default_unit=2
Code:
# cat /dev/sndstat
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <Realtek ALC236 (Analog)> (play/rec) default
pcm2: <Realtek ALC236 (Right Analog Headphones)> (play)
No devices installed from userspace.
Code:
Apr 2 17:12:43 F3ja kernel: hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
Apr 2 17:12:43 F3ja kernel: hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
Apr 2 17:12:43 F3ja kernel: pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
Apr 2 17:12:43 F3ja kernel: hdacc1: <Realtek ALC236 HDA CODEC> at cad 0 on hdac1
Apr 2 17:12:43 F3ja kernel: hdaa1: <Realtek ALC236 Audio Function Group> at nid 1 on hdacc1
Apr 2 17:12:43 F3ja kernel: pcm1: <Realtek ALC236 (Analog)> at nid 20 and 25 on hdaa1
Apr 2 17:12:43 F3ja kernel: pcm2: <Realtek ALC236 (Right Analog Headphones)> at nid 33 on hdaa1