Hi guys,
I'm quite new to FreeBSD (long time Linux user (Slackware)) and I find it pretty amazing (I'm especially intrigued by ZFS). I was struggling with a few things but I managed to make them work eventually. There are, however, several things which still give me a hard time and one of them is this audio issue.
My Asus N750JV built-in speakers work OK but if I plug in external speakers the audio output isn't switched automatically. After a bit of searching I found that in FreeBSD these things are handled via sysctl(8). My
and
Setting hw.snd.default_unit to 2 works but I would really appreciate if this was done automatically. Setting this manually to 2 and then back to 1 every time is quite annoying. I tried to set hw.snd.default_auto to 2 but that didn't work. I wasn't able to google anything else. Please, how can I do this?
I'm quite new to FreeBSD (long time Linux user (Slackware)) and I find it pretty amazing (I'm especially intrigued by ZFS). I was struggling with a few things but I managed to make them work eventually. There are, however, several things which still give me a hard time and one of them is this audio issue.
My Asus N750JV built-in speakers work OK but if I plug in external speakers the audio output isn't switched automatically. After a bit of searching I found that in FreeBSD these things are handled via sysctl(8). My
sysctl -a | grep hw.snd
reads:
Code:
hw.snd.report_soft_formats: 1
hw.snd.report_soft_matrix: 1
hw.snd.latency: 5
hw.snd.latency_profile: 1
hw.snd.vpc_autoreset: 1
hw.snd.vpc_0db: 45
hw.snd.vpc_reset: 0
hw.snd.compat_linux_mmap: 0
hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_quality: 1
hw.snd.vpc_mixer_bypass: 1
hw.snd.verbose: 0
hw.snd.default_auto: 1
hw.snd.version: 2009061500/amd64
hw.snd.default_unit: 1
hw.snd.maxautovchans: 16
and
cat /dev/sndstat
Code:
Installed devices:
pcm0: <Intel (0x2807) (HDMI/DP 8ch)> (play)
pcm1: <Realtek (0x0668) (Internal Analog)> (play/rec) default
pcm2: <Realtek (0x0668) (Right Analog)> (play/rec)
pcm3: <Realtek (0x0668) (Right Digital)> (play)
Setting hw.snd.default_unit to 2 works but I would really appreciate if this was done automatically. Setting this manually to 2 and then back to 1 every time is quite annoying. I tried to set hw.snd.default_auto to 2 but that didn't work. I wasn't able to google anything else. Please, how can I do this?