Skip to content

Commit

Permalink
TouchPad Fixedup
Browse files Browse the repository at this point in the history
  • Loading branch information
Doapeat committed Mar 8, 2020
1 parent 019a834 commit 837c365
Show file tree
Hide file tree
Showing 85 changed files with 628 additions and 2,615 deletions.
Binary file added ALCPlugFix/._good.win.ALCPlugFix.plist
Binary file not shown.
Binary file added ALCPlugFix/._install.command
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified ALCPlugFix/ALCPlugFix
Binary file not shown.
27 changes: 27 additions & 0 deletions ALCPlugFix/install.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash


path=${0%/*}
sudo cp -a "$path/ALCPlugFix" /usr/bin
sudo chmod 755 /usr/bin/ALCPlugFix
sudo chown root:wheel /usr/bin/ALCPlugFix
sudo cp -a "$path/hda-verb" /usr/bin
sudo chmod 755 /usr/bin/hda-verb
sudo chown root:wheel /usr/bin/hda-verb
sudo cp -a "$path/good.win.ALCPlugFix.plist" /Library/LaunchAgents/
sudo chmod 644 /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo chown root:wheel /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo launchctl load /Library/LaunchAgents/good.win.ALCPlugFix.plist
echo 'The installation of the ALCPlugFix daemon is complete'
echo 'Rebuild kextcache, please wait...'
sudo chmod -Rf 755 /S*/L*/E*
sudo chown -Rf 0:0 /S*/L*/E*
sudo chmod -Rf 755 /L*/E*
sudo chown -Rf 0:0 /L*/E*
sudo rm -Rf /S*/L*/PrelinkedKernels/*
sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/*
sudo touch -f /S*/L*/E*
sudo touch -f /L*/E*
sudo kextcache -Boot -U /
echo 'Rebuild kextcache is complete'
bash read -p 'Press any key to Exit'
20 changes: 20 additions & 0 deletions ALCPlugFix/install双击自动卸载ALCPlugFix.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash


path=${0%/*}
sudo launchctl remove /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo rm -rf /usr/bin/ALCPlugFix

echo '重建缓存中,请稍候……'
sudo chmod -Rf 755 /S*/L*/E*
sudo chown -Rf 0:0 /S*/L*/E*
sudo chmod -Rf 755 /L*/E*
sudo chown -Rf 0:0 /L*/E*
sudo rm -Rf /S*/L*/PrelinkedKernels/*
sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/*
sudo touch -f /S*/L*/E*
sudo touch -f /L*/E*
sudo kextcache -Boot -U /
echo '卸载ALCPlugFix守护进程完成!'
bash read -p '按任何键退出'
16 changes: 11 additions & 5 deletions ALCPlugFix/install双击自动安装.command
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ sudo cp -a "$path/good.win.ALCPlugFix.plist" /Library/LaunchAgents/
sudo chmod 644 /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo chown root:wheel /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo launchctl load /Library/LaunchAgents/good.win.ALCPlugFix.plist
echo '正在重建缓存中,请稍候......'
sudo chmod -Rf 755 /S*/L*/E*
sudo chown -Rf 0:0 /S*/L*/E*
sudo chmod -Rf 755 /L*/E*
sudo chown -Rf 0:0 /L*/E*
sudo rm -Rf /S*/L*/PrelinkedKernels/*
sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/*
sudo touch -f /S*/L*/E*
sudo touch -f /L*/E*
sudo kextcache -Boot -U /
echo '重建缓存完毕!'
echo '安装ALCPlugFix守护进程完成!'
echo '重建缓存中,请稍候……'
sudo rm -rf /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache
sudo rm -rf /System/Library/PrelinkedKernels/prelinkedkernel
sudo touch /System/Library/Extensions/ && sudo kextcache -u /
echo '安装程序结束,请重启电脑!!!'
bash read -p '按任何键退出'
20 changes: 20 additions & 0 deletions ALCPlugFix/uninstall.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash


path=${0%/*}
sudo launchctl remove /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo rm -rf /usr/bin/ALCPlugFix

echo 'Rebuilding Kext Cache,please wait……'
sudo chmod -Rf 755 /S*/L*/E*
sudo chown -Rf 0:0 /S*/L*/E*
sudo chmod -Rf 755 /L*/E*
sudo chown -Rf 0:0 /L*/E*
sudo rm -Rf /S*/L*/PrelinkedKernels/*
sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/*
sudo touch -f /S*/L*/E*
sudo touch -f /L*/E*
sudo kextcache -Boot -U /
echo 'Uninstall the ALCPlugFix daemon complete!'
bash read -p 'Press any key to exit'
Binary file removed Clover/ACPI/off/SSDT-EC.aml
Binary file not shown.
Binary file removed Clover/ACPI/off/SSDT-I2C-7567.aml
Binary file not shown.
Binary file removed Clover/ACPI/off/SSDT-PNLF-GFX0.aml
Binary file not shown.
Binary file removed Clover/ACPI/off/SSDT-PNLF-IGPU.aml
Binary file not shown.
Binary file removed Clover/ACPI/patched/SSDT-DGPU.aml
Binary file not shown.
Binary file removed Clover/ACPI/patched/SSDT-I2C-7567.aml
Binary file not shown.
Binary file removed Clover/ACPI/patched/SSDT-PNLF-GFX0.aml
Binary file not shown.
Binary file added Clover/ACPI/patched/SSDT-PNLF.aml
Binary file not shown.
Loading

0 comments on commit 837c365

Please sign in to comment.