From ecde9ce077d7dbba081160ba0bb0bf79f377d562 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Fri, 15 Oct 2021 16:08:45 -0600 Subject: [PATCH] Fix Nvdiai MXM patch set --- resources/build.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/resources/build.py b/resources/build.py index bd55c19b6..cdd189f80 100644 --- a/resources/build.py +++ b/resources/build.py @@ -499,12 +499,8 @@ class BuildOpenCore: "@0,backlight-control": binascii.unhexlify("01000000"), "@0,built-in": binascii.unhexlify("01000000"), "shikigva": 256, + "agdpmod": "vit9696", } - if self.constants.serial_settings != "None": - self.config["DeviceProperties"]["Add"][backlight_path] += { - "agdpmod": "vit9696", - } - if self.constants.custom_model and self.model == "iMac11,2": # iMac11,2 can have either PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0) or PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0) # Set both properties when we cannot run hardware detection @@ -513,11 +509,8 @@ class BuildOpenCore: "@0,backlight-control": binascii.unhexlify("01000000"), "@0,built-in": binascii.unhexlify("01000000"), "shikigva": 256, + "agdpmod": "vit9696", } - if self.constants.serial_settings != "None": - self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"] += { - "agdpmod": "vit9696", - } elif self.model in ["iMac12,1", "iMac12,2"]: print("- Adding Nvidia Brightness Control and DRM patches") self.config["DeviceProperties"]["Add"][backlight_path] = {