New to Pure [Free]BSD And Having Some Issues

It depends :)

For now, try catting the random to dsps

Do you have sndio? According to wiki, it may not work well with virtual_oss.

Are you sure your output / cables work as expected? No power issues? ;)

I have a Realtec ALC sound card and it works as expected, so if yours is not broken it should work too, so check if you don't have any spelling mistakes in configs :)
I've done basically everything besides allowing one of you onto my system via SSH and it's getting a bit aggravating that something like audio is being such a pain in my ass... lol
 
Do you have snd_hda loaded? What's the output of kldstat -v | grep snd?

Don't worry, you can always reinstall FreeBSD 13 without KDE and Chromium and see if it works then :)
shiggitay@VocaloidHavenFreeBSD:~ % kldstat -v | grep snd
263 hdac/snd_hda
262 pci/snd_hda
261 hdaa/snd_hda_pcm
260 hdacc/snd_hda
259 pci/snd_via8233
258 pci/snd_ich
257 pci/snd_es137x
256 emu10kx/snd_emu10kx_midi
255 emu10kx/snd_emu10kx_pcm
254 pci/snd_emu10kx
253 csa/snd_csapcm
252 pci/snd_csa
251 pci/snd_cmi
37 1 0xffffffff8368a000 e538 snd_uaudio.ko (/boot/kernel/snd_uaudio.ko)
 
This is nothing technical, but can you try running cava while playing audio? If it at least shows activity, check your connections, outputs and speakers; sound might be going somewhere. If it's dead, continue troubleshooting drivers etc
 
The KDE Plasma port currently installs PulseAudio by default so it's probably running on your system. To control its volume levels you need to use audio/plasma5-plasma-pa, not KMix (which is for native OSS volume control). If you still can't get any sound, try disabling PulseAudio.
 
TLDR
While playing audio check if you get sound in any of the outputs including HDMI.
I also see you have soundblaster modules loaded not sure why.
I do not use FreeBSD as desktop or for sound this is only a guess.
 
Check (system) mixer settings as well, I remember having had 0 volume on several installs due to that.
This is what I have, be sure to check vol, pcm and ogain. Maybe others.
Code:
> mixer  
Mixer vol      is currently set to  87:87
Mixer pcm      is currently set to 100:100
Mixer speaker  is currently set to 100:100
Mixer line     is currently set to 100:100
Mixer mic      is currently set to 100:100
Mixer mix      is currently set to 100:100
Mixer rec      is currently set to 100:100
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to 100:100
Recording source: speaker
If the problem is related to PulseAudio though I won't be able to help you, I've made sure to compile all my local ports without support or dependency on it. Not that you should have to, plenty of people use packages without issues.
 
You have the same drivers loaded as me, so sound should work out of the box.
To gather more info, check pulseaudio like bsduck suggested. If it doesn't help:
Run NomadBSD and check if sound works there:
If it works: 1) Try to reinstall FreeBSD step by step, and check every time if sound works on the dsp* outputs, and write down the outputs of 'cat /dev/sndstat'.
If it doesn't work: 2) Run some other operating system and check if sound works there.

If 2) works, turn off your computer, unplug it completely from any power source and wait for a few minutes (you can also push power button few times). Next reconnect it, and check if sound on FreeBSD still doesn't work. If it doesn't, follow 1).
If 2) doesn't work, probably your hardware doesn't work properly, so you should fix it first.
 
You have the same drivers loaded as me, so sound should work out of the box.
To gather more info, check pulseaudio like bsduck suggested. If it doesn't help:
Run NomadBSD and check if sound works there:
If it works: 1) Try to reinstall FreeBSD step by step, and check every time if sound works on the dsp* outputs, and write down the outputs of 'cat /dev/sndstat'.
If it doesn't work: 2) Run some other operating system and check if sound works there.

If 2) works, turn off your computer, unplug it completely from any power source and wait for a few minutes (you can also push power button few times). Next reconnect it, and check if sound on FreeBSD still doesn't work. If it doesn't, follow 1).
If 2) doesn't work, probably your hardware doesn't work properly, so you should fix it first.
It's not that important for me to have FreeBSD working, but as I've said a few times already... my system is fully functional with audio etc on everything except FreeBSD so far... it's strange. I'll revisit it at some point, but for now I'll let it sit.
 
37 1 0xffffffff8368a000 e538 snd_uaudio.ko (/boot/kernel/snd_uaudio.ko)
I don't have that last line, no idea if that module is required for your hardware. Also, try disconnecting any other USB headsets, bluetooth headphones, etc. just to be sure the sound is not rerouted to any of those.
 
… going to post this on FreeBSD's subreddit as well …

Thanks; New/Fresh FreeBSD Install with no Audio and no Grub entry to chainload from Linux

… custom AMD Ryzen 9 build … AMD Radeon RX 480 4GB GPU that has documented issues with X and GNOME and other stuff … audio chipset according to lspci is: "[AMD] Starship/Matisse HD Audio Controller". …

Would the fact that I'm not running on Intel hardware cause any issues? I'm 100% AMD.

I don't know. Anyone?

I actually just removed virtual_oss... Do I need it?

No.

I do have a configuration for virtual_oss, but I rarely experiment with it.

… verified on a 13-release-p6 system, with chromium 94.0.4606.81 from packages that sound works with a USB headset. Firefox sound also works. …

Here (Intel):

Code:
% pkg info -x chromium firefox
chromium-94.0.4606.81_3
firefox-95.0.2_2,2
% freebsd-version -kru ; uname -aKU
14.0-CURRENT
14.0-CURRENT
14.0-CURRENT
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #1 main-n252531-0ce7909cd0b-dirty: Wed Jan 19 13:29:34 GMT 2022     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64 1400048 1400048
%

Sound to USB is audible.

Sound from USB was recently inaudible through Chromium, although ?‍♂️ this might have been my failure to notice a big red glowing button dangling a few inches below a headset that I had not previously used:


… use audio/plasma5-plasma-pa, not KMix (which is for native OSS volume control).

☑ and plasma5-plasma-pa should be present with a regular installation of kde5, since <https://github.com/freebsd/freebsd-ports/commit/7dc8045a63930a3a520e17723139003867b58c39>.

If you still can't get any sound, try disabling PulseAudio.

For reference:

… Open /usr/local/etc/pulse/client.conf and uncomment the line with
Code:
autospawn=yes
and set it to no.

Then relog, restart or pulseaudio -k and then it should now no longer appear.
 
Back
Top