Remove redundant boot argument for Intel GPUs in VESA mode

This commit is contained in:
Hoang Hong Quan
2024-12-12 20:22:14 +07:00
parent 4e251b2ecb
commit 22fe895e43

View File

@@ -464,14 +464,12 @@ class ConfigProdigy:
if intergrated_gpu[-1].get("OCLP Compatibility"):
boot_args.append("ipc_control_port_options=0")
if intergrated_gpu[-1].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")
if "Ice Lake" in intergrated_gpu[-1].get("Codename"):
boot_args.extend(("-noDC9", "-igfxblr"))
if "Desktop" in hardware_report.get("Motherboard").get("Platform"):
if any(monitor_info.get("Connected GPU") == intergrated_gpu[0] for monitor_name, monitor_info in hardware_report.get("Monitor", {}).items()) and intergrated_gpu[-1].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")
if any(monitor_info.get("Connector Type") in ("DVI", "HDMI") for monitor_name, monitor_info in hardware_report.get("Monitor", {}).items() if monitor_info.get("Connected GPU") == intergrated_gpu[0]):
boot_args.append("-igfxvesa")
elif "Laptop" in hardware_report.get("Motherboard").get("Platform"):