This the document for SUSPEND and WAKE-UP in IMX8QM-MEK platform
Wake up done by following,
Source: imx-p9.0.0_2.1.1-auto-ga
Disable the default wake-up - RTC Timer (Patch - Disable_auto_wakeup.diff)
1. Command Line,
# echo mem > /sys/power/state
2. Dumpsys Command
# dumpsys activity service com.android.car inject-vhal-event 0x11410a00 4,2
1. BUTTON
By pressing the power-key SW3 (0.5s)
2. DEBUG UART
Enable debug UART wake-up
# cat ./sys/devices/platform/5a060000.serial/tty/ttyLP0/power/wakeup
disabled
# echo enabled > ./sys/devices/platform/5a060000.serial/tty/ttyLP0/power/wakeup
TO WAKEUP
Press the ENTER Key 2 times
3. M4 UART WAKEUP
Apply the RPMSG patch (L4.14.98.diff)
# cat./sys/devices/platform/5a070000.serial/tty/ttyLP1/power/wakeup
disabled
# echo enabled > ./sys/devices/platform/5a070000.serial/tty/ttyLP1/power/wakeup
Type some input in M4 Cosole