Fix iMac12,x skipping Nvidia patch

This commit is contained in:
Mykola Grymalyuk
2021-04-03 23:35:38 -06:00
parent 50256b92c8
commit 23acd5b6cd
2 changed files with 118 additions and 6 deletions

View File

@@ -212,6 +212,8 @@ class BuildOpenCore:
self.config["DeviceProperties"]["Add"][backlight_path] = {"@0,backlight-control": binascii.unhexlify("01000000"), "@0,built-in": binascii.unhexlify("01000000")}
print("- Disabling unsupported iGPU")
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {"name": binascii.unhexlify("23646973706C6179"), "IOName": "#display", "class-code": binascii.unhexlify("FFFFFFFF")}
shutil.copy(self.constants.backlight_path, self.constants.kexts_path)
self.get_kext_by_bundle_path("AppleBacklightFixup.kext")["Enabled"] = True
else:
print("- Failed to determine model")