Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
grognaz
Old
#1  
grognaz's Avatar
Senior Member - OP
Thanks Meter 44
Posts: 677
Join Date: Jul 2010
Default awake

is there a app which can track the stuff that keeps the device awake? i really would like to know what constantly awakes my device and causes severe batery drain when it should be sleeping.

Sent from my Optimus 2X using XDA App
 
spica1234
Old
#2  
spica1234's Avatar
Recognized Developer
Thanks Meter 3174
Posts: 2,792
Join Date: Aug 2010
Alogcat
Quote:
Originally Posted by grognaz View Post
is there a app which can track the stuff that keeps the device awake? i really would like to know what constantly awakes my device and causes severe batery drain when it should be sleeping.

Sent from my Optimus 2X using XDA App


Sent from my LG-P990 using Tapatalk
If you find my post helpful press Thanks!
[/I]



My O2X Projects Under Current Development:

Horse Power 2x eXtreme Kernel

HP Performance Packs

HP Project eXtended
 
grognaz
Old
#3  
grognaz's Avatar
Senior Member - OP
Thanks Meter 44
Posts: 677
Join Date: Jul 2010
hmm any tips how to configure alogcat so i dont have to go through hundreds of lines to find what causes the wake?

also wont that keep my device awake if the log is always running?

Sent from my Optimus 2X using XDA App
 
lintz
Old
(Last edited by lintz; 25th August 2011 at 09:05 PM.)
#4  
lintz's Avatar
Member
Thanks Meter 30
Posts: 84
Join Date: Aug 2011
Quote:
Originally Posted by grognaz View Post
hmm any tips how to configure alogcat so i dont have to go through hundreds of lines to find what causes the wake?

also wont that keep my device awake if the log is always running?

Sent from my Optimus 2X using XDA App

Place a filter after one of these depending on needs. Some of the first one should work if you are refering to the screen. And the 2nd to last if you mean that the phone is in a wake up state but screen turned off.

And the logger have probably been programmed to listen after the calls to log. That it should only be activated during the time that some thing else that it is logging is. Meaning that it shouldn't place the phone in any wake up state alone.

# This is logged when the device is being forced to sleep (typically by
# the user pressing the power button).
2724 power_sleep_requested (wakeLocksCleared|1|1)

# This is logged when the screen on broadcast has completed
2725 power_screen_broadcast_send (wakelockCount|1|1)

# This is logged when the screen broadcast has completed
2726 power_screen_broadcast_done (on|1|5),(broadcastDuration|2|3),(wakelockCount|1| 1)

# This is logged when the screen on broadcast has completed
2727 power_screen_broadcast_stop (which|1|5),(wakelockCount|1|1)

# This is logged when the screen is turned on or off.
2728 power_screen_state (offOrOn|1|5),(becauseOfUser|1|5),(totalTouchDownT ime|2|3),(touchCycles|1|1)

# This is logged when the partial wake lock (keeping the device awake
# regardless of whether the screen is off) is acquired or released.
2729 power_partial_wake_state (releasedorAcquired|1|5),(tag|3)

# This is logged when battery goes from discharging to charging.
# It lets us count the total amount of time between charges and the discharge level
2730 battery_discharge (duration|2|3),(minLevel|1|6),(maxLevel|1|6)
 
grognaz
Old
#5  
grognaz's Avatar
Senior Member - OP
Thanks Meter 44
Posts: 677
Join Date: Jul 2010
thanks for posting that, but im a bit lost how to enter these filters.

if i want to filter releasedorAcquired for example do i just enter that in the filter and thats it?
and do i need to enable "use as regular expression"?

Sent from my Optimus 2X using XDA App
 
kingvortex
Old
#6  
kingvortex's Avatar
Senior Member
Thanks Meter 414
Posts: 586
Join Date: Mar 2010
Location: Nottingham
You can check partial wake statistics by entering *#*#4636#*#* in the phone dialler and selecting the battery history section.
 
grognaz
Old
#7  
grognaz's Avatar
Senior Member - OP
Thanks Meter 44
Posts: 677
Join Date: Jul 2010
and what am i supposed to see there? the statistics doesnt say anything usable.

Sent from my Optimus 2X using XDA App
 
kingvortex
Old
#8  
kingvortex's Avatar
Senior Member
Thanks Meter 414
Posts: 586
Join Date: Mar 2010
Location: Nottingham
If you check under partial wake it will tell you how long each application has kept the phone awake. How is that unusable? Or did I misunderstand what you were looking for?
 
grognaz
Old
#9  
grognaz's Avatar
Senior Member - OP
Thanks Meter 44
Posts: 677
Join Date: Jul 2010
the only thing in there that really shows awake time is system and thats certaonly fom when i use my phone.
i want to know what wakes it up when it should be sleeping. when i check bateru usage the awake line is like 1line off 1line on when the device should sleep. i want to know what causes that because i have about 6h battery even when its sleeping because somethings waking it up.

Sent from my Optimus 2X using XDA App

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more