dfsnc / Hackintosh-Catalina-OpenCore-Lenovo-T450s-efi

66 stars 28 forks source link

ALC headphone jack fix side effects #35

Open moulaien opened 4 years ago

moulaien commented 4 years ago

Integreted webcam not recongnized after product name set as MacBookAir7,2 as the alc fix instructed. Suggested product name as: MacBookPro12,1, family: MacBook Pro. Both headphone jack and webcam works great. Tested in OS: 10.15.3

zzhang39 commented 3 years ago

Can you please advise how to make appalcfix work? After restart, the noisy come back, i rerun install.sh it will be fixed again. But after restart, it fail again

moulaien commented 3 years ago

Can you please advise how to make appalcfix work? After restart, the noisy come back, i rerun install.sh it will be fixed again. But after restart, it fail again 详见下帖,需要加入自启动才能每次开机后无噪音。 http://bbs.pcbeta.com/viewthread-1848420-1-1.html

zzhang39 commented 3 years ago

@moulaien @i3p9 @EchoEsprit ========issue resolved when restart alc_fix not working,, have to re-run========= spend me several hours to get this resolved. The install.sh from alc_fix generate the com.echo.ALCPlugFix.plist which stored under launchdaemons which will start "com.echo.ALCPlugFix" automatically during the boot process. The issue is actually that "com.echo.ALCPlugFix" running to early before something else(i don't know which one) get loaded. after reboot and startup, if you simply unload and reload the com.echo.ALCPlugFix.plist, the issue just resolved. sudo launchctl unload /Library/LaunchDaemons/com.echo.ALCPlugFix.plist sudo launchctl load /Library/LaunchDaemons/com.echo.ALCPlugFix.plist To resolve this issue: my 1st thought is trying to delay the start of com.echo.ALCPlugFix.plist, i have tried config.plist boot arg alcdelay=3000 which not working. then i read the plist and notice it actually calling "/usr/bin/ALCPlugFix". it looks like there's no way to set delay in the plist itself, so if we go this path, the only way is go into the source code of ALCPlugFix, add delay over there. since i am not familiar with it's source code, i give up this direction.

now the 2nd thought, once boot into the system, we can automate the above two script running. after google, i use the macos tool automator create a shell script application, then add it as macos startup application. issue resolved!!

ps: the shell script needs to be using sudo -S like below, to bypass the password promote. (replace to your actual password) echo password | sudo -S launchctl unload /Library/LaunchDaemons/com.echo.ALCPlugFix.plist sudo launchctl load /Library/LaunchDaemons/com.echo.ALCPlugFix.plist

ps: if anyone knows how to update the ALCPlugFix source code and put delay there.... please do it and update me! Thanks