Reset the Audio in MacOS to Re-Enable Audio Interface After Sleep

I've had this recurring problem with my audio interface, that's connected to my Macbook with USB. After my Macbook has gone to sleep, sometimes the audio interface just doesn't work. The only way to fix it was to unplug it and plug it back in. Not a huge operation, but I'm thinking that it will eventually wear out the connectors.

My first thought was to reset the USB subsystem. That proved harder than expected, and once I found how to do it (using the old defunct Xcode tool USB Prober) it didn't solve my problem.

The correct fix is to reset the Audio subsystem in MacOS. How to do this is... a bit different on different versions of MacOS. There are three ways, each of which has worked and not worked as I've tried them. The one that's working for me currently in Sonoma is the first one in the list below. The one that was working in Ventura, the second one, has stopped working for me in Sonoma (I get access denied even when run under sudo). So my tip is - try them all until you find which one is right for your version:

sudo killall coreaudiod

sudo launchctl stop com.apple.audio.coreaudiod && sudo launchctl start com.apple.audio.coreaudiod

sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod

With this, I no longer have to keep unplugging and replugging my audio interface to get my audio back.

comments powered by Disqus
Find me on Mastodon