Skip to content

Instantly share code, notes, and snippets.

@jtorvald
Last active April 4, 2025 23:04
Show Gist options
  • Select an option

  • Save jtorvald/fa2311e7ab933e6a84cce9654caa45c3 to your computer and use it in GitHub Desktop.

Select an option

Save jtorvald/fa2311e7ab933e6a84cce9654caa45c3 to your computer and use it in GitHub Desktop.
Fix annoying popping crackling sound on the new MacBook Pro 16inch. Save this file and run it or copy and paste the onliner and run it in a terminal.
# if you don't understand how to save this file and execute it (open reset-audio.command)
# then copy and paste this oneliner and enter your password for privileged access:
# sudo kill -9 $(ps axc|awk "{if (\$5==\"coreaudiod\") print \$1}");
# get the process ID of coreaudio
PID=$(ps axc|awk "{if (\$5==\"coreaudiod\") print \$1}")
if [ $PID != "" ]
then
echo "Killing coreaudiod process on $PID"
# Killing the audio daemon ( don't worry: MacOS will bring it back up )
if sudo kill -9 $PID; then
echo "Done. Audio should be fine"
else
echo "That didn't work..."
fi
else
echo "CoreAudio not running?"
fi
@Viamusic1000
Copy link

Viamusic1000 commented Jan 9, 2020 via email

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