audio_RealtekALC icon indicating copy to clipboard operation
audio_RealtekALC copied to clipboard

Popping sound after idle

Open alxgarza opened this issue 9 years ago • 6 comments

I am getting a popping sound after a while of no audio playing.

I tried adding AFGLowPowerState false in clover with no luck.

Is their a way to get rid of the popping?

Thanks!

alxgarza avatar Oct 26 '15 16:10 alxgarza

I have the same problem

TheRealMaN avatar Oct 27 '15 04:10 TheRealMaN

I installed antipop. Had to modified it since it was not working. But I would prefer a simpler solution.

alxgarza avatar Oct 27 '15 14:10 alxgarza

can you share the modified version of antipop?

TheRealMaN avatar Oct 27 '15 18:10 TheRealMaN

What I did was install antipop. Then I erased all his script and just added:

#!/bin/bash say " " -a 88 sleep 10

I erased all his script since it was checking laptop parameters which I do not use.

alxgarza avatar Oct 27 '15 18:10 alxgarza

ok) where the script locates?

TheRealMaN avatar Oct 28 '15 01:10 TheRealMaN

Antipop is basically running say " " once in a while to prevent the audio from sleeping. If you want to do it yourself you can use launchd. In your user home /Users/YOURUSERNAME/Library/LaunchAgents add a file named local.nosoundpop.plist containing this :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Disabled</key>
    <false/>
    <key>Label</key>
    <string>local.nosoundpop</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/say</string>
        <string> </string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StartInterval</key>
    <integer>10</integer>
</dict>
</plist>

It runs say " " once every 10 seconds when YOURUSERNAME is logged in. This solution works well but it is not really fixing the issue which is the audio going to standby mode.

thislg avatar Dec 17 '15 13:12 thislg