Repository navigation
Conversation
This model has an ECDT and no LPS0 device, so nothing marks the EC GPE wake-capable. Lid open is an EC query and is ignored in s2idle until some other wakeup. Call the same helper the LPS0 path uses.
[Medium impact] The reviewed changes appear safe to merge; no actionable defect was established. SummaryAdds an EC wake-capability quirk for
Reviews (1) · Last reviewed commit: "linux-omarchy: mark the EC GPE wake-capa..." · Reviewed by Greptile |
|
Tested-by: Sergey Armodin [email protected] MacBookPro14,3, firmware 529.140.2.0.0. I took the recipe from this branch (
One cycle on one unit; battery drain not measured. |
|
Sorry, this was closed by accident: I deleted my fork by mistake, and GitHub closed the PR with it. It can't be reopened, so I've opened a new PR with the same commit and no changes: #3393. Earlier discussion stays here. |
Problem
On the MacBookPro14,3, opening the lid does not wake s2idle. The firmware has an ECDT and no
PNP0D80device, solps0_device_attach()never runs. That is the only caller ofacpi_ec_mark_gpe_for_wake().Lid open is an EC query (
_Q20notifies LID0), not a direct wake on the lid_PRWGPE.acpi_s2idle_prepare()still callsacpi_ec_set_gpe_wake_mask(ACPI_GPE_ENABLE), andacpi_set_gpe_wake_mask()returnsAE_TYPEwhileACPI_GPE_CAN_WAKEis clear. The EC wrapper ignores that status, so the lid event is processed only after some other wakeup.This is unchanged in current mainline. It is not fixed by
0776, which marks_IxxGPEs; this EC GPE has a driver handler, not an_Ixxmethod.Change
For
MacBookPro14,3only, after the boot EC exists, call the sameacpi_ec_mark_gpe_for_wake()helper the LPS0 path uses. It only setsACPI_GPE_CAN_WAKE. No AML evaluation and no EC register write.ec_no_wakeupstill wins, and the S3 path does not use this mask.Carried in
linux-omarchy,linux-omarchy-eevdf, andlinux-omarchy-muqss. The patch applies todrivers/acpi/ec.cfrom linux-7.2.y; no existing patch in these packages touches that file.Evidence
Two MacBookPro14,3 units, firmware
529.140.2.0.0, ECDT, noPNP0D80:dpm_resume_noirq.linux-omarchy7.2.15-1, without omarchy-pkgs#596 and without linux-omarchy: carry ACPICA PCI bus fix for resume delays #544, lid open did not wake the machine and a key press did. After the same helper, a 65.6 s lid close woke in 1–2 s, and a charger cycle of 3623.965 s had one lid wakeup.Not claimed: a vanilla mainline build, battery drain, any other MacBook model, or that a generic no-LPS0 change is the right upstream shape. That question is still open with linux-acpi; this does not send that mail. @makoni asked to add the second unit to that report rather than send a separate patch. That confirmation is in, and the
Tested-bybelow is on a kernel built from this branch without the out-of-tree helper.This does not replace omarchy-pkgs#596, #544, or omarchy#14692. Those remain the Thunderbolt, resume-delay, and s2idle-policy pieces. Without this mark, #14692's "the lid wakes the machine" line is not true on these two units.
Tested-by: Sergey Armodin [email protected]
MacBookPro14,3, firmware
529.140.2.0.0, reciped5a5d2d3, no EC wake helper module. The log hasACPI: EC: GPE=0x7 marked wake-capable. One lid-closed s2idle cycle, T1 USB remote wake disabled: timekeeping suspended 243.531 s, thenACPI EC GPE status set,ACPI EC GPE dispatched,Wakeup after ACPI Notify sync. Opening the lid woke the machine with no key press and no earlier wakeup. noirq resume was 5.15 s; that is #544, not this change. One cycle; battery drain not measured.Test
On a MacBookPro14,3, do not load
macbook143_ec_wake. After boot the log should containACPI: EC: GPE=0x7 marked wake-capable. Withmem_sleep_default=s2idleand the T1 USB remote wake disabled, opening the lid should wake the machine without a key press. Any other product should not log that line.Prepared with AI assistance from the existing public reports and the 7.2.15 source. No new lid cycle was run on this machine for this pull request.