Not using a WakeLock so why does the device stay awake?

by Dianne Hackborn » Wed, 14 Apr 2010 15:36:31 GMT


Sponsored Links
 Use this to see what wake locks are being held in user space:

adb shell dumpsys power

Note that the device never goes to sleep while plugged in to USB.  Also the
system will never hold a wake lock for you just because you have an activity
or service running.  You can have it do so for you in an activity via
FLAG_KEEP_SCREEN_ON in a window, and the alarm manager will temporarily hold
one for you while sending an alarm broadcast to a broadcast receiver.







>



Not using a WakeLock so why does the device stay awake?

by Dianne Hackborn » Fri, 23 Apr 2010 01:59:22 GMT


 It is possible for the kernel to hold wake locks for various reasons.  If
you want to see what was holding wake locks while you were unplugged, use
"adb shell dumpsys batteryinfo" and look at the last set of stats (this is
the raw information used to generate the battery usage UI).  However the
kernel wake lock information is extremely hard to understand, and
unfortunately I can't say for sure off-hand how to interpret it. :}







>


Sponsored Links


Other Threads

1. Writing widgets *without* persistent services

Hi,

You can add res/layout-land and put your landscape layout there.  So
basically you have res/layout for portrait and res/layout-land for landscape
layouts.

Marc






--~--~---------~--~----~------------~-------~--~----~

2. Porting ANDROID on S3C2440 Platform

Hi all,

I am a newbie in ANDROID.

My first question is : HAS ANYONE PORTED ANDROID ON S3C2440 (armv4
Architecture ) PLATFORM SUCCESSFULLY?

I am trying to port ANDROID on S3C2440 platform which is a arm920T and
ARMv4 architecture.
Linux version which i am using is 2.6.27. I have done the required
changes in my Linux-2.6.27 kernel by looking into the diff of the
ANDROID Linux-2.6.27 kernel which comes along with the ANDROID SDK.
The kernel gets compiled successfully without any errors after the
ANDROID support is given.

I referred the "benno's blog" ( Android on ARMv4 (take 2) section )
and applied the patches to the ANDROID SDK given in the benno's blog.
I am using the "arm-android-eabi-" toolchain given in the benno's
blog. ANDROID SDK gets compiled successfully but the "init.rc" file is
not getting generated in "android-SDK/out/target/product/generic/root"
directory.

I copied all the required files and folders from the "android-SDK/out/
target/product/generic/root" directory to my root file system. when i
boot the Linux-2.6.27 kernel (with android related changes)  on the
s3c2440 platform the following error occurs :

"Kernel panic - not syncing: Attempted to kill init!"

I don't know where exactly the problem is. Please help me in solving
the problem. Where am i going wrong?

Does the patches given in the benno's blog works perfectly fine? Has
any one tried to port ANDROID on armv4 architedture?



Regards,
Vinay R Rao

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Why can "Maps" find a location on demand but not my app

4. Handling volume controls

5. Is there a way for us to show ProgressBarIndeterminate in Theme.Dialog activity?

6. Database Pattern - What's your method?

7. How to get just updated screen data instead of reading all data from framebuffer?