Jump to content

How to Fix Audio Pop/Popping

audio pop antipop script

Best Answer Hackmodford, 15 February 2014 - 11:01 PM

OK, new strategy.

I downloaded this program. http://www.soma-zone.../LaunchControl/

 

Step 1: Create the antipop shell script

say " "

Save this file to /Library/antipop.sh

Use terminal to make this file executable

chmod +x /Library/antipop.sh

Step 2:

Create a launchctl job using Launch Control like this.

 

I will report my findings. Feel free to try for yourself.

Go to the full post


  • Please log in to reply
19 replies to this topic

#1
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

I finally got sick and tired of the popping noise that is caused by waking up the audio card after inactivity.

I am aware of the antipop program but for some reason it did not work for me. Credit for this idea goes to Robert Tomsick http://www.tomsick.n...ts/antipop.html

So I decided to write my own version that works with 10.9

The concept is exactly the same as the antipop program but it actually works (at least for me).

 

Here it is Attached File  AntiPop.zip   50.88KB   70 downloads

 

All you have to do is set this application as a login item and you will no longer have the popping issue.

 

Limitations:

  1. Can not fix initial pop from booting computer.
  2. Can not fix pop for waking from sleep.
  3. After switching audio sources there may be a pop.

 

First I created this applescript.

repeat
say " "
log "delaying audio sleep"
delay 25
end repeat

This essentially tells the computer to speak every 25 seconds. However there is nothing to say so it won't bother you, but it will keep the audio from being deactivated.

 

I then saved this script as an application.

 

To remove the icon from the dock I right clicked the application I created and chose "show package contents"

 

Attached File  Screen Shot 2014-02-06 at 9.30.45 PM.png   27.32KB   9 downloads

 

Then I opened the contents folder and found it's info.plist. I then added this line to the plist.

 

Attached File  Screen Shot 2014-02-06 at 9.31.11 PM.png   46.79KB   11 downloads

 

Bam!  B)  Dock icon gone ;)

 

If anyone has any thoughts or suggestions please let me know :)



#2
Long Cat

Long Cat

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 112 posts

That's a good idea. Can't suggest anything other than try messing around with automator and see if you can set it to run at startup.

 

Also, what system definitions are you using? No idea about sound cards, but with on-board audio, from my experience the popping issue can be solved by using a Mac Pro system definition.



#3
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

I'm using the iMac smbios because I have an Ivy Bridge processor and an external graphics card. Clover defaulted me to what I would have chosen also.

 

I've been running for an hour with delay set to 25 with no problems :)

 

Update: Confirmed that after sleeping there is 1 initial pop, but as soon as the script kicks in again no more problems. I assume it would do the same thing at boot. A reasonable compromise IMHO



#4
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

Just found this repo. Looks like a continuation of the antipop launch daemon.

https://github.com/Sep102/antipop



#5
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,624 posts
  • Gender:Male
  • Location:Moscow

 

 

  1. Can not fix initial pop from booting computer.

It will be better to resolve boot pop



#6
yangshun1029

yangshun1029

    InsanelyMac Protégé

  • Members
  • Pip
  • 38 posts
  • Gender:Male

Try to use a Mac Pro system definition



#7
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain

not sure, but this can work too, a AppleScript and save as app, then put in your Application folder, then add in PreferencesSystem/Accounts/StartApplications,

note in the script put your passw first then compile/save as/app

 

property userpassword : "your passw here"

do shell script "open -a Terminal;sudo kextload -b com.apple.driver.AppleHDA;sudo kextload -b com.apple.driver.AppleHDAController;sudo kextload -b com.apple.iokit.IOHDAFamily;Killall Terminal" password "your passw here" with administrator privileges



#8
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

Try to use a Mac Pro system definition

 

If I personally use the Mac Pro system definition I lose power management of my cpu :(



#9
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

It seems like with my antipop app running it disables sleep :(



#10
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

Best Answer

OK, new strategy.

I downloaded this program. http://www.soma-zone.../LaunchControl/

 

Step 1: Create the antipop shell script

say " "

Save this file to /Library/antipop.sh

Use terminal to make this file executable

chmod +x /Library/antipop.sh

Step 2:

Create a launchctl job using Launch Control like this.

Attached File  Screen Shot 2014-02-15 at 5.59.23 PM.png   206.7KB   12 downloads

 

I will report my findings. Feel free to try for yourself.



#11
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

I don't seem to have sleep issues with this version...



#12
chris1111

chris1111

    Packager

  • Donators
  • 4,495 posts
  • Gender:Male
  • Location:Montreal Canada
  • Interests:Mac OS X Packaging / scripts

this Installer Antipop works great   B)



#13
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

Where did you get the installer? What is the difference?



#14
chris1111

chris1111

    Packager

  • Donators
  • 4,495 posts
  • Gender:Male
  • Location:Montreal Canada
  • Interests:Mac OS X Packaging / scripts

Where did you get the installer? What is the difference?

I dont remember  where I get ?   on goggle   :P   but is working verry good on my Z87  config  see my specs 

no poping sond with this Installer, and is very simple, I have made another .pkg version  :)



#15
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

Comparing my implementation to his there are these differences.

Tomsick's version waits 10 seconds while mine waits 25

Tomsick's version you can specify what to do if you are on AC power. I did not do that.

Tomsick's version seems to run all the time with an infinite loop while mine using launchctl to run the command every 25 seconds.



#16
chris1111

chris1111

    Packager

  • Donators
  • 4,495 posts
  • Gender:Male
  • Location:Montreal Canada
  • Interests:Mac OS X Packaging / scripts

So what is the best for you  ? 



#17
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

I have a desktop machine that I built myself, so I don't need to worry about AC power management.

I made my own implementation of antipop so I know how it works inside and out.

Therefore my solution is the one I'm sticking with.

 

I went down this road because the installer from tomsick's site didn't work for me. I haven't tried yours but since I did it myself I have no need to try it.

 

Also I decided to post this as a guide in the tutorial section. http://www.insanelym...p/#entry1994768



#18
chris1111

chris1111

    Packager

  • Donators
  • 4,495 posts
  • Gender:Male
  • Location:Montreal Canada
  • Interests:Mac OS X Packaging / scripts

I dont have  this  with the Installer 

 

 

          

  1. Can not fix initial pop from booting computer
  2. Can not fix pop for waking from sleep.
  3. After switching audio sources there may be a pop


#19
Hackmodford

Hackmodford

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 283 posts
  • Gender:Male
  • Location:'Merica's Mitt

I am doing it exactly the same way.



#20
jakes

jakes

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
  • Gender:Male

I have trouble to pop sound, too. Nice tool! I will try it and post feedback to you.   :) 







Also tagged with one or more of these keywords: audio, pop, antipop, script


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy