From f5a55d061f6f292b13759a8b3f046f9cae14dc94 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sat, 12 Oct 2024 16:38:38 +0700 Subject: [PATCH] Fix brightness issue on laptops using UHD 620 (Kaby Lake) --- Scripts/config_prodigy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index 47a6f11..202e2f3 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -389,7 +389,8 @@ class ConfigProdigy: boot_args.append("-cdfon") if "Intel" in hardware_report.get("CPU").get("Manufacturer"): - if list(hardware_report.get("GPU").items())[-1][-1].get("Device ID")[5:].startswith(("3E", "87", "9B")) and \ + intergrated_gpu = list(hardware_report.get("GPU").items())[-1][-1] + if intergrated_gpu.get("Device ID")[5:].startswith(("3E", "87", "9B")) and \ self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("19.4.0"): boot_args.append("igfxonln=1") @@ -397,7 +398,7 @@ class ConfigProdigy: boot_args.extend(("-noDC9", "-igfxcdc", "-igfxdvmt", "-igfxdbeo")) if "Laptop" in hardware_report.get("Motherboard").get("Platform"): - if self.utils.contains_any(cpu_data.IntelCPUGenerations, hardware_report.get("CPU").get("Codename"), end=21): + if intergrated_gpu.get("Device ID")[5:].startswith(("09", "19", "59", "8C", "3E", "87", "9B", "8A")) and not intergrated_gpu.get("Device ID").endswith("5917"): 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())[0][-1].get("Codename"):