Re: [PATCH] gpiolib: acpi: Ignore AC adapter wakeup on ASUS FA507
From: Andy Shevchenko
Date: Mon Sep 28 2026 - 06:06:31 EST
On Mon, Sep 28, 2026 at 11:41:56AM +0200, Mika Westerberg wrote:
> 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.
Yep, we don't have quirks for AC adapter events, touch pad and USB are
the majority of misbehaving cases.
With that being said, I defer this patch (you can discuss more and if
the conclusion is to include, it may be done in the next release).
> 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.
--
With Best Regards,
Andy Shevchenko