We have Own custom board for IMX6SL based on IMX6SL EVK and ported the Android.
I want to use the ONOFF switch to power on and off the android .
1. when I do long press the button ,android gives pop window to power off the android tabled.
2. When i do single press the button, It goes suspend mode and again do the single press it will come active
Kindly suggest any ideas or patch to make it .