This adds a quirk for the Lenovo X13 Gen 4 AMD platform. If booted without the kernel-parameter acpi.ec_no_wakeup=1 the system will resume from sleep upon change of AC state. Unplugging or plugging the power cable thus wakes the system from suspend. Disabling wakeups from the embedded controller fixes this behavior. Resuming by opening the lid stays functional. Only apply this fix for the AMD version, as it is unknown if the Intel platform is also affected. This was observed on a system with the following BIOS / EC software: BIOS: 1.28 (R29ET54W) EC: 1.31 (R29HT55W) Signed-off-by: David Bauer <mail@xxxxxxxxxxxxxxx> --- drivers/acpi/ec.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 38d2f6e6b12b..f00cdcf06eb8 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -2252,6 +2252,13 @@ static const struct dmi_system_id acpi_ec_no_wakeup[] = { DMI_MATCH(DMI_PRODUCT_FAMILY, "ThinkPad X1 Yoga 3rd"), }, }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + /* ThinkPad X13 Gen 4 (AMD) */ + DMI_MATCH(DMI_PRODUCT_SKU, "LENOVO_MT_21J3_BU_Think_FM_ThinkPad X13 Gen 4"), + }, + }, { .matches = { DMI_MATCH(DMI_SYS_VENDOR, "HP"), -- 2.45.2