Skip to contentSkip to conversation

acpi: button: trigger wakeup key event

PATCH Andy Shevchenko 1 participant 1 message Dec 27, 2023 ACPI

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · Ken Xue

Andorid can wakeup from various wakeup sources, but only several wakeup sources can wake up screen with right events(POWER, WAKEUP) from input device.

Regarding pressing acpi power button, it can resume system and ACPI_BITMASK_WAKE_STATUS and ACPI_BITMASK_POWER_BUTTON_STATUS are set in pm1a_sts, but kernel does not report any key event to user space during resuming by default.

Quoted 4 lines

So, send wakeup key event to user space during resume from power button.

The code has been factually changed, but I'm okay with this version as well.

Signature · 2 lines
With Best Regards,
Andy Shevchenko