Stop the popping in (High) Sierra

Discussion in 'Audio' started by mattsday, Sep 21, 2016.

  1. mattsday

    mattsday

    Joined:
    Aug 30, 2012
    Messages:
    11
    Mobo:
    GA-Z77X-UD5H
    CPU:
    i7 3770k
    Graphics:
    Nvidia GTX 980 Ti
    Mac:
    MacBook Pro
    Mobile Phone:
    Android
    Sep 21, 2016 at 1:34 AM #1
    mattsday

    mattsday

    Joined:
    Aug 30, 2012
    Messages:
    11
    Mobo:
    GA-Z77X-UD5H
    CPU:
    i7 3770k
    Graphics:
    Nvidia GTX 980 Ti
    Mac:
    MacBook Pro
    Mobile Phone:
    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
     
    diqi, RV.UZ, thebebinator and 11 others like this.
    Last edited: Oct 9, 2017
  2. CyCLoBoT

    CyCLoBoT

    Joined:
    Sep 19, 2010
    Messages:
    315
    Mobo:
    Asus H97M-Plus
    CPU:
    Intel i7 4790K
    Graphics:
    Nvidia GeForce GTX 960
    Mac:
    iMac
    Mobile Phone:
    iOS
    Sep 21, 2016 at 2:04 AM #2
    CyCLoBoT

    CyCLoBoT

    Joined:
    Sep 19, 2010
    Messages:
    315
    Mobo:
    Asus H97M-Plus
    CPU:
    Intel i7 4790K
    Graphics:
    Nvidia GeForce GTX 960
    Mac:
    iMac
    Mobile Phone:
    iOS
    Thanks for this.
     
  3. Hooner

    Hooner

    Joined:
    Aug 3, 2012
    Messages:
    19
    Mobo:
    Gigabyte Z77X-UP5 TH
    CPU:
    Intel Core i7-3770K Ivy Bridge 3.5GHz
    Graphics:
    Gigabyte GTX 980 G1 Gaming
    Mac:
    iMac, MacBook Pro, Mac Pro
    Mobile Phone:
    iOS
    Sep 22, 2016 at 6:31 AM #3
    Hooner

    Hooner

    Joined:
    Aug 3, 2012
    Messages:
    19
    Mobo:
    Gigabyte Z77X-UP5 TH
    CPU:
    Intel Core i7-3770K Ivy Bridge 3.5GHz
    Graphics:
    Gigabyte GTX 980 G1 Gaming
    Mac:
    iMac, MacBook Pro, Mac Pro
    Mobile Phone:
    iOS
    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!
     
  4. Smaeel01

    Smaeel01

    Joined:
    Sep 7, 2016
    Messages:
    3
    CPU:
    i7 4770k
    Graphics:
    GTX 780 Ti
    Mac:
    iMac, Mac Pro
    Mobile Phone:
    iOS
    Sep 22, 2016 at 5:34 PM #4
    Smaeel01

    Smaeel01

    Joined:
    Sep 7, 2016
    Messages:
    3
    CPU:
    i7 4770k
    Graphics:
    GTX 780 Ti
    Mac:
    iMac, Mac Pro
    Mobile Phone:
    iOS
    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?
     
  5. mattsday

    mattsday

    Joined:
    Aug 30, 2012
    Messages:
    11
    Mobo:
    GA-Z77X-UD5H
    CPU:
    i7 3770k
    Graphics:
    Nvidia GTX 980 Ti
    Mac:
    MacBook Pro
    Mobile Phone:
    Android
    Sep 22, 2016 at 8:48 PM #5
    mattsday

    mattsday

    Joined:
    Aug 30, 2012
    Messages:
    11
    Mobo:
    GA-Z77X-UD5H
    CPU:
    i7 3770k
    Graphics:
    Nvidia GTX 980 Ti
    Mac:
    MacBook Pro
    Mobile Phone:
    Android
    Should work just as well in El Capitan - have you tried it?
     
  6. Smaeel01

    Smaeel01

    Joined:
    Sep 7, 2016
    Messages:
    3
    CPU:
    i7 4770k
    Graphics:
    GTX 780 Ti
    Mac:
    iMac, Mac Pro
    Mobile Phone:
    iOS
    Sep 22, 2016 at 8:58 PM #6
    Smaeel01

    Smaeel01

    Joined:
    Sep 7, 2016
    Messages:
    3
    CPU:
    i7 4770k
    Graphics:
    GTX 780 Ti
    Mac:
    iMac, Mac Pro
    Mobile Phone:
    iOS
    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.
     
  7. a3dstorm

    a3dstorm

    Joined:
    Nov 22, 2011
    Messages:
    68
    Mobo:
    GA-Z77X-UD5H
    CPU:
    Core I7 3.4
    Graphics:
    Zotac Geforce Titan GTX
    Classic Mac:
    LC, Power Mac
    Mobile Phone:
    iOS
    Sep 23, 2016 at 8:38 PM #7
    a3dstorm

    a3dstorm

    Joined:
    Nov 22, 2011
    Messages:
    68
    Mobo:
    GA-Z77X-UD5H
    CPU:
    Core I7 3.4
    Graphics:
    Zotac Geforce Titan GTX
    Classic Mac:
    LC, Power Mac
    Mobile Phone:
    iOS
    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
     
  8. vcn

    vcn

    Joined:
    Feb 15, 2016
    Messages:
    41
    Mobo:
    Z170-A
    CPU:
    6700K
    Graphics:
    GTX980
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Sep 24, 2016 at 2:00 AM #8
    vcn

    vcn

    Joined:
    Feb 15, 2016
    Messages:
    41
    Mobo:
    Z170-A
    CPU:
    6700K
    Graphics:
    GTX980
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    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.
     
    filbert87 likes this.
  9. Gordo74

    Gordo74

    Joined:
    Nov 16, 2010
    Messages:
    2,742
    Mobo:
    Asus P8Z77-I
    CPU:
    i7 3770 @ 4.2Ghz
    Graphics:
    GTX 970
    Mac:
    iMac, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    Sep 24, 2016 at 5:52 PM #9
    Gordo74

    Gordo74

    Joined:
    Nov 16, 2010
    Messages:
    2,742
    Mobo:
    Asus P8Z77-I
    CPU:
    i7 3770 @ 4.2Ghz
    Graphics:
    GTX 970
    Mac:
    iMac, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    This worked for me, thank you so much.
     
  10. a3dstorm

    a3dstorm

    Joined:
    Nov 22, 2011
    Messages:
    68
    Mobo:
    GA-Z77X-UD5H
    CPU:
    Core I7 3.4
    Graphics:
    Zotac Geforce Titan GTX
    Classic Mac:
    LC, Power Mac
    Mobile Phone:
    iOS
    Sep 24, 2016 at 7:34 PM #10
    a3dstorm

    a3dstorm

    Joined:
    Nov 22, 2011
    Messages:
    68
    Mobo:
    GA-Z77X-UD5H
    CPU:
    Core I7 3.4
    Graphics:
    Zotac Geforce Titan GTX
    Classic Mac:
    LC, Power Mac
    Mobile Phone:
    iOS
    Thank you, that worked !
     
    Last edited: Sep 25, 2016

Share This Page