很简单,参考了 这我的的作法git
https://github.com/athlonreg/AppleALC-ALCPlugFixgithub
去/System/Library/Extensions 里面把AppleHDA删除便可,同时在EFI的clover/kexts/里安装VoodooHDA便可,主要缘由是苹果自己的声卡驱动AppleHDA和VoodooHDA万能声卡驱动的冲突问题。bash
If your headphone and microphone don't work normally in hackintosh, just install the universe audio driver named VoodooHDA.3d
and to solve the problem about the hackintosh longtime boot loading after installed VoodooHDA, Just to remove the AppleHDA.kexts in/System/Library/Extensions . because of the reason that these two have conflicts.日志
另外,因为个人主板有一个特色,就是电脑长期不用会进入休眠状态,必须从新按电源以唤醒,然而个人黑苹果在被唤醒之后,声音没法正常输出,所以考虑到是声音驱动的问题,尝试从新卸载驱动code
sudo kextunload /System/Library/Extensions/VoodooHDA.kext
若是报错,多卸载几回就会成功,然而卸载以后装回去就须要用到命令orm
sudo kextload /System/Library/Extensions/VoodooHDA.kext
这步报错了,提示blog
/System/Library/Extensions/VoodooHDA.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8).
意思是权限问题,因而我又加了权限ip
sudo chmod -R 777 /System/Library/Extensions/VoodooHDA.kext
可是依旧报错,依据报错内容,我试图查看system/kernel的log,可是找了一圈找不到内核日志在哪,因而就依据kextutil(8)的提示使用了以下命令rem
sudo kextutil /System/Library/Extensions/VoodooHDA.kext
提示以下信息
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fb4c1e0c980 [0x7fff8b341b30]> { URL = "file:///Library/Extensions/VoodooHDA.kext/", ID = "org.voodoo.driver.VoodooHDA" } Kext rejected due to improper filesystem permissions: <OSKext 0x7fb4c1e07ff0 [0x7fff8b341b30]> { URL = "file:///System/Library/Extensions/VoodooHDA.kext/", ID = "org.voodoo.driver.VoodooHDA" } Code Signing Failure: not code signed Authentication Failures: File owner/permissions are incorrect (must be root:wheel, nonwritable by group/other): /System/Library/Extensions/VoodooHDA.kext Contents Info.plist MacOS VoodooHDA Diagnostics for /System/Library/Extensions/VoodooHDA.kext: Authentication Failures: File owner/permissions are incorrect (must be root:wheel, nonwritable by group/other): /System/Library/Extensions/VoodooHDA.kext Contents Info.plist MacOS VoodooHDA
可见,权限设置必须为“must be root:wheel, nonwritable by group/other”,真是大开眼界,看来权限不是越大越好,这里会检测用户组的权限,若是有写权限就会报错。因而,我修改权限以后成功load恢复声音驱动。
sudo chmod -R 755 /System/Library/Extensions/VoodooHDA.kext sudo chown -R root /System/Library/Extensions/VoodooHDA.kext sudo chgrp -R wheel /System/Library/Extensions/VoodooHDA.kext sudo kextload /System/Library/Extensions/VoodooHDA.kext
终于又有声音了!
首先去这里下载voodoohda的最新版本:
https://github.com/chris1111/VoodooHDA-2.9.2-Clover-V14/releases
下载完以后会提示你安装,在这里选择自定
选择你须要的版本,好比我是mojave
以后安装完以后去系统偏好设置->用户与群组->登陆项
里面把voodoohda选上
以后就可以在偏好里保存设置了。