Imx7d Wakeup from suspend

Hi all,

On my imx7d emm when I enter the command echo standby > /sys/power/state, i see that my device correctly enters standby mode.
However when I touch the touchscreen the device briefly resumes running, then reboots automatically.

Why would the touch screen be doing this? The touch IRQ is connected to GPIO6_IO22, the wakeup pin wakes the device up just fine and it behaves as expected.

How can I stop this unwanted resume from the touchscreen?

Hi @eoin_oc ,

Can you please provide more information about your environment? Are you using a custom carrier board? Which BSP are you using?

It’s strange that the touchscreen is waking up the system, can you please check what are the wake-up sources of your system? You can check it by running the command cat /sys/class/wakeup/*/name, this is the output for the standard image:

root@colibri-imx7-emmc:~# cat /sys/class/wakeup/*/name

Please also check which GPIO is configured as wake-up, you can do this by running the command cat /sys/kernel/debug/gpio, the standard pin is the GPIO1_IO01 (SODIMM 45).

Best regards,

Daniel Morais

It turns out there was a line in my st1633.c touchscreen driver which enables it as a wakeup source. I removed this recompiled the Kernel, and it is behaving now

Perfect that you found a solution. Thanks for the feedback.