From 7446da8e1fbef95a92ecb624ae5352b94c02b0a2 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Thu, 13 May 2021 08:32:23 -0600 Subject: [PATCH] Add agdpmod=vit9696 to all Nvidia Metal iMacs Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/217 --- CHANGELOG.md | 2 ++ Resources/Build.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf4b39352..74a334236 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## 0.1.5 - Fix crashing when Wireless module not present - Add iMac10,1 default dGPU pathing +- Add agdpmod=vit9696 to all Nvidia Metal iMacs + - Fixes external display support on Nvidia iMac12,x ## 0.1.4 - Fix Device Path formatting on 2012+ iMacs diff --git a/Resources/Build.py b/Resources/Build.py index b0200a485..7b8f58c2b 100644 --- a/Resources/Build.py +++ b/Resources/Build.py @@ -382,7 +382,7 @@ class BuildOpenCore: self.get_kext_by_bundle_path("AppleBacklightFixup.kext")["Enabled"] = True elif self.model in ["iMac12,1", "iMac12,2"]: print("- Adding Nvidia Brightness Control and DRM patches") - self.config["DeviceProperties"]["Add"][backlight_path] = {"@0,backlight-control": binascii.unhexlify("01000000"), "@0,built-in": binascii.unhexlify("01000000"), "shikigva": 256} + self.config["DeviceProperties"]["Add"][backlight_path] = {"@0,backlight-control": binascii.unhexlify("01000000"), "@0,built-in": binascii.unhexlify("01000000"), "shikigva": 256, "agdpmod": "vit9696"} 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)