touch as a wakeup source

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

touch as a wakeup source

2,125 Views
DEEPIKA19
Contributor I

Hi team,

I am using goodix touch display with imx8mp processor.

I would like to set touch screen a wakeup-source.
I am entering suspend mode using the below command from the terminal:

$ echo mem >/sys/power/state

In the dts I have added the below line under goodix node

wakeup-source;

But touch did not act as wakeup source.

The board was still in suspend mode even after trying to wake the board by touching the display screen.

Is there any driver change needed apart from the dts change?
If any driver change need could you give a reference for the same.

Please could you help me with this issue.

 

Regards,

Deepika

0 Kudos
Reply
5 Replies

2,071 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @DEEPIKA19,

Are you able to wake up from gpio interrupt? Please Try using sysfs entry for gpio to enable wakeup from suspend for debugging
 
Are you able to track interrupts from the touchscreen in cat /proc/interrupts?
 
Please add device_init_wakeup(&client->dev, 1); in the probe function of the driver.
 
One can refer to drivers/input/touchscreen/edt-ft5x06.c for example.
 
Please share the device tree source file and suspend logs for further debugging.
 
Thanks & Regards,
Dhruvit.
0 Kudos
Reply

2,098 Views
DEEPIKA19
Contributor I

Hi team ,

Could someone help me on this........

Regards

Deepika

0 Kudos
Reply

2,074 Views
DEEPIKA19
Contributor I

Hi team ,

I observed that when suspend command is issued, no logs are obtained on the debug console.

eg : prints like "suspend entry, Freezing user space processes" are expected but I don't see any such log on my console.

Could you guide me to debug this issue.

Regards

Deepika

0 Kudos
Reply

2,048 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @DEEPIKA19,

Please make sure that you have set the kernel console log level set to the highest as below.
 # echo 7 > /proc/sys/kernel/print
 
Please mention the BSP version that you are using.
 
 
Thanks & Regards,
Dhruvit.
0 Kudos
Reply

2,044 Views
DEEPIKA19
Contributor I

Thanks @Dhruvit ,

Will test the board with your recommendations and revert back soon.

 

Regards,

Deepika

0 Kudos
Reply