Contribute
Register

Stop the popping in (High) Sierra

Status
Not open for further replies.
Joined
Aug 30, 2012
Messages
20
Motherboard
GA-Z77X-UD5H
CPU
i7 3770k
Graphics
Nvidia GTX 980 Ti
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
Hi all, since upgrading to Sierra I've had the dreaded audio pop problem. Every 30 seconds or so the audio would make a loud pop before playing anything.

The fix used to be 'Antipop' but its developer has stopped maintaining it. This small fix here does the same thing but is verified working in Sierra.

Update: Confirmed working in High Sierra. You may need to re-load the service, see below in Misc on how to do this.

1. Open Terminal (in Utilities) and type:
sudo nano /Library/LaunchDaemons/com.mattsday.antipop.plist

You may get asked for your password at this step. Type it in

2. Copy all of this text:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.mattsday.antipop</string>
<key>KeepAlive</key>
<false/>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>while true; do say ' '; sleep 25; done</string>
</array>
</dict>
</plist>


3. Click Edit on the menu bar and then Paste (or press cmd+v)

4. Press ctrl-o and then <enter> to save (writeout) the file and then press ctrl-x to exit

5. Type this to load the service:
sudo launchctl load /Library/LaunchDaemons/com.mattsday.antipop.plist

You may get a single pop, but from now on it should be gone for good - even after reboots!

Misc
1. Why does the popping happen? How does this fix it?

With certain system definitions, OS X will power down the amplifier on your speaker. You may hear sound still but very quietly. On a real Mac this doesn't matter as the speakers are in-built (iMac, MacBook etc). On your Hackintosh it'll manifest itself as a nasty pop.

This fix simply tricks OS X in to thinking the audio driver is in use by using the say console command to say a blank space (' '). This stops it putting it to sleep, which in turn stops the popping!

2. I still get popping
In the script, change this line:
<string>while true; do say ' '; sleep 25; done</string>
to this:
<string>while true; do say ' '; sleep 10; done</string>
This will reduce the interval to 10 seconds (instead of 25)

Once that's done, unload and reload it:
sudo launchctl unload /Library/LaunchDaemons/com.mattsday.antipop.plist
sudo launchctl load /Library/LaunchDaemons/com.mattsday.antipop.plist


3. I just upgraded and it's come back!
You just need to re-load the service:
sudo launchctl load /Library/LaunchDaemons/com.mattsday.antipop.plist

4. I don't trust you, I think this does bad things, this broke my system!
It's very unlikely. You can remove it by doing this in terminal:
sudo launchctl unload /Library/LaunchDaemons/com.mattsday.antipop.plist
sudo rm /Library/LaunchDaemons/com.mattsday.antipop.plist
 
Last edited:
Thank you for saving my sanity from that annoying popping sound. I switched from MacPro3,1 to iMac14,2 for Sierra, and I thought I would have to live with popping since AntiPop wasn't working. Thanks again!
 
In macOS Sierra sound works fine but I have this popping sound in El Capitan , and I want to stay in El Capitan but the problem of sound make me stressful , so can u help me to fix popping audio in El Capitan?
 
In macOS Sierra sound works fine but I have this popping sound in El Capitan , and I want to stay in El Capitan but the problem of sound make me stressful , so can u help me to fix popping audio in El Capitan?
Should work just as well in El Capitan - have you tried it?
 
Now im in macOS Sera 10.12 and im preparing to downgrade to El Capitan hoping this fix my audio , its my last chance lol to have my hachintosh fully work.Yes I gonna try it in 30min and I gonna give u the result; thank u.
 
I think there are some missing information in the first post.

How do I create a file using sudo EXACTLY I'M a bash n00b

I tried to save the whole thing as : com.mattsday.antipop.plist in textwrangler
And then copy it to /Library/LaunchDaemons/ in the finder thinking that might work.

It asked me to authenticate I did.

Then opened a terminal window to type : sudo launchctl load /Library/LaunchDaemons/com.mattsday.antipop.plist

This doesn't work... it looked like this:
Ricks-BigMac:~ richie$ sudo/root//Library/LaunchDaemons/com.mattsday.antipop.plist

-bash: sudo/root//Library/LaunchDaemons/com.mattsday.antipop.plist: No such file or directory

Can you describe step by step how to do this for an idiot like me please ? Thank you
 
sudo nano /Library/LaunchDaemons/com.mattsday.antipop.plist

paste the text of the program

ctrl + o to save the file
ctrl + x to exit

sudo launchctl load /Library/LaunchDaemons/com.mattsday.antipop.plist

Thats it.
 
Status
Not open for further replies.
Back
Top