Hello,
I am trying to enable wake up function from UART but I don't know how to do that. After put imx6 into sleep mode, it will wake up if we send data to uart pin. Do you have any suggestion in this case?
Thanks :smileyhappy:
Dong
Hi Pham,
You can do:
# echo enabled > /sys/class/tty/ttymxc0/power/wakeup
# echo mem > /sys/power/state
Then click something in console and the system will wakeup.
This examples considers that ttymxc0 is used for console. If your board uses other serial port for console, then you need to adjust it accordingly.
Regards,
Fabio Estevam
Hi Fabio, igor,
Thanks so much for your information, it's very useful for me.
I tested it on my system and it can work well by your solution. But I have a more question : Do you know how to integrate it into driver source code? BTW, it will auto enabled in driver, we don't need to use command line after reboot board.
Best Regards,
Dong
Hi Dong
please refer to sect.21.1.5 Unit Test attached Linux Manual.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------