From 61ef7fe81ba5c826c2208e727fc0f531ae97ff6a Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 26 May 2022 20:10:41 -0600 Subject: [PATCH] Add M4000 PCI ID --- data/pci_data.py | 1 + resources/build.py | 4 ++-- resources/defaults.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/pci_data.py b/data/pci_data.py index 5a40fd1c3..6e8a72700 100644 --- a/data/pci_data.py +++ b/data/pci_data.py @@ -543,6 +543,7 @@ class nvidia_ids: 0x13d7, # GM204 [GeForce GTX 980M] 0x13d8, # GM204 [GeForce GTX 970M] 0x13d9, # GM204 [GeForce GTX 965M] + 0x13F1, # GM204 [Quadro M4000] 0x1401, # GM206 [GeForce GTX 960] 0x1407, # GM206 [GeForce GTX 750 v2] diff --git a/resources/build.py b/resources/build.py index 2ca896d5d..e06ec7c66 100644 --- a/resources/build.py +++ b/resources/build.py @@ -689,7 +689,7 @@ class BuildOpenCore: self.config["UEFI"]["Quirks"]["ForgeUefiSupport"] = True self.config["UEFI"]["Quirks"]["ReloadOptionRoms"] = True - if device.arch in [device_probe.NVIDIA.Archs.Maxwell, device_probe.NVIDIA.Archs.Pascal]: + if device.arch in [device_probe.NVIDIA.Archs.Fermi, device_probe.NVIDIA.Archs.Maxwell, device_probe.NVIDIA.Archs.Pascal]: print("- Adding Web Driver Patches") self.config["DeviceProperties"]["Add"][device.pci_path].update({"disable-metal": 1, "force-compat": 1}) if self.get_kext_by_bundle_path("WhateverGreen.kext")["Enabled"] is False: @@ -714,7 +714,7 @@ class BuildOpenCore: self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -wegtree agdpmod=vit9696" self.config["UEFI"]["Quirks"]["ForgeUefiSupport"] = True self.config["UEFI"]["Quirks"]["ReloadOptionRoms"] = True - if device.arch in [device_probe.NVIDIA.Archs.Maxwell, device_probe.NVIDIA.Archs.Pascal]: + if device.arch in [device_probe.NVIDIA.Archs.Fermi, device_probe.NVIDIA.Archs.Maxwell, device_probe.NVIDIA.Archs.Pascal]: print("- Adding Web Driver Patches") if "ngfxgl=1 ngfxcompat=1" not in self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"]: self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " ngfxgl=1 ngfxcompat=1" diff --git a/resources/defaults.py b/resources/defaults.py index 9770c9df6..6d83ce4cd 100644 --- a/resources/defaults.py +++ b/resources/defaults.py @@ -47,7 +47,7 @@ class generate_defaults: settings.amfi_status = True settings.allow_fv_root = True # Allow FileVault on broken seal break - elif gpu.arch in [device_probe.NVIDIA.Archs.Maxwell, device_probe.NVIDIA.Archs.Pascal]: + elif gpu.arch in [device_probe.NVIDIA.Archs.Fermi, device_probe.NVIDIA.Archs.Maxwell, device_probe.NVIDIA.Archs.Pascal]: settings.custom_sip_value = "0xA03" break if (