Skip to content

Commit

Permalink
Version: 1.2.1
Browse files Browse the repository at this point in the history
- Fix Headphones buzzing noise
  • Loading branch information
valnoxy committed Jun 3, 2021
1 parent 99d6c73 commit 4dc2461
Show file tree
Hide file tree
Showing 14 changed files with 786 additions and 8 deletions.
Binary file added ALCPlugFix/ALCPlugFix
Binary file not shown.
21 changes: 21 additions & 0 deletions ALCPlugFix/good.win.ALCPlugFix.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>good.win.ALCPlugFix</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/ALCPlugFix</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceIPC</key>
<false/>
<!--Shuold be directory that hda-verb at-->
<key>WorkingDirectory</key>
<string>/usr/local/bin/</string>
</dict>
</plist>
Binary file added ALCPlugFix/hda-verb
Binary file not shown.
41 changes: 41 additions & 0 deletions ALCPlugFix/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

DAEMON_PATH=/Library/LaunchDaemons/
BIN_PATH=/usr/local/bin/
DAEMON_FILE=good.win.ALCPlugFix.plist
VERB_FILE=hda-verb
FIX_FILE=ALCPlugFix

echo "Installing ALCPlugFix v1.7"

# check if the directory "usr/local/bin" exist, if not then create the directory

if [ ! -d "$BIN_PATH" ] ; then
mkdir "$BIN_PATH" ;
fi

# stop the daemon if it's already running
if sudo launchctl list | grep --quiet ALCPlugFix; then
echo "Stopping existing ALCPlugFix daemon."
sudo launchctl unload $DAEMON_PATH$DAEMON_FILE
fi

# copy over the files to their respective locations (overwrite automatically if files exist)

sudo cp -f ALCPlugFix $BIN_PATH
sudo cp -f hda-verb $BIN_PATH
sudo cp -f good.win.ALCPlugFix.plist $DAEMON_PATH

# set permissions and ownership
sudo chmod 755 $BIN_PATH$FIX_FILE
sudo chown $USER:admin $BIN_PATH$FIX_FILE
sudo chmod 755 $BIN_PATH$VERB_FILE
sudo chown $USER:admin $BIN_PATH$VERB_FILE
sudo chmod 644 $DAEMON_PATH$DAEMON_FILE
sudo chown root:wheel $DAEMON_PATH$DAEMON_FILE

# load and start the daemon
sudo launchctl load -w $DAEMON_PATH$DAEMON_FILE

echo "Done!"
exit 0
12 changes: 12 additions & 0 deletions ALCPlugFix/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

echo "Uninstalling ALCPlugFix. Root user is required."

sudo rm /usr/local/bin/ALCPlugFix
sudo rm /usr/local/bin/hda-verb
sudo launchctl unload -w /Library/LaunchDaemons/good.win.ALCPlugFix.plist
sudo launchctl remove good.win.ALCPlugFix
sudo rm /Library/LaunchDaemons/good.win.ALCPlugFix.plist

echo "Done!"
exit 0
16 changes: 16 additions & 0 deletions EFI/OC/Config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,22 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>BundlePath</key>
<string>CodecCommander.kext</string>
<key>Comment</key>
<string>Codec Commander</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/CodecCommander</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
</array>
<key>Block</key>
<array>
Expand Down
Loading

0 comments on commit 4dc2461

Please sign in to comment.