mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
Disable AMD TeraScale 2 GPUs in MacBook Pros
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
- Fix AppleALC support in Mojave
|
- Fix AppleALC support in Mojave
|
||||||
- Fix TeraScale 1 GPU detection
|
- Fix TeraScale 1 GPU detection
|
||||||
- Enable Graphics Acceleration on legacy GPUs by default
|
- Enable Graphics Acceleration on legacy GPUs by default
|
||||||
|
- Automatically disable AMD TeraScale 2 GPUs in MacBook Pros
|
||||||
|
|
||||||
## 0.1.0
|
## 0.1.0
|
||||||
- Fix crash on iMacs with Metal GPUs
|
- Fix crash on iMacs with Metal GPUs
|
||||||
|
|||||||
@@ -512,25 +512,11 @@ class BuildOpenCore:
|
|||||||
plistlib.dump(agpm_config, Path(new_agpm_ls).open("wb"), sort_keys=True)
|
plistlib.dump(agpm_config, Path(new_agpm_ls).open("wb"), sort_keys=True)
|
||||||
plistlib.dump(amc_config, Path(new_amc_ls).open("wb"), sort_keys=True)
|
plistlib.dump(amc_config, Path(new_amc_ls).open("wb"), sort_keys=True)
|
||||||
|
|
||||||
#if self.model in ModelArray.SandyIGPU:
|
if self.model in ["MacBookPro8,2", "MacBookPro8,3"]:
|
||||||
# print("- Adding AppleIntelSNBGraphicsFB patch")
|
print("- Disabling unsupported TeraScale 2 dGPU")
|
||||||
# if self.model == "MacBookPro8,1":
|
self.config["NVRAM"]["Add"]["FA4CE28D-B62F-4C99-9CC3-6815686E30F9"]["gpu-power-prefs"] = binascii.unhexlify("01000000")
|
||||||
# x = b'Mac-94245B3640C91C81'
|
self.config["NVRAM"]["Delete"]["FA4CE28D-B62F-4C99-9CC3-6815686E30F9"] += ["gpu-power-prefs"]
|
||||||
# elif self.model == "MacBookPro8,2":
|
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"] = {"name": binascii.unhexlify("23646973706C6179"), "IOName": "#display", "class-code": binascii.unhexlify("FFFFFFFF")}
|
||||||
# x = b'Mac-94245A3940C91C80'
|
|
||||||
# elif self.model == "MacBookPro8,3":
|
|
||||||
# x = b'Mac-942459F5819B171B'
|
|
||||||
# elif self.model == "MacBookAir4,1":
|
|
||||||
# x = b'Mac-C08A6BB70A942AC2'
|
|
||||||
# elif self.model == "MacBookAir4,2":
|
|
||||||
# x = b'Mac-742912EFDBEE19B3'
|
|
||||||
# elif self.model == "Macmini5,1":
|
|
||||||
# x = b'Mac-8ED6AF5B48C039E1'
|
|
||||||
# elif self.model == "Macmini5,3":
|
|
||||||
# x = b'Mac-7BA5B2794B2CDB12'
|
|
||||||
# self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleIntelSNBGraphicsFB")["Enabled"] = True
|
|
||||||
# self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleIntelSNBGraphicsFB")["Find"] = binascii.unhexlify(str(binascii.hexlify(x),'ascii'))
|
|
||||||
# self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleIntelSNBGraphicsFB")["Replace"] = binascii.unhexlify(str(binascii.hexlify(self.spoofed_board.encode()),'ascii'))
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_item_by_kv(iterable, key, value):
|
def get_item_by_kv(iterable, key, value):
|
||||||
|
|||||||
@@ -1084,6 +1084,8 @@
|
|||||||
<key>csr-active-config</key>
|
<key>csr-active-config</key>
|
||||||
<data>AAAAAA==</data>
|
<data>AAAAAA==</data>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>FA4CE28D-B62F-4C99-9CC3-6815686E30F9</key>
|
||||||
|
<dict/>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Delete</key>
|
<key>Delete</key>
|
||||||
<dict>
|
<dict>
|
||||||
@@ -1101,6 +1103,8 @@
|
|||||||
<array>
|
<array>
|
||||||
<string>boot-args</string>
|
<string>boot-args</string>
|
||||||
</array>
|
</array>
|
||||||
|
<key>FA4CE28D-B62F-4C99-9CC3-6815686E30F9</key>
|
||||||
|
<array/>
|
||||||
</dict>
|
</dict>
|
||||||
<key>LegacyEnable</key>
|
<key>LegacyEnable</key>
|
||||||
<false/>
|
<false/>
|
||||||
|
|||||||
Reference in New Issue
Block a user