How to fix sound on macbook

Support with sound and multimedia cards on GhostBSD
Post Reply
janios
Posts: 7
Joined: Tue Mar 05, 2024 4:15 pm

How to fix sound on macbook

Post 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!
User avatar
neville
Developer
Posts: 87
Joined: Fri Aug 13, 2021 10:27 am
Location: Japan

Re: How to fix sound on macbook

Post by neville »

chadbsd
Posts: 26
Joined: Thu Oct 05, 2023 8:53 pm

Re: How to fix sound on macbook

Post by chadbsd »

An alternative is to use an USB audio adapter.
janios
Posts: 7
Joined: Tue Mar 05, 2024 4:15 pm

[Solved] How to fix sound on macbook

Post 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!
Post Reply