mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Handle logic for adding kext for I2C or PS2 touchpad more accurately
This commit is contained in:
+13
-12
@@ -668,21 +668,22 @@ class KextMaestro:
|
|||||||
if not device_props.get("Bus Type", "").startswith("ACPI"):
|
if not device_props.get("Bus Type", "").startswith("ACPI"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
device_id = device_props.get("Device ID")
|
||||||
if "PS/2" in device_name:
|
if "PS/2" in device_name:
|
||||||
kexts.extend(["VoodooInput", "VoodooPS2"])
|
kexts.extend(["VoodooInput", "VoodooPS2"])
|
||||||
|
if device_id.startswith("SYN"):
|
||||||
|
kexts.append("VoodooRMI")
|
||||||
if "I2C" in device_name:
|
if "I2C" in device_name:
|
||||||
kexts.extend(["VoodooInput", "VoodooI2C"])
|
kexts.extend(["VoodooInput", "VoodooI2C"])
|
||||||
|
if device_id in pci_data.InputIDs:
|
||||||
device_id = device_props.get("Device ID")
|
idx = pci_data.InputIDs.index(device_id)
|
||||||
if device_id in pci_data.InputIDs:
|
|
||||||
idx = pci_data.InputIDs.index(device_id)
|
if idx < 77:
|
||||||
|
kexts.append("AlpsHID")
|
||||||
if idx < 77:
|
elif 76 < idx < 80:
|
||||||
kexts.append("AlpsHID")
|
kexts.append("VoodooSMBus")
|
||||||
elif 76 < idx < 80:
|
else:
|
||||||
kexts.append("VoodooSMBus")
|
kexts.append("VoodooRMI")
|
||||||
else:
|
|
||||||
kexts.append("VoodooRMI")
|
|
||||||
|
|
||||||
if "Laptop" in platform and "SURFACE" not in motherboard_name and battery_status_patch_needed:
|
if "Laptop" in platform and "SURFACE" not in motherboard_name and battery_status_patch_needed:
|
||||||
kexts.append("ECEnabler")
|
kexts.append("ECEnabler")
|
||||||
@@ -705,7 +706,7 @@ class KextMaestro:
|
|||||||
else:
|
else:
|
||||||
kexts.append("XHCI-unsupported")
|
kexts.append("XHCI-unsupported")
|
||||||
|
|
||||||
return list(set(kexts))
|
return sorted(list(set(kexts)))[::-1]
|
||||||
|
|
||||||
def install_kexts_to_efi(self, kexts, macos_version, kexts_directory):
|
def install_kexts_to_efi(self, kexts, macos_version, kexts_directory):
|
||||||
for kext_name in kexts:
|
for kext_name in kexts:
|
||||||
|
|||||||
Reference in New Issue
Block a user