From 06e30adcc689b8387095c9ce24400d304f094241 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Mon, 28 Apr 2025 21:32:17 +0700 Subject: [PATCH] Add YogaSMC kext --- Scripts/datasets/kext_data.py | 10 ++++++++++ Scripts/datasets/pci_data.py | 4 +++- Scripts/kext_maestro.py | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Scripts/datasets/kext_data.py b/Scripts/datasets/kext_data.py index 8df7462..e56bc46 100644 --- a/Scripts/datasets/kext_data.py +++ b/Scripts/datasets/kext_data.py @@ -615,6 +615,16 @@ kexts = [ "repo": "BigSurface" } ), + KextInfo( + name = "YogaSMC", + description = "Enables support for syncing SMC keys, controlling sensors and managing vendor-specific features", + category = "Brand Specific", + requires_kexts = ["Lilu", "VirtualSMC"], + github_repo = { + "owner": "zhen-zen", + "repo": "YogaSMC" + } + ), KextInfo( name = "CtlnaAHCIPort", description = "Improves support for certain SATA controllers", diff --git a/Scripts/datasets/pci_data.py b/Scripts/datasets/pci_data.py index 609c991..0124f93 100644 --- a/Scripts/datasets/pci_data.py +++ b/Scripts/datasets/pci_data.py @@ -1364,4 +1364,6 @@ ChromebookIDs = { ThinkPadTWX30IDs = { "8086-1E55": ("21F317AA", "21F617AA", "21FB17AA"), "8086-1E58": ("500C17AA"), -} \ No newline at end of file +} + +YogaHIDs = ("INT33D5", "INTC1051", "INTC1054", "LEN0068", "LEN0268", "VPC2004") \ No newline at end of file diff --git a/Scripts/kext_maestro.py b/Scripts/kext_maestro.py index a910efe..3845945 100644 --- a/Scripts/kext_maestro.py +++ b/Scripts/kext_maestro.py @@ -282,6 +282,10 @@ class KextMaestro: selected_kexts.append("AlpsHID") elif 78 < idx: selected_kexts.append("VoodooRMI") + + for device_name, device_info in hardware_report.get("System Devices", {}).items(): + if device_info.get("Bus Type") == "ACPI" and device_info.get("Device") in pci_data.YogaHIDs: + selected_kexts.append("YogaSMC") if any(patch.checked for patch in acpi_patches if patch.name == "BATP"): selected_kexts.append("ECEnabler")