Resolve disappearing audio devices on macOS/hackintosh

Published May 2, 2019, by Tommy George

Posting this to hopefully help me remember…

On my current hackintosh build, occasionally the audio drivers (do we say “drivers” in mac-land?) sometimes glitch out during sleep. So, when the machine wakes again, there’s either no audio or the audio device has completely disappeared from the list.

I recently ran into this issue again. So I did some searching, found a resolution, and thought “yes, I should just make this a shell alias!”

Come to find out, when I went to edit my aliases, I’d already made an alias for exactly this! 🤦‍

I found this SuperUser answer to resolve it for me:

sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext

Note that with the sudo in there, you’ll be entering your password.

Other commands have worked to reset audio when I’ve had trouble with Logic Pro, but this is the only thing that brings the devices fully back online without rebooting the machine.