mirror of
https://github.com/tylernguyen/x1c6-hackintosh.git
synced 2025-02-05 17:33:13 -06:00
119c763300
Enabled automatic output switching headphone/speaker upon plug/unplug. Fix rare audio cracking condition after waking from sleep. See changelog 4/1/2020
21 lines
681 B
Bash
Executable file
21 lines
681 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "Uninstalling ALCPlugFix. Root user is required."
|
|
|
|
# check if the root filesystem is writeable (starting with macOS 10.15 Catalina, the root filesystem is read-only by default)
|
|
if sudo test ! -w "/"; then
|
|
echo "Root filesystem is not writeable. Remounting as read-write and restarting Finder."
|
|
sudo mount -uw /
|
|
sudo killall Finder
|
|
fi
|
|
|
|
sudo rm /usr/bin/ALCPlugFix
|
|
sudo rm /usr/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
|
|
sudo rm /usr/local/bin/ALCPlugFix
|
|
sudo rm /usr/local/bin/hda-verb
|
|
|
|
echo "Done!"
|
|
exit 0
|