Last active
April 4, 2025 23:04
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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
commented
Jan 8, 2020
Author
@Viamusic1000 Try this:
- Copy this text: sudo kill -9 $(ps axc|awk "{if ($5=="coreaudiod") print $1}");
- CMD + Space to open Spotlight search.
- Type: Terminal (You will see a black Icon in front of the word: Terminal) press ENTER
- Press CMD+V to paste this into the terminal (or right mouse button + paste)
- Press Enter
- It will ask for your MacBook password to execute this command as admin. Enter the password and press ENTER
You should now hear a pause in audio and your audio volume reset to 50%
I got an error that said:
awk: syntax error at source line 1
context is
{if >>> (== <<<
awk: illegal statement at source line 1
awk: illegal statement at source line 1
Author
@Viamusic1000 something went wrong here in the comments. The backslashes \ were stripped. Hope this helps:
sudo kill -9 $(ps axc|awk "{if (\$5==\"coreaudiod\") print \$1}");
Ran it, didn't do anything in Muse Score unfortunately.
…On Wed, Jan 8, 2020 at 11:09 PM Jørgen ***@***.***> wrote:
@Viamusic1000 <https://github.com/Viamusic1000> something went wrong here
in the comments. The backslashes \ were stripped. Hope this helps:
sudo kill -9 $(ps axc|awk "{if (\$5==\"coreaudiod\") print \$1}");
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/fa2311e7ab933e6a84cce9654caa45c3?email_source=notifications&email_token=AOGFDK3KMA32645M6UWZ3ALQ43ERDA5CNFSM4KD63HOKYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF7FGC#gistcomment-3132001>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGFDK5HNW7DOVZCMO2NZ3DQ43ERDANCNFSM4KD63HOA>
.
Author
@Viamusic1000 too bad! Hope that Apple soon comes with a fix because it's an annoying bug to have for such an expensive device.
It is. I’m hoping that if it’s not fixed in the next few months I can get
geek squad to refund me with warranty.
…On Thu, Jan 9, 2020 at 12:09 AM Jørgen ***@***.***> wrote:
@Viamusic1000 <https://github.com/Viamusic1000> too bad! Hope that Apple
soon comes with a fix because it's an annoying bug to have for such an
expensive device.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/fa2311e7ab933e6a84cce9654caa45c3?email_source=notifications&email_token=AOGFDKYEKKKNVPBW4PH62Y3Q43LU3A5CNFSM4KD63HOKYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF7FKO#gistcomment-3132071>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGFDK4WG3QYSBOJGZO2QPDQ43LU3ANCNFSM4KD63HOA>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment