diff mbox series

Calling _WAK on boot

Message ID JhJJOq9M37qi7rg1RcBQ-XBPrf3pvws9oaDxtseX1SnEStVYW5kT7krgx7YUITmovSL-tZTmfawGwoWTcXHEbDJd1tPDt7xleJhy6H8v49g=@protonmail.com (mailing list archive)
State New
Headers show
Series Calling _WAK on boot | expand

Commit Message

w4v3 April 14, 2021, 12:35 p.m. UTC
Hi everyone,

As I understand ACPI spec ยง16.3.3, the _WAK method should also
be called when waking up from S5. Currently this doesn't
seem to be the case.

On my device (Lenovo Yoga 7i), the brightness hotkeys depend
on initialization carried out in _WAK, so they currently only
work after resuming from S3 or S4 sleep, but not after booting

I really don't know what would be the right way to do this,
but as an example, patching the acpi_init function as follows
seems to work fine.
diff mbox series


--- linux-pm.orig/drivers/acpi/bus.c
+++ linux-pm/drivers/acpi/bus.c
@@ -1094,6 +1094,7 @@ 
+        acpi_leave_sleep_state(ACPI_STATE_S5);
 	return 0;