toleda / wireless_half-mini

macOS Airport Half Mini (WiFi and Bluetooth)
203 stars 50 forks source link

10.12.1 - Using Info.plist patching instead of DeviceID injection #9

Open bpresles opened 7 years ago

bpresles commented 7 years ago

With AzureWave AW-CE123H, the Clover DSDT FixAirport_4000 and AddDTGP_0001 + WIFI FakeID doesn't work correctly anymore on 10.12.1.

To fix that, removing all the above patches/FakeID and using a Info.plist patch to inject the real device id in the IONameMatch list seems to be the cleaner solution (avoid DSDT patching and Kext alteration) by a dying the following patch to KernelAndKextPatches -> KextsToPatch section of Clover's config.plist:

    <dict>
        <key>Comment</key>
        <string>BCM94352HMB add 0x43b114e4</string>
        <key>Find</key>
        <data>PHN0cmluZz5wY2kxNGU0LDQzYmE8L3N0cmluZz4=</data>
        <key>InfoPlistPatch</key>
        <true/>
        <key>Name</key>
        <string>AirPortBrcm4360</string>
        <key>Replace</key>
        <data>PHN0cmluZz5wY2kxNGU0LDQzYjE8L3N0cmluZz4=</data>
    </dict>

This patch simply replace the existing pci14e4,43ba by pci14e4,43b1. The replace value should be modified according to the real device id used.

toleda commented 7 years ago

Patch added to config-bcm94352-120.plist and README updated. Thanks.

ezeeyahoo commented 7 years ago

I have removed all patches from config.plist and reset fake id to 0x0 but still "no hardware installed". Below kexts are placed inside EFI/CLOVER/kexts/10.12:- BrcmFirmwareData.kext BrcmFirmwareRepo.kext BrcmPatchRAM2.kext FakePCIID.kext FakePCIID_Broadcom_WiFi.kext

I have same device as yours.

toleda commented 7 years ago

@ezeeyahoo FakePCIID_Broadcom_WiFi.kext is not working in 10.12.1. See README for fix.

ezeeyahoo commented 7 years ago

Yes, I think I am doing something wrong because only with above patch in config.plist and removing all BCM4352 related kexts,FakeID,patches do not change anything for me. I have not installed a single kext in S/L/E or L/E. Can you please elaborate little more the process or tell me if you find the problem? DSDT.zip config.plist.zip No ssdt Kexts:- ACPIBatteryManager.kext FakeSMC.kext IntelBacklight.kext RealtekRTL8100.kext VoodooHDA.kext VoodooPS2Controller.kext mXHCD.kext

toleda commented 7 years ago

DSDT edits are Atheros 9285, why?

ezeeyahoo commented 7 years ago

I had taken it from someone who had the same model but probably with Atheros. Using system generated DSDT, cpu fan run at top speed..I have to do patches to disable Optimus Graphics card, etc and I don't know how to do that as I am first timer since it worked fine so continued with it till now. Generated DSDT(from linux) DSDT.aml.zip Nvidia GT525M Also I was not able use HDMI port with external monitor. I know it's off topic but if you can just tell, Is that possible?

toleda commented 7 years ago

Never a good idea to install a dsdt from a different machine. No WiFi injection, see README.

jinziqi commented 7 years ago

I have AW-CE123H and I'm on 10.12.2. Tried many things and this is how it worked for me...

Everything worked perfectly, including 5GHz Also note that, if you only apply the plist from this pull request, it does not work.

toleda commented 7 years ago

FakePCIID does what Info.plist does; one or the other, not both.