diff --git a/Scripts/acpi_guru.py b/Scripts/acpi_guru.py index 0a15ebd..c53a8f9 100644 --- a/Scripts/acpi_guru.py +++ b/Scripts/acpi_guru.py @@ -2823,7 +2823,7 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "SURFACE", 0x00001000) selected_patches = [] if "Laptop" in hardware_report.get("Motherboard").get("Platform") and \ - "Integrated GPU" in list(hardware_report.get("GPU").items())[0][-1].get("Device Type") and \ + "Integrated GPU" in list(hardware_report.get("GPU").items())[-1][-1].get("Device Type") and \ not "SURFACE" in hardware_report.get("Motherboard").get("Name"): selected_patches.append("ALS") selected_patches.append("PNLF") diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index f16f8cc..9148315 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -403,7 +403,7 @@ class ConfigProdigy: if self.utils.contains_any(cpu_data.IntelCPUGenerations, hardware_report.get("CPU").get("Codename"), end=21): boot_args.append("-igfxbl{}".format("t" if self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("23.0.0") else "r")) - if "Navi 1" in list(hardware_report.get("GPU").items())[-1][-1].get("Codename"): + if "Navi 1" in list(hardware_report.get("GPU").items())[0][-1].get("Codename"): boot_args.append("agdpmod=pikera") if not "SURFACE" in hardware_report.get("Motherboard").get("Name"): @@ -418,10 +418,10 @@ class ConfigProdigy: if list(hardware_report.get("GPU").items())[0][-1].get("Device ID") in pci_data.SpoofGPUIDs: boot_args.append("-radcodec") - if list(hardware_report.get("GPU").items())[-1][-1].get("Device ID") in ("1002-6610", "1002-682B", "1002-6837", "1002-683D", "1002-683F"): + if list(hardware_report.get("GPU").items())[0][-1].get("Device ID") in ("1002-6610", "1002-682B", "1002-6837", "1002-683D", "1002-683F"): boot_args.append("radpg=15") - if list(hardware_report.get("GPU").items())[-1][-1].get("Device ID") in ("1002-67B0", "1002-67B1", "1002-67B8", "1002-6810", "1002-6811"): + if list(hardware_report.get("GPU").items())[0][-1].get("Device ID") in ("1002-67B0", "1002-67B1", "1002-67B8", "1002-6810", "1002-6811"): boot_args.append("-raddvi") if any("Discrete GPU" in device_name for device_name in unsupported_devices): @@ -497,7 +497,7 @@ class ConfigProdigy: hardware_report.get("Motherboard").get("Chipset"), hardware_report.get("CPU").get("Manufacturer"), hardware_report.get("CPU").get("Core Count"), - list(hardware_report.get("GPU").items())[-1][-1].get("Manufacturer"), + list(hardware_report.get("GPU").items())[0][-1].get("Manufacturer"), kexts ) config["Kernel"]["Quirks"]["AppleCpuPmCfgLock"] = not self.utils.contains_any(cpu_data.IntelCPUGenerations, hardware_report.get("CPU").get("Codename"), start=38) is None diff --git a/Scripts/kext_maestro.py b/Scripts/kext_maestro.py old mode 100755 new mode 100644 index 755c457..90b7f54 --- a/Scripts/kext_maestro.py +++ b/Scripts/kext_maestro.py @@ -135,7 +135,7 @@ class KextMaestro: "Integrated GPU" in list(hardware_report.get("GPU").items())[-1][-1].get("Device Type"): selected_kexts.append("NootedRed") else: - selected_kexts.append("NootRX" if "Navi 2" in list(hardware_report.get("GPU").items())[-1][-1].get("Codename") else "WhateverGreen") + selected_kexts.append("NootRX" if "Navi 2" in list(hardware_report.get("GPU").items())[0][-1].get("Codename") else "WhateverGreen") if "Laptop" in hardware_report.get("Motherboard").get("Platform") and "ASUS" in hardware_report.get("Motherboard").get("Name") or \ "NootedRed" in selected_kexts or \