Skip to content

Commit

Permalink
Update OC to 0.7.4 with kexts + codeless audio solution with ALCPlugF…
Browse files Browse the repository at this point in the history
…ix-Swift thanks to @akisame-reiu
  • Loading branch information
Juan-VC committed Oct 10, 2021
1 parent 5fa163a commit cf92c41
Show file tree
Hide file tree
Showing 36 changed files with 344 additions and 560 deletions.
Binary file added ALCPlugFix-Swift/ALCPlugFix-Swift
Binary file not shown.
32 changes: 32 additions & 0 deletions ALCPlugFix-Swift/com.black-dragon74.ALCPlugFix.config.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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">
<array>
<dict>
<key>Comment</key>
<string>Enable combo jack mic detection</string>
<key>Enabled</key>
<true/>
<key>Node ID</key>
<string>0x19</string>
<key>On Boot</key>
<true/>
<key>On Connect</key>
<true/>
<key>On Disconnect</key>
<false/>
<key>On Mute</key>
<false/>
<key>On Sleep</key>
<false/>
<key>On Unmute</key>
<false/>
<key>On Wake</key>
<true/>
<key>Param</key>
<string>0x21</string>
<key>Verb</key>
<string>SET_PIN_WIDGET_CONTROL</string>
</dict>
</array>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.XPS.ComboJack</string>
<string>com.black-dragon74.ALCPlugFix</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/ComboJack</string>
<string>/usr/local/bin/ALCPlugFix</string>
<string>/Library/Preferences/com.black-dragon74.ALCPlugFix.config.plist</string>
</array>
<key>RunAtLoad</key>
<true/>
Expand Down
31 changes: 31 additions & 0 deletions ALCPlugFix-Swift/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/zsh

echo "Fixing sound..."
# ALCPlugFix-Swift Install
#
# Created by akisame-reiu on 09/27/21, based on install.sh created by Nick.
#

sudo mkdir -p /usr/local/bin
sudo rm -rf /usr/local/bin/ALCPlugFix
sudo rm -rf /usr/local/bin/hda-verb
sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist

## Copy new files
sudo cp ALCPlugFix-Swift /usr/local/bin/ALCPlugFix
sudo cp com.black-dragon74.ALCPlugFix.plist /Library/LaunchAgents
sudo cp com.black-dragon74.ALCPlugFix.config.plist /Library/Preferences

sudo chmod 755 /usr/local/bin/ALCPlugFix
sudo chmod 644 /Library/LaunchAgents/com.black-dragon74.ALCPlugFix.plist
sudo chmod 644 /Library/Preferences/com.black-dragon74.ALCPlugFix.config.plist

sudo chown root:wheel /usr/local/bin/ALCPlugFix
sudo chown root:wheel /Library/LaunchAgents/com.black-dragon74.ALCPlugFix.plist
sudo chown root:wheel /Library/Preferences/com.black-dragon74.ALCPlugFix.config.plist

sudo launchctl load /Library/LaunchAgents/com.black-dragon74.ALCPlugFix.plist

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

# ALCPlugFix-Swift Uninstall
#
# Created by akisame-reiu on 09/27/21
#

# Clean up

sudo launchctl unload /Library/LaunchAgents/com.black-dragon74.ALCPlugFix.plist
sudo rm /Library/LaunchAgents/com.black-dragon74.ALCPlugFix.plist
sudo rm /Library/Preferences/com.black-dragon74.ALCPlugFix.config.plist
sudo rm /usr/local/bin/ALCPlugFix
Empty file modified BOOT/.contentFlavour
100644 → 100755
Empty file.
Binary file removed ComboJack_Installer_defaultHeadphones/ComboJack
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file removed ComboJack_Installer_defaultHeadphones/hda-verb
Binary file not shown.
53 changes: 0 additions & 53 deletions ComboJack_Installer_defaultHeadphones/install.sh

This file was deleted.

6 changes: 3 additions & 3 deletions HiDPI_Files/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/zsh

echo "Enabling HiDPI"
echo "Enabling HiDPI..."

sudo mkdir -p /Library/Displays/Contents/Resources/Overrides/DisplayVendorID-30e4/
sudo cp Icons.plist /Library/Displays/Contents/Resources/Overrides/
Expand All @@ -12,4 +12,4 @@ sudo cp DisplayProductID-540.icns /Library/Displays/Contents/Resources/Overrides

echo "Done!"
echo
exit 0
exit 1
Loading

0 comments on commit cf92c41

Please sign in to comment.