mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
Temporarily disable AMD Brightness patches
Currently will fail linking when AMDx3000 is installed
This commit is contained in:
@@ -220,19 +220,19 @@ class PatchSysVolume:
|
|||||||
if self.dgpu_devices and self.dgpu_vendor == "10DE":
|
if self.dgpu_devices and self.dgpu_vendor == "10DE":
|
||||||
print("- Adding Nvidia Brightness Control patches")
|
print("- Adding Nvidia Brightness Control patches")
|
||||||
self.add_new_binaries(ModelArray.AddNvidiaBrightness11, self.constants.legacy_nvidia_path)
|
self.add_new_binaries(ModelArray.AddNvidiaBrightness11, self.constants.legacy_nvidia_path)
|
||||||
elif self.dgpu_devices and self.dgpu_vendor == "1002":
|
#elif self.dgpu_devices and self.dgpu_vendor == "1002":
|
||||||
print("- Adding AMD/ATI Brightness Control patches")
|
# print("- Adding AMD/ATI Brightness Control patches")
|
||||||
self.add_new_binaries(ModelArray.AddAMDBrightness11, self.constants.legacy_amd_path)
|
# self.add_new_binaries(ModelArray.AddAMDBrightness11, self.constants.legacy_amd_path)
|
||||||
if self.igpu_devices and self.igpu_vendor == "8086" and self.igpu_device in ModelArray.IronLakepciid:
|
if self.igpu_devices and self.igpu_vendor == "8086" and self.igpu_device in ModelArray.IronLakepciid:
|
||||||
print("- Adding Intel Ironlake Brightness Control patches")
|
print("- Adding Intel Ironlake Brightness Control patches")
|
||||||
self.add_new_binaries(ModelArray.AddIntelGen1Brightness, self.constants.legacy_intel_gen1_path)
|
self.add_new_binaries(ModelArray.AddIntelGen1Brightness, self.constants.legacy_intel_gen1_path)
|
||||||
elif self.igpu_devices and self.igpu_vendor == "8086" and self.igpu_device in ModelArray.SandyBridgepiciid:
|
elif self.igpu_devices and self.igpu_vendor == "8086" and self.igpu_device in ModelArray.SandyBridgepiciid:
|
||||||
print("- Adding Intel Sandy Bridge Brightness Control patches")
|
print("- Adding Intel Sandy Bridge Brightness Control patches")
|
||||||
self.add_new_binaries(ModelArray.AddIntelGen2Brightness, self.constants.legacy_intel_gen2_path)
|
self.add_new_binaries(ModelArray.AddIntelGen2Brightness, self.constants.legacy_intel_gen2_path)
|
||||||
if self.model in ModelArray.LegacyGPUAMDIntelGen2:
|
#if self.model in ModelArray.LegacyGPUAMDIntelGen2:
|
||||||
# Swap custom AppleIntelSNBGraphicsFB-AMD.kext, required to fix linking
|
# Swap custom AppleIntelSNBGraphicsFB-AMD.kext, required to fix linking
|
||||||
subprocess.run(f"sudo rm -R {self.mount_extensions}/AppleIntelSNBGraphicsFB.kext".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
# subprocess.run(f"sudo rm -R {self.mount_extensions}/AppleIntelSNBGraphicsFB.kext".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
||||||
subprocess.run(f"sudo cp -R {self.constants.legacy_amd_path}/AMD-Link/AppleIntelSNBGraphicsFB.kext {self.mount_extensions}".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
# subprocess.run(f"sudo cp -R {self.constants.legacy_amd_path}/AMD-Link/AppleIntelSNBGraphicsFB.kext {self.mount_extensions}".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
||||||
elif self.igpu_device and self.igpu_vendor == "10DE" and not self.dgpu_devices:
|
elif self.igpu_device and self.igpu_vendor == "10DE" and not self.dgpu_devices:
|
||||||
# Avoid patching twice, as Nvidia iGPUs will only have Nvidia dGPUs
|
# Avoid patching twice, as Nvidia iGPUs will only have Nvidia dGPUs
|
||||||
print("- Adding Nvidia Brightness Control patches")
|
print("- Adding Nvidia Brightness Control patches")
|
||||||
|
|||||||
Reference in New Issue
Block a user