From de1b893049b8a0112c6949e0acfd11f68b94b7c1 Mon Sep 17 00:00:00 2001
From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com>
Date: Thu, 22 Apr 2021 09:51:54 -0600
Subject: [PATCH] Disable iGPU when running iMac13,x/14,x
---
CHANGELOG.md | 1 +
Resources/Build.py | 1 +
payloads/Config/config.plist | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7eba72883..aeb02c5e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@
- Fix build crashing when no wifi card is present
- Allow Legacy Acceleration Patches on Mac Pros and Xserves
- Fix USB kernel panics on iMac7,1
+- Fix AppleALC support in Mojave
## 0.1.0
- Fix crash on iMacs with Metal GPUs
diff --git a/Resources/Build.py b/Resources/Build.py
index b3c78944e..1db665a6f 100644
--- a/Resources/Build.py
+++ b/Resources/Build.py
@@ -266,6 +266,7 @@ class BuildOpenCore:
if self.model in ModelArray.IntelNvidiaDRM and self.constants.drm_support is True:
print("- Prioritizing DRM support over Intel QuickSync")
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"] = {"agdpmod": "pikera", "shikigva": 256}
+ self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {"disable-gpu-min": "20.0.0"}
else:
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"] = {"agdpmod": "pikera"}
diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist
index 25ac5a87e..85c41e59a 100644
--- a/payloads/Config/config.plist
+++ b/payloads/Config/config.plist
@@ -220,7 +220,7 @@
MaxKernel
MinKernel
- 19.0.0
+ 18.0.0
BundlePath
AppleALC.kext
ExecutablePath