Page 1 of 1

How to fix sound on macbook

Posted: Tue Mar 05, 2024 4:46 pm
by janios
Hi, Just installed GhostBSD on this 2006 white macbook and everything works fine except the sound so, I've read some articles seen some vids of how to fix the sound issue even a few posts on the GhostBSD forums here. I still have no sound though so can someone help me get the sound working on this machine? this is what returns after issuing the following command:

~# cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC889A (Internal Analog 3.1/2.0)> (play/rec)
pcm1: <Realtek ALC889A (Rear Analog)> (play/rec) default
pcm2: <Realtek ALC889A (Rear Digital)> (play/rec)
No devices installed from userspace.

I don't really know exactly what it is saying but it does appear that I have have 3 options for Realtek ALC889A which im assuming is the soundcard the machine has. what else can i do to get sound working as i have already tried adding snd_uaudio="YES" to the /etc/rc.conf file rebooted and i still have no sound. Any other options i can try? thanks!

Re: How to fix sound on macbook

Posted: Wed Mar 06, 2024 7:01 am
by neville

Re: How to fix sound on macbook

Posted: Wed Mar 06, 2024 7:10 am
by chadbsd
An alternative is to use an USB audio adapter.

[Solved] How to fix sound on macbook

Posted: Thu Mar 07, 2024 12:20 pm
by janios
added the following to /boot/device.hints for speaker audio with the help of the info from link:

hint.hdaa.0.config="ovref"
hint.hdaa.0.gpio_config="0=set"
hint.hdaa.0.nid20.config="as=4 seq=15"

Added the following to the /etc/sysctl.conf

# cat /dev/sndstat
# -> pcm0: <Realtek ALC889A (Analog)> (play/rec)
# -> pcm1: <Realtek ALC889A (Rear Digital)> (play/rec)
# -> pcm2: <Realtek ALC889A (Rear Analog Headphones)> (play) default
# Below to set sound to pcm2 (rear analog headphones) on Mac Mini
dev.hdaa.0.gpio_config="0=set 1=set"
hw.snd.default_unit=2

Not sure I needed these few options in sysctl.conf but there there.

rebooted with sound through speakers & headphone jack, also microphone works. Oh and i did use a usb sound card while i had no sound and that worked too.

Thanks!