Re: [android-kernel] Re: Question regarding the power management

2010-06-16 Thread Raj Kumar
Hi, I want to add one more thing here. Also architecture specific power management will be hooked up with the linux power management framework like using suspend_set_ops. Which will validate which power management modes will be supported by the hardware. i.e when you do cat /sys/power/state you

Re: [android-kernel] Re: Question regarding the power management

2010-06-15 Thread Mike Chan
Two parts here, first part is for Frank, second is for the original post (inline). Applications: Once all apps have released their wakelocks App Framework: Power manager service decides to suspend the device (if the user turns off the screen) by writing "mem" to /sys/power/state Kernel: early su

[android-kernel] Re: Question regarding the power management

2010-06-15 Thread frank.sposaro
Check out this post regarding my last reply Addresses the API Change http://groups.google.com/group/android-kernel/browse_thread/thread/150dfd8ca32d569d/59855cc803a3dc56?lnk=gst&q=power#59855cc803a3dc56 Thanks On Jun 1, 7:33 am, Raj Kumar wrote: > Hi all, > > I have question regardingpowermana

[android-kernel] Re: Question regarding the power management

2010-06-15 Thread frank.sposaro
Hi Raj. Any luck on this? I am trying to trace the full process of how things get shut down when the phone is suspended. Where I am at right now is that when the phone is suspended or resumed the earlysuspend.c file executes a function and places a earlysuspend struct on a work_queue. I'm trying t