Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -2366,6 +2366,25 @@
{ },
};

+/*
+ * MacBookPro14,3 has an ECDT and no PNP0D80 device, so lps0_device_attach()
+ * never marks the EC GPE wake-capable. Lid open arrives as an EC query that
+ * notifies LID0. In s2idle, acpi_set_gpe_wake_mask() then returns AE_TYPE and
+ * the EC wrapper ignores it, so the lid event is processed only after another
+ * wakeup. The same helper LPS0 uses is enough; it only sets ACPI_GPE_CAN_WAKE.
+ *
+ * https://github.com/omacom/omarchy/pull/14692
+ */
+static const struct dmi_system_id acpi_ec_mbp143_gpe_wake[] __initconst = {
+ {
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro14,3"),
+ },
+ },
+ { },
+};
+
void __init acpi_ec_init(void)
{
int result;
@@ -2387,4 +2406,13 @@
platform_driver_register(&acpi_ec_driver);

acpi_ec_ecdt_start();
+
+ /*
+ * After the boot EC exists. The helper no-ops when ec_no_wakeup is set.
+ */
+ if (dmi_check_system(acpi_ec_mbp143_gpe_wake) && first_ec &&
+ !ec_no_wakeup && first_ec->gpe >= 0) {
+ acpi_ec_mark_gpe_for_wake();
+ pr_info("GPE=0x%x marked wake-capable\n", first_ec->gpe);
+ }
}
5 changes: 4 additions & 1 deletion pkgbuilds/linux-omarchy-eevdf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgbase=linux-omarchy-eevdf
pkgver=7.2.15
pkgrel=1
pkgrel=2
pkgdesc='Omarchy Linux'
url='https://omarchy.org'
arch=(
Expand Down Expand Up @@ -195,6 +195,7 @@ source=(
0775-acpi-button-razer-blade-pro-17-lid-open.patch{,.sig}
0776-acpi-pm-s2idle-ixx-gpe-wake-indicator.patch{,.sig}
0777-acpi-pm-sleep-drop-unused-sleep-no-lps0.patch{,.sig}
0778-acpi-ec-macbookpro143-gpe-wake.patch
0800-platform-updates.patch{,.sig}
0801-amd-pmf-util-unbind-use-after-free.patch{,.sig}
0802-platform-fixes.patch{,.sig}
Expand Down Expand Up @@ -545,6 +546,7 @@ b2sums=('a1d1a6572667dfd75f7dde083a8d461db98e08bbc67cdd395e2d73a422ee487bd14392c
'SKIP'
'b7195ae9c1bd2c4e90e0b223233737bb5d82fd615aade6686dd01c27500b7981075a734f7edeb8461c1f3431d2c46107d269784864dc1849b8460cd8161a4a2a'
'SKIP'
'1c7cfa62e2fc00fd19fe7be8718a1df1481ec4c57e86fda53aaf7dfd07cb44161dad8fb39efb87a113f9a0f9157141ce99e7e655d2b5445801c9bf12f5569dac'
'f6430036af77a31a9ddd16200bd3c2c7b1b7e46475c7917dee91c835766be046a31736123ba8429ca2f0f8d3b93ef60522873bbec45d50b954cbb8319e6f25ba'
'SKIP'
'd7dffb68fd22db7ef41d1ac193dd297fb6150f034f257a44e6cb0a4848dc4a94e328c2e26d5296a72993e2db75d09e3ac46456d337a5bae767fb266082d3cc66'
Expand Down Expand Up @@ -924,6 +926,7 @@ sha256sums=('d0f6b1d7324c937ccaeb5c4ca7084bfcf71db2edb3e2d3a31f0ad83a681809ab'
'SKIP'
'd4d9c2fc22f1891db0910de91030b4419db5aae88d830a856ec84232b4bf550b'
'SKIP'
'8038d040ce83e410e3ebe735aa1ace4f42b695a4a1c81966bbefe8529c835f97'
'6800dd82115ebe71d80dde0bb368fbd8563caa6c29127ffde0d6b5df81b502b0'
'SKIP'
'd90cc6570a47c8754e4c5d45834e0434c0a1fcabda9b8933b1fba84e3dabc083'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -2366,6 +2366,25 @@
{ },
};

+/*
+ * MacBookPro14,3 has an ECDT and no PNP0D80 device, so lps0_device_attach()
+ * never marks the EC GPE wake-capable. Lid open arrives as an EC query that
+ * notifies LID0. In s2idle, acpi_set_gpe_wake_mask() then returns AE_TYPE and
+ * the EC wrapper ignores it, so the lid event is processed only after another
+ * wakeup. The same helper LPS0 uses is enough; it only sets ACPI_GPE_CAN_WAKE.
+ *
+ * https://github.com/omacom/omarchy/pull/14692
+ */
+static const struct dmi_system_id acpi_ec_mbp143_gpe_wake[] __initconst = {
+ {
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro14,3"),
+ },
+ },
+ { },
+};
+
void __init acpi_ec_init(void)
{
int result;
@@ -2387,4 +2406,13 @@
platform_driver_register(&acpi_ec_driver);

acpi_ec_ecdt_start();
+
+ /*
+ * After the boot EC exists. The helper no-ops when ec_no_wakeup is set.
+ */
+ if (dmi_check_system(acpi_ec_mbp143_gpe_wake) && first_ec &&
+ !ec_no_wakeup && first_ec->gpe >= 0) {
+ acpi_ec_mark_gpe_for_wake();
+ pr_info("GPE=0x%x marked wake-capable\n", first_ec->gpe);
+ }
}
5 changes: 4 additions & 1 deletion pkgbuilds/linux-omarchy-muqss/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgbase=linux-omarchy-muqss
pkgver=7.2.15
pkgrel=1
pkgrel=2
pkgdesc='Omarchy Linux (MuQSS CPU scheduler)'
url='https://omarchy.org'
arch=(
Expand Down Expand Up @@ -195,6 +195,7 @@ source=(
0775-acpi-button-razer-blade-pro-17-lid-open.patch{,.sig}
0776-acpi-pm-s2idle-ixx-gpe-wake-indicator.patch{,.sig}
0777-acpi-pm-sleep-drop-unused-sleep-no-lps0.patch{,.sig}
0778-acpi-ec-macbookpro143-gpe-wake.patch
0800-platform-updates.patch{,.sig}
0801-amd-pmf-util-unbind-use-after-free.patch{,.sig}
0802-platform-fixes.patch{,.sig}
Expand Down Expand Up @@ -545,6 +546,7 @@ b2sums=('a1d1a6572667dfd75f7dde083a8d461db98e08bbc67cdd395e2d73a422ee487bd14392c
'SKIP'
'b7195ae9c1bd2c4e90e0b223233737bb5d82fd615aade6686dd01c27500b7981075a734f7edeb8461c1f3431d2c46107d269784864dc1849b8460cd8161a4a2a'
'SKIP'
'1c7cfa62e2fc00fd19fe7be8718a1df1481ec4c57e86fda53aaf7dfd07cb44161dad8fb39efb87a113f9a0f9157141ce99e7e655d2b5445801c9bf12f5569dac'
'f6430036af77a31a9ddd16200bd3c2c7b1b7e46475c7917dee91c835766be046a31736123ba8429ca2f0f8d3b93ef60522873bbec45d50b954cbb8319e6f25ba'
'SKIP'
'd7dffb68fd22db7ef41d1ac193dd297fb6150f034f257a44e6cb0a4848dc4a94e328c2e26d5296a72993e2db75d09e3ac46456d337a5bae767fb266082d3cc66'
Expand Down Expand Up @@ -924,6 +926,7 @@ sha256sums=('d0f6b1d7324c937ccaeb5c4ca7084bfcf71db2edb3e2d3a31f0ad83a681809ab'
'SKIP'
'd4d9c2fc22f1891db0910de91030b4419db5aae88d830a856ec84232b4bf550b'
'SKIP'
'8038d040ce83e410e3ebe735aa1ace4f42b695a4a1c81966bbefe8529c835f97'
'6800dd82115ebe71d80dde0bb368fbd8563caa6c29127ffde0d6b5df81b502b0'
'SKIP'
'd90cc6570a47c8754e4c5d45834e0434c0a1fcabda9b8933b1fba84e3dabc083'
Expand Down
43 changes: 43 additions & 0 deletions pkgbuilds/linux-omarchy/0778-acpi-ec-macbookpro143-gpe-wake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -2366,6 +2366,25 @@
{ },
};

+/*
+ * MacBookPro14,3 has an ECDT and no PNP0D80 device, so lps0_device_attach()
+ * never marks the EC GPE wake-capable. Lid open arrives as an EC query that
+ * notifies LID0. In s2idle, acpi_set_gpe_wake_mask() then returns AE_TYPE and
+ * the EC wrapper ignores it, so the lid event is processed only after another
+ * wakeup. The same helper LPS0 uses is enough; it only sets ACPI_GPE_CAN_WAKE.
+ *
+ * https://github.com/omacom/omarchy/pull/14692
+ */
+static const struct dmi_system_id acpi_ec_mbp143_gpe_wake[] __initconst = {
+ {
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro14,3"),
+ },
+ },
+ { },
+};
+
void __init acpi_ec_init(void)
{
int result;
@@ -2387,4 +2406,13 @@
platform_driver_register(&acpi_ec_driver);

acpi_ec_ecdt_start();
+
+ /*
+ * After the boot EC exists. The helper no-ops when ec_no_wakeup is set.
+ */
+ if (dmi_check_system(acpi_ec_mbp143_gpe_wake) && first_ec &&
+ !ec_no_wakeup && first_ec->gpe >= 0) {
+ acpi_ec_mark_gpe_for_wake();
+ pr_info("GPE=0x%x marked wake-capable\n", first_ec->gpe);
+ }
}
5 changes: 4 additions & 1 deletion pkgbuilds/linux-omarchy/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgbase=linux-omarchy
pkgver=7.2.15
pkgrel=2
pkgrel=3
# NVIDIA's open kernel modules ship prebuilt as $pkgbase-nvidia-open, built in
# this recipe so every kernel lands with modules for it and nobody compiles
# them through DKMS on a kernel update. Keep this version in step with
Expand Down Expand Up @@ -202,6 +202,7 @@ source=(
0775-acpi-button-razer-blade-pro-17-lid-open.patch{,.sig}
0776-acpi-pm-s2idle-ixx-gpe-wake-indicator.patch{,.sig}
0777-acpi-pm-sleep-drop-unused-sleep-no-lps0.patch{,.sig}
0778-acpi-ec-macbookpro143-gpe-wake.patch
0800-platform-updates.patch{,.sig}
0801-amd-pmf-util-unbind-use-after-free.patch{,.sig}
0802-platform-fixes.patch{,.sig}
Expand Down Expand Up @@ -556,6 +557,7 @@ b2sums=('a1d1a6572667dfd75f7dde083a8d461db98e08bbc67cdd395e2d73a422ee487bd14392c
'SKIP'
'b7195ae9c1bd2c4e90e0b223233737bb5d82fd615aade6686dd01c27500b7981075a734f7edeb8461c1f3431d2c46107d269784864dc1849b8460cd8161a4a2a'
'SKIP'
'1c7cfa62e2fc00fd19fe7be8718a1df1481ec4c57e86fda53aaf7dfd07cb44161dad8fb39efb87a113f9a0f9157141ce99e7e655d2b5445801c9bf12f5569dac'
'f6430036af77a31a9ddd16200bd3c2c7b1b7e46475c7917dee91c835766be046a31736123ba8429ca2f0f8d3b93ef60522873bbec45d50b954cbb8319e6f25ba'
'SKIP'
'd7dffb68fd22db7ef41d1ac193dd297fb6150f034f257a44e6cb0a4848dc4a94e328c2e26d5296a72993e2db75d09e3ac46456d337a5bae767fb266082d3cc66'
Expand Down Expand Up @@ -938,6 +940,7 @@ sha256sums=('d0f6b1d7324c937ccaeb5c4ca7084bfcf71db2edb3e2d3a31f0ad83a681809ab'
'SKIP'
'd4d9c2fc22f1891db0910de91030b4419db5aae88d830a856ec84232b4bf550b'
'SKIP'
'8038d040ce83e410e3ebe735aa1ace4f42b695a4a1c81966bbefe8529c835f97'
'6800dd82115ebe71d80dde0bb368fbd8563caa6c29127ffde0d6b5df81b502b0'
'SKIP'
'd90cc6570a47c8754e4c5d45834e0434c0a1fcabda9b8933b1fba84e3dabc083'
Expand Down
Loading