Android - Lolipop
Kernel - 3.10.53
I am working on Android Power Management. We have connected Keypad in POS board which is based on Android OS. After board goes to suspend mode if i press keypad or touch the touchscreen, board should not wake up(configured power Button as Wakeup source) . But now am getting issue like if I press keypad or touch the touchscreen, board is partially waking up (keypad light turns on and off suddenly) not waking up fully. What changes I need to do for stopping the partial wakeup ?
Regards,
Haji
hi haji,
Wakelocks allow apps and kernel drivers to avoid suspend. You could use the wakelocks api.
https://developer.android.com/reference/android/os/PowerManager.html
regards