Re-enable CPU power management on legacy Intel CPUs in macOS 13 and newer

This commit is contained in:
Hoang Hong Quan
2024-11-05 14:33:22 +07:00
parent e364832423
commit 82f91bc957
2 changed files with 37 additions and 1 deletions

View File

@@ -545,6 +545,36 @@ kexts = [
"url": "https://github.com/dortania/OpenCore-Legacy-Patcher/raw/main/payloads/Kexts/Acidanthera/AMFIPass-v1.4.1-RELEASE.zip"
}
),
KextInfo(
name = "ASPP-Override",
description = "Re-enable CPU power management for Intel Sandy Bridge CPUs",
category = "Extras",
min_darwin_version = "21.4.0",
download_info = {
"id": 913826421,
"url": "https://github.com/dortania/OpenCore-Legacy-Patcher/raw/refs/heads/main/payloads/Kexts/Misc/ASPP-Override-v1.0.1.zip"
}
),
KextInfo(
name = "AppleIntelCPUPowerManagement",
description = "Re-enable CPU power management on legacy Intel CPUs",
category = "Extras",
min_darwin_version = "22.0.0",
download_info = {
"id": 736296452,
"url": "https://github.com/dortania/OpenCore-Legacy-Patcher/raw/refs/heads/main/payloads/Kexts/Misc/AppleIntelCPUPowerManagement-v1.0.0.zip"
}
),
KextInfo(
name = "AppleIntelCPUPowerManagementClient",
description = "Re-enable CPU power management on legacy Intel CPUs",
category = "Extras",
min_darwin_version = "22.0.0",
download_info = {
"id": 932639706,
"url": "https://github.com/dortania/OpenCore-Legacy-Patcher/raw/refs/heads/main/payloads/Kexts/Misc/AppleIntelCPUPowerManagementClient-v1.0.0.zip"
}
),
KextInfo(
name = "AppleMCEReporterDisabler",
description = "Disables AppleMCEReporter.kext to prevent kernel panics",

View File

@@ -247,6 +247,12 @@ class KextMaestro:
if smbios_model in (device.name for device in mac_model_data.mac_devices[31:34] + mac_model_data.mac_devices[48:50] + mac_model_data.mac_devices[51:61]):
selected_kexts.append("NoTouchID")
if "Sandy Bridge" in hardware_report.get("CPU").get("Codename"):
selected_kexts.append("ASPP-Override")
if "Sandy Bridge" in hardware_report.get("CPU").get("Codename") or "Ivy Bridge" in hardware_report.get("CPU").get("Codename"):
selected_kexts.extend(("AppleIntelCPUPowerManagement", "AppleIntelCPUPowerManagementClient"))
for name in selected_kexts:
self.check_kext(self.get_kext_index(name), macos_version, "Beta" in os_data.get_macos_name_by_darwin(macos_version))
@@ -435,7 +441,7 @@ class KextMaestro:
contents.append(f"\n{category_header}\n" + "=" * len(category_header))
checkbox = "[*]" if kext.checked else "[ ]"
line = "{} {:2}. {:25} - {:60}".format(checkbox, index, kext.name, kext.description)
line = "{} {:2}. {:35} - {:60}".format(checkbox, index, kext.name, kext.description)
if kext.checked:
line = "\033[1;32m{}\033[0m".format(line)
elif not self.utils.parse_darwin_version(kext.min_darwin_version) <= self.utils.parse_darwin_version(macos_version) <= self.utils.parse_darwin_version(kext.max_darwin_version):