mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-20 10:44:32 +10:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cabb5da981 | ||
|
|
f8afde61fe | ||
|
|
95a802a402 |
@@ -1,5 +1,8 @@
|
|||||||
# OpenCore Legacy Patcher changelog
|
# OpenCore Legacy Patcher changelog
|
||||||
|
|
||||||
|
## 0.1.4
|
||||||
|
- Fix Device Path formatting on 2012+ iMacs
|
||||||
|
|
||||||
## 0.1.3
|
## 0.1.3
|
||||||
- Fix internal PCIe devices reporting as external
|
- Fix internal PCIe devices reporting as external
|
||||||
- Opt for `built-in` when device path is detectable
|
- Opt for `built-in` when device path is detectable
|
||||||
|
|||||||
@@ -313,17 +313,21 @@ class BuildOpenCore:
|
|||||||
if self.model in ModelArray.DualGPUPatch:
|
if self.model in ModelArray.DualGPUPatch:
|
||||||
print("- Adding dual GPU patch")
|
print("- Adding dual GPU patch")
|
||||||
if not self.constants.custom_model:
|
if not self.constants.custom_model:
|
||||||
gfx0_path: str = subprocess.run([self.constants.gfxutil_path] + f"-f GFX0".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode()
|
dgpu_vendor,dgpu_device,dgpu_acpi = DeviceProbe.pci_probe().gpu_probe("GFX0")
|
||||||
if gfx0_path == "":
|
self.gfx0_path = DeviceProbe.pci_probe().deviceproperty_probe(dgpu_vendor,dgpu_device,dgpu_acpi)
|
||||||
gfx0_path = "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"
|
if self.gfx0_path == "":
|
||||||
|
print("- Failed to find GFX0 Device path, falling back on known logic")
|
||||||
|
self.gfx0_path = "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"
|
||||||
|
else:
|
||||||
|
print(f"- Found GFX0 Device Path: {self.gfx0_path}")
|
||||||
else:
|
else:
|
||||||
gfx0_path = "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"
|
self.gfx0_path = "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"
|
||||||
if self.model in ModelArray.IntelNvidiaDRM and self.constants.drm_support is True:
|
if self.model in ModelArray.IntelNvidiaDRM and self.constants.drm_support is True:
|
||||||
print("- Prioritizing DRM support over Intel QuickSync")
|
print("- Prioritizing DRM support over Intel QuickSync")
|
||||||
self.config["DeviceProperties"]["Add"][gfx0_path] = {"agdpmod": "vit9696", "shikigva": 256}
|
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696", "shikigva": 256}
|
||||||
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {"disable-gpu-min": "20.0.0"}
|
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {"disable-gpu-min": "20.0.0"}
|
||||||
else:
|
else:
|
||||||
self.config["DeviceProperties"]["Add"][gfx0_path] = {"agdpmod": "vit9696"}
|
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696"}
|
||||||
|
|
||||||
# HiDPI OpenCanopy and FileVault
|
# HiDPI OpenCanopy and FileVault
|
||||||
if self.model in ModelArray.HiDPIpicker:
|
if self.model in ModelArray.HiDPIpicker:
|
||||||
@@ -342,16 +346,17 @@ class BuildOpenCore:
|
|||||||
|
|
||||||
def backlight_path_detection(self):
|
def backlight_path_detection(self):
|
||||||
if not self.constants.custom_model:
|
if not self.constants.custom_model:
|
||||||
gfx0_path: str = subprocess.run([self.constants.gfxutil_path] + f"-f GFX0".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode()
|
dgpu_vendor,dgpu_device,dgpu_acpi = DeviceProbe.pci_probe().gpu_probe("GFX0")
|
||||||
try:
|
self.gfx0_path = DeviceProbe.pci_probe().deviceproperty_probe(dgpu_vendor,dgpu_device,dgpu_acpi)
|
||||||
self.gfx0_path = [line.strip().split("= ", 1)[1] for line in gfx0_path.split("\n") if "GFX0" in line.strip()][0]
|
if self.gfx0_path == "":
|
||||||
print(f"- Found GFX0 device at {self.gfx0_path}")
|
|
||||||
except IndexError:
|
|
||||||
print("- Failed to find GFX0 Device path, falling back on known logic")
|
print("- Failed to find GFX0 Device path, falling back on known logic")
|
||||||
if self.model in ["iMac11,1", "iMac11,3"]:
|
if self.model in ["iMac11,1", "iMac11,3"]:
|
||||||
self.gfx0_path = "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"
|
self.gfx0_path = "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"
|
||||||
else:
|
else:
|
||||||
self.gfx0_path = "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"
|
self.gfx0_path = "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"
|
||||||
|
else:
|
||||||
|
print(f"- Found GFX0 Device Path: {self.gfx0_path}")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if self.model in ["iMac11,1", "iMac11,3"]:
|
if self.model in ["iMac11,1", "iMac11,3"]:
|
||||||
self.gfx0_path = "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"
|
self.gfx0_path = "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
class Constants:
|
class Constants:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.patcher_version = "0.1.3"
|
self.patcher_version = "0.1.4"
|
||||||
self.opencore_commit = "65cc81b - 05-03-2021"
|
self.opencore_commit = "65cc81b - 05-03-2021"
|
||||||
self.opencore_version = "0.6.9"
|
self.opencore_version = "0.6.9"
|
||||||
self.lilu_version = "1.5.3"
|
self.lilu_version = "1.5.3"
|
||||||
|
|||||||
Reference in New Issue
Block a user