[android-porting] Re: Standby/suspend code in Android

2011-06-22 Thread Diego
On Jun 21, 10:01 pm, Dianne Hackborn hack...@android.com wrote: It also tells the kernel about wakelocks being held by user space, so the kernel knows when it can't put the CPU to sleep due to wakelocks. Ok, thank you for your help. The wakelock mechanism is clear to me. So it's the kernel

Re: [android-porting] Re: Standby/suspend code in Android

2011-06-21 Thread Dianne Hackborn
The PowerManagerService directly takes care of turning the screen on/off based on full wake locks that are held. For example: