Skip to content

Commit 4dc2461

Browse files
committed
Version: 1.2.1
- Fix Headphones buzzing noise
1 parent 99d6c73 commit 4dc2461

14 files changed

+786
-8
lines changed

ALCPlugFix/ALCPlugFix

37 KB
Binary file not shown.

ALCPlugFix/good.win.ALCPlugFix.plist

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>KeepAlive</key>
6+
<true/>
7+
<key>Label</key>
8+
<string>good.win.ALCPlugFix</string>
9+
<key>ProgramArguments</key>
10+
<array>
11+
<string>/usr/local/bin/ALCPlugFix</string>
12+
</array>
13+
<key>RunAtLoad</key>
14+
<true/>
15+
<key>ServiceIPC</key>
16+
<false/>
17+
<!--Shuold be directory that hda-verb at-->
18+
<key>WorkingDirectory</key>
19+
<string>/usr/local/bin/</string>
20+
</dict>
21+
</plist>

ALCPlugFix/hda-verb

14.5 KB
Binary file not shown.

ALCPlugFix/install.sh

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
DAEMON_PATH=/Library/LaunchDaemons/
4+
BIN_PATH=/usr/local/bin/
5+
DAEMON_FILE=good.win.ALCPlugFix.plist
6+
VERB_FILE=hda-verb
7+
FIX_FILE=ALCPlugFix
8+
9+
echo "Installing ALCPlugFix v1.7"
10+
11+
# check if the directory "usr/local/bin" exist, if not then create the directory
12+
13+
if [ ! -d "$BIN_PATH" ] ; then
14+
mkdir "$BIN_PATH" ;
15+
fi
16+
17+
# stop the daemon if it's already running
18+
if sudo launchctl list | grep --quiet ALCPlugFix; then
19+
echo "Stopping existing ALCPlugFix daemon."
20+
sudo launchctl unload $DAEMON_PATH$DAEMON_FILE
21+
fi
22+
23+
# copy over the files to their respective locations (overwrite automatically if files exist)
24+
25+
sudo cp -f ALCPlugFix $BIN_PATH
26+
sudo cp -f hda-verb $BIN_PATH
27+
sudo cp -f good.win.ALCPlugFix.plist $DAEMON_PATH
28+
29+
# set permissions and ownership
30+
sudo chmod 755 $BIN_PATH$FIX_FILE
31+
sudo chown $USER:admin $BIN_PATH$FIX_FILE
32+
sudo chmod 755 $BIN_PATH$VERB_FILE
33+
sudo chown $USER:admin $BIN_PATH$VERB_FILE
34+
sudo chmod 644 $DAEMON_PATH$DAEMON_FILE
35+
sudo chown root:wheel $DAEMON_PATH$DAEMON_FILE
36+
37+
# load and start the daemon
38+
sudo launchctl load -w $DAEMON_PATH$DAEMON_FILE
39+
40+
echo "Done!"
41+
exit 0

ALCPlugFix/uninstall.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
echo "Uninstalling ALCPlugFix. Root user is required."
4+
5+
sudo rm /usr/local/bin/ALCPlugFix
6+
sudo rm /usr/local/bin/hda-verb
7+
sudo launchctl unload -w /Library/LaunchDaemons/good.win.ALCPlugFix.plist
8+
sudo launchctl remove good.win.ALCPlugFix
9+
sudo rm /Library/LaunchDaemons/good.win.ALCPlugFix.plist
10+
11+
echo "Done!"
12+
exit 0

EFI/OC/Config.plist

+16
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,22 @@
12401240
<key>PlistPath</key>
12411241
<string>Contents/Info.plist</string>
12421242
</dict>
1243+
<dict>
1244+
<key>BundlePath</key>
1245+
<string>CodecCommander.kext</string>
1246+
<key>Comment</key>
1247+
<string>Codec Commander</string>
1248+
<key>Enabled</key>
1249+
<true/>
1250+
<key>ExecutablePath</key>
1251+
<string>Contents/MacOS/CodecCommander</string>
1252+
<key>MaxKernel</key>
1253+
<string></string>
1254+
<key>MinKernel</key>
1255+
<string></string>
1256+
<key>PlistPath</key>
1257+
<string>Contents/Info.plist</string>
1258+
</dict>
12431259
</array>
12441260
<key>Block</key>
12451261
<array>

0 commit comments

Comments
 (0)