Re: [PATCH] gpiolib: acpi: Ignore AC adapter wakeup on ASUS FA507

From: Mario Limonciello

Date: Mon Sep 28 2026 - 09:41:44 EST


On 9/28/26 04:41, Mika Westerberg wrote:
Hi,

On Sun, Sep 27, 2026 at 04:42:12AM +0300, Bartu Alev wrote:
The ASUS TUF Gaming A15 FA507 wakes from s2idle whenever the AC
adapter is plugged in or unplugged.

In the CPMGPIO0 SSDT, GPIO pin 23 (0x0017) is declared in the
\_SB.GPIO._AEI resource template as:

GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullNone, 0x0000,
"\\_SB.GPIO", 0x00, ResourceConsumer, ,)
{ 0x0017 }

and the corresponding \_SB.GPIO._EVT handler issues a device wake
notification for the AC adapter on pin 23 events:

Case (0x17)
{
Notify (\_SB.ACAD, 0x02) // Device Wake
Sleep (0x05)
Notify (\_SB.ACAD, 0x80) // Status Change
}

Both AC plug and unplug transitions therefore trigger a spurious
wakeup from s2idle. Add an ignore_wake quirk for this pin.

I would think this is by design like that.

What is the issue? You unplug the device from AC with lid closed and it
wakes up? Userspace should put it back to sleep in these cases. In Windows
and ChromeOS there is something called "dark resume" that deals with this
but I'm not sure if generic distros have that yet.

I tend to agree with Mika. If there is dedicated GPIO being triggered on AC adapter events with a Notify(0x02) it was OEM intended to wake the system.

FWIW I did have a design proposal to systemd for generic distros to add some behavior around dark resume.

https://github.com/systemd/systemd/issues/27077

I also had started a PR but didn't really garner interest:

https://github.com/systemd/systemd/pull/37142

As you have a system this can strongly benefit, feel free to take the torch on trying to develop a userland solution.