Hello everyone, I am a long-time Gentoo Linux user that I use as the main OS on all my home computers. However, I have long since come to appreciate FreeBSD and currently have it installed in version 14.1-RELEASE and am trying to use it exclusively under Wayland with Wayfire compositor (base system + wayland + wayfire, without xorg). Everything works fine, except for the audio that I cannot activate and make work. I apologize if I will be a bit verbose in the following, but I think a simple formulation can be useful for those FreeBSD beginners like me who want to use it at its best.
My reference computer gives me these responses on pcm when I query with “dmesg | grep pcm”:
pcm0: <NVIDIA (0x0080) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x0080) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x0080) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm3: <Rtoealtek ALC1220 (Rear Analog 5.1/2.0)> at nid 20,22,21 and 24,26 on hdaa1
pcm4: <Realtek ALC1220 (Front Analog)> at nid 27 and 25 on hdaa1
pcm5: <Realtek ALC1220 (Rear Digital)> at nid 30 on hdaa1
pcm6: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa2
If I query with cat /dev/sndstat, I get in response:
pcm0: <NVIDIA (0x0080) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0080) (HDMI/DP 8ch)> (play)
pcm2: < NVIDIA (0x0080) (HDMI/DP 8ch)> (play)
pcm3: <Realtek ALC1220 (Rear Analog 5.1/2.0)> (play/rec) default
pcm4: <Realtek ALC1220 (Front Analog)> (play/rec)
pcm5: <Realtek ALC1220 (Rear Digital)> (play)
pcm6: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
No devices installed from userspace.
In /boot/loader.conf I have:
kern.vty=vt
hw.vga.textmode=3
snd_driver_load="YES"
In /etc/rc.conf:
........
kld_list= "i915kms"
seatd_enable="YES"
dbus_enable="YES"
In /etc/sysctl.conf: hw.snd.default_unit=3
So I have an NVIDIA graphics card (that I don't use) that has 3 pcm, and a sound card which pciconf tells me about: 'Intel Corporation' '200 Series PCH HD Audio' subclass HDA.
What should I do to have audio output, especially to listen to youtube.com? I mean in particular "how" and "where" to set every cad and nid (in /boot/device.hints?). I installed Pulseaudio. I have no response with beeps and other tests. I would like to be able to use the speakers of the monitor (HDMI).
Thanks in advance to anyone who can help me with simple suggestions.
My reference computer gives me these responses on pcm when I query with “dmesg | grep pcm”:
pcm0: <NVIDIA (0x0080) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x0080) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x0080) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm3: <Rtoealtek ALC1220 (Rear Analog 5.1/2.0)> at nid 20,22,21 and 24,26 on hdaa1
pcm4: <Realtek ALC1220 (Front Analog)> at nid 27 and 25 on hdaa1
pcm5: <Realtek ALC1220 (Rear Digital)> at nid 30 on hdaa1
pcm6: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa2
If I query with cat /dev/sndstat, I get in response:
pcm0: <NVIDIA (0x0080) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0080) (HDMI/DP 8ch)> (play)
pcm2: < NVIDIA (0x0080) (HDMI/DP 8ch)> (play)
pcm3: <Realtek ALC1220 (Rear Analog 5.1/2.0)> (play/rec) default
pcm4: <Realtek ALC1220 (Front Analog)> (play/rec)
pcm5: <Realtek ALC1220 (Rear Digital)> (play)
pcm6: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
No devices installed from userspace.
In /boot/loader.conf I have:
kern.vty=vt
hw.vga.textmode=3
snd_driver_load="YES"
In /etc/rc.conf:
........
kld_list= "i915kms"
seatd_enable="YES"
dbus_enable="YES"
In /etc/sysctl.conf: hw.snd.default_unit=3
So I have an NVIDIA graphics card (that I don't use) that has 3 pcm, and a sound card which pciconf tells me about: 'Intel Corporation' '200 Series PCH HD Audio' subclass HDA.
What should I do to have audio output, especially to listen to youtube.com? I mean in particular "how" and "where" to set every cad and nid (in /boot/device.hints?). I installed Pulseaudio. I have no response with beeps and other tests. I would like to be able to use the speakers of the monitor (HDMI).
Thanks in advance to anyone who can help me with simple suggestions.