Skip to contentSkip to conversation

ACPI / EC: Use ec_no_wakeup on ThinkPad X1 Yoga 3rd

PATCH Applied Aaron Ma 2 participants 2 messages Jul 31, 2018 – Aug 12, 2018 ACPI

lore
Share & tools
lore

Aaron Ma

author
#0 lore raw

PATCH 1/1 ACPI / EC: Use ec_no_wakeup on ThinkPad X1 Yoga 3rd

Like on X1C6, on X1Y3 EC interrupts constantly wake up system from s2idle, the power consumption is extremely high.
So make ec_no_wakeup be true as default to keep system in s2idle mode and reduce power consumption.

Power button works when ec_no_wakeup=true.

---
 drivers/acpi/ec.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/acpi/ec.c +7 -0
index 917f77f4cb55..6291d5c77267 100644
@@ -2045,6 +2045,13 @@ static const struct dmi_system_id acpi_ec_no_wakeup[] = {
 			DMI_MATCH(DMI_PRODUCT_FAMILY, "Thinkpad X1 Carbon 6th"),
 		},
 	},
+	{
+		.ident = "ThinkPad X1 Yoga 3rd",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "ThinkPad X1 Yoga 3rd"),
+		},
+	},
 	{ },
 };
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 21 lines · CEST Aaron Ma

Like on X1C6, on X1Y3 EC interrupts constantly wake up system from s2idle, the power consumption is extremely high.
So make ec_no_wakeup be true as default to keep system in s2idle mode and reduce power consumption.

Power button works when ec_no_wakeup=true.

---
 drivers/acpi/ec.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/acpi/ec.c +0 -0
index 917f77f4cb55..6291d5c77267 100644
@@ -2045,6 +2045,13 @@ static const struct dmi_system_id acpi_ec_no_wakeup[] = {
 			DMI_MATCH(DMI_PRODUCT_FAMILY, "Thinkpad X1 Carbon 6th"),
 		},
 	},

drivers/acpi/ec.c static const struct dmi_system_id acpi_ec_no_wakeup[] = { · line 2057

Quoted 10 lines
drivers/acpi/ec.c +7 -0
+	{
+		.ident = "ThinkPad X1 Yoga 3rd",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "ThinkPad X1 Yoga 3rd"),
+		},
+	},
 	{ },
 };
 

Applied, thanks!