Skip to content

Instantly share code, notes, and snippets.

@felipecsl
Last active November 8, 2025 16:10
Show Gist options
  • Select an option

  • Save felipecsl/5177790 to your computer and use it in GitHub Desktop.

Select an option

Save felipecsl/5177790 to your computer and use it in GitHub Desktop.
Restart Mac OS X coreaudio daemon. Useful if you cannot change the audio output device to Airplay.
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
# or...
sudo killall coreaudiod
@ishar19
Copy link

ishar19 commented Jul 29, 2024

sudo killall coreaudiod

Worked for me, in M2 PRO 14", pc could sense the jack but audio was not coming, got fixed after the command

@etc
Copy link

etc commented Aug 27, 2024

sudo killall coreaudiod AirPlayXPCHelper

Thank you so much @stefanhinker this is—finally—what fixed the issue for me.

@z3rodarkbeing
Copy link

I used to have it saved in my notes. I’m glad I found it here.

sudo killall coreaudiod

Worked perfectly. This issue is so annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment