From 58ce27fdbe09d76241de913b2ccd387cd8968c11 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sat, 7 Dec 2024 18:33:05 +0700 Subject: [PATCH] Fix issue when no input devices are detected --- Scripts/acpi_guru.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/acpi_guru.py b/Scripts/acpi_guru.py index e7b160c..8336ef5 100644 --- a/Scripts/acpi_guru.py +++ b/Scripts/acpi_guru.py @@ -3065,7 +3065,7 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "UsbReset", 0x00001000) selected_patches.append("Surface Patch") else: if "Intel" in hardware_report.get("CPU").get("Manufacturer"): - for device_name, device_info in hardware_report.get("Input").items(): + for device_name, device_info in hardware_report.get("Input", {}).items(): if "I2C" in device_info.get("Device Type", "None"): selected_patches.append("GPI0")