toleda / audio_RealtekALC

macOS Realtek ALC onboard audio with Chameleon/Clover
202 stars 75 forks source link

Popping sound after idle #23

Open alxgarza opened 8 years ago

alxgarza commented 8 years ago

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!

TheRealMaN commented 8 years ago

I have the same problem

alxgarza commented 8 years ago

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

TheRealMaN commented 8 years ago

can you share the modified version of antipop?

alxgarza commented 8 years ago

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.

TheRealMaN commented 8 years ago

ok) where the script locates?

thislg commented 8 years ago

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.