Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2024 12:51:25 -0400
From:      Steven Friedrich <freebsdlouisville@gmail.com>
To:        =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
Cc:        Dave Cottlehuber <dch@skunkwerks.at>, FreeBSD Stable <FreeBSD-stable@freebsd.org>
Subject:   Re: freebsd hdmi audi
Message-ID:  <d4f7cbcb-7374-478e-8158-8c099fe2f7b6@gmail.com>
In-Reply-To: <86frsp17jc.fsf@ltc.des.dev>
References:  <b15c2e5a-eaa6-4846-9740-0be7b3bf6c09@gmail.com> <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> <bf4ebc5a-687b-4326-a711-6f8640048442@gmail.com> <86frsp17jc.fsf@ltc.des.dev>

next in thread | previous in thread | raw e-mail | index | archive | help
I already have that sir:

cat /etc/sysctl.conf.local
net.local.stream.recvspace=65536
net.local.stream.sendspace=65536
# net.inet.ip.fw.verbose_limit=5
hw.snd.default_unit=2
hw.snd.verbose=2

Also, I have written a testSound shell script:

cat testSound
#!/bin/sh
echo "Begin `uname -s` `basename -s .sh $0` on `uname -n`"
echo "************************************************************"
cat /dev/sndstat
default_unit=`sysctl hw.snd.default_unit|awk '{print $2}'`
echo -e "\nDefault Sound device=$default_unit\n"
echo /dev/dsp$default_unit
mixer -f /dev/mixer0 vol=100 rec=0
mixer -f /dev/mixer1 vol=100 mic=0 rec=0
mixer -f /dev/mixer2 vol=100
# beep -g 100 -D 2000 -d /dev/dsp$default_unit
# beep -g 100 -D 2000 -d /dev/dsp0
# beep -g 100 -D 2000 -d /dev/dsp1
# beep -g 100 -D 2000 -d /dev/dsp2
for dsp in /dev/dsp*
do
#echo -n "$dsp  "
cat /dev/sndstat|grep -m 1 pcm`echo -n $dsp|cut -c 9-`; beep -g 100 -D 
2000 -d $dsp
done
echo "End   `uname -s` `basename -s .sh $0` on `uname -n`"
echo "************************************************************"

I get sound out of the rear 1/8" and front 1/8" jacks, but not hdmi.  I 
can also boot cinnamoin mint or kde neon and I get audio out of hdmi on 
those OSes.

My speaker system is plugged into the back of my monitor and only 
freebsd fails to provide sound out of it.

I've been trying to get freebsd to fix this for years.  I now use linux 
for desktop use because of this.  I prefer freebsd, and am quite 
proficient at the shell, but I need a GUI for a system to be truly usable.





On 7/4/24 11:49, Dag-Erling Smørgrav wrote:
> Steven Friedrich <freebsdlouisville@gmail.com> writes:
>> Installed devices:
>> pcm0: <Realtek ALC671 (Rear Analog)> on hdaa0 (1p:1v/1r:1v)
>> [...]
>> pcm1: <Realtek ALC671 (Analog)> on hdaa0 (1p:1v/1r:1v)
>> [...]
>> pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v) default
>> [...]
> add
>
>      hw.snd.default_unit=2
>
> to /etc/sysctl.conf and reboot.
>
> DES



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d4f7cbcb-7374-478e-8158-8c099fe2f7b6>