Battery Problems with 3.0? Try the "Battery Logging" Setting to gather Logs

Discussion in 'iPhone Tips, Help and Troubleshooting' started by skoops, Jun 24, 2009.

  1. skoops macrumors regular

    Joined:
    Jan 8, 2007
    #1
    Hey guys;

    I have created a configuration profile that enables Battery Level Logging on the iPhone with OS 3.0
    If you have bad battery life or an unusally warm iphone with a rapidly depleting battery you might want to install this profile in order to gather some additional verbose logging of your Power levels inside the phone.

    There's a short description about this on the apple discussion forums here:
    http://discussions.apple.com/thread.jspa?messageID=9677682#9677682

    I have replicated the configuration settings in this .mobileconfig file.
    You can either use your iPod/iPhone (OS 3.0 only please) to surf directly to
    http://bit.ly/powerlog

    or download the file to your pc/mac and peek inside with a text editor. You'll quickly notice that it's a simple XML file which instructs your device to enable the PowerLog setting in the Springboard.app.

    Sneak edit: After applying the profile you need to restart your phone.

    You can un-install this config profile at any time you wish by going to Settings - General - Profiles - "Sync power logs...." - Remove

    While it's installed it will automagically sync the power logs to your iTunes - they can then be found here:
     
  2. dagomike macrumors 65816

    Joined:
    Jun 22, 2007
    #2
    How do we use this info to evaluate our performance?
     
  3. skoops thread starter macrumors regular

    Joined:
    Jan 8, 2007
    #3
    You can identify the application that's waking your iphone and depleting your battery. Most power-issues after upgrading to 3.0 result from not-3.0 compatible third party apps.
    For example an app might enable the GPS framework to locate you, but may fail to release control over the GPS unit, so GPS stays awake even when you turn the app off and put your phone into standby.

    In the powerlog you could see this behavior.

    Here's a sample of my very own power-log
    [​IMG]
     
  4. dagomike macrumors 65816

    Joined:
    Jun 22, 2007
    #4
    Cool. Thanks for sharing.

    How do you know what app is erroring out there?
     
  5. jaycarroll macrumors regular

    Joined:
    Jun 19, 2009
    Location:
    Denville, NJ
    #5
    Interesting log, it'd be nice to know what to grep for as this grows quickly. Is there a particular string that would indicate an app waking the phone?
     
  6. skoops thread starter macrumors regular

    Joined:
    Jan 8, 2007
    #6
    I have been using this for the last hour - so I don't have any long time experience analyzing those logs, but there are those recurring lines with the current battery level and usage times...

    by combining the elapsed time (using the timestamps) and the remaining battery capacity data you could make out applications which are using a massive amount of energy in a short time period.

    I'm sure there are much better options to analyse the logs... I need to find an app (or setting) which depletes my battery really fast in order to have some tangible results in these logs.
    Maybe you guys find some useful clues in your own files.
     
  7. jaycarroll macrumors regular

    Joined:
    Jun 19, 2009
    Location:
    Denville, NJ
    #7
    Weird - mediaserverd runs even though I have the phone on silent.

    Power Assertions:
    mediaserverd (pid 15):
    com.apple.audio.VAD Aggregate Device UID 1.isrunning NoIdleSleepAssertion == 255 Held for 00:04:13
    SpringBoard (pid 24):
    com.apple.springboard.idle NoIdleSleepAssertion == 255 Held for 00:07:01

    Note that during the period this log covers the phone was in standby, not being used, along with being switched to silent.
     
  8. jaycarroll macrumors regular

    Joined:
    Jun 19, 2009
    Location:
    Denville, NJ
    #8
    What also stands out to me is that your battery level is at 43 (3812), whereas mine is at: Battery level = 97 [4190]

    How is 43% = 3812 and 97% = 4190?? Math class was a while back, but that doesn't add up.
     
  9. skoops thread starter macrumors regular

    Joined:
    Jan 8, 2007
    #9
    My iPhone is a refurbished one and it's only about a month old. I wonder what these figures mean. It can't be mAh (like they display it on the portable macs) because I really doubt the iPhone has a 8000 mAh battery.

    but spoken in pseudo-units it would mean that your battery has a max capacity of about 4300 units and mine is about 8000... What iPhone do you have?
     
  10. jaycarroll macrumors regular

    Joined:
    Jun 19, 2009
    Location:
    Denville, NJ
    #10
    iPhone 3GS 32GB - so, that can't be right
     
  11. skoops thread starter macrumors regular

    Joined:
    Jan 8, 2007
    #11
    it would be cool if someone else could post his battery data to have some comparison values... preferably with iPhone model information.

    EDIT:
    It's NOT the capacity information.
    I just grepped for "Battery level" and this is what i got:

    Code:
    Wed Jun 24 23:12:24 2009: Battery level = 71 [3953] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:12:34 2009: Battery level = 71 [3982] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:12:36 2009: Battery level = 73 [3982] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:15:34 2009: Battery level = 73 [3964] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:15:44 2009: Battery level = 73 [3994] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:18:44 2009: Battery level = 73 [3970] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:18:54 2009: Battery level = 73 [4000] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:18:59 2009: Battery level = 75 [3988] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:21:54 2009: Battery level = 75 [3982] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:22:04 2009: Battery level = 75 [4017] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:22:06 2009: Battery level = 78 [4017] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:25:04 2009: Battery level = 78 [3994] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
    Wed Jun 24 23:25:14 2009: Battery level = 78 [4023] (low = no, critical = no, charging = yes, 500 mA)  Call active: no
     
  12. jaycarroll macrumors regular

    Joined:
    Jun 19, 2009
    Location:
    Denville, NJ
    #12
    That's a relief.

    I'll let this log for a few hours and grep through it later.
     
  13. jaycarroll macrumors regular

    Joined:
    Jun 19, 2009
    Location:
    Denville, NJ
    #13
    No one else has any results with this? It'd be nice to have a point of comparison.
     
  14. MBHockey macrumors 68040

    MBHockey

    Joined:
    Oct 4, 2003
    Location:
    New York
    #14
    I installed the profile about an hour ago. I will post whatever I've got when I charge it up.

    My battery is terrible. I'm down to 30% and haven't even gotten 3 hrs of usage yet. My iPhone 3G lasted well over twice as long with the same exact settings.
     
  15. badidio macrumors newbie

    Joined:
    Jun 24, 2009
    #15
    hi guys, i had this problem with my 3g 8gb, battery would drain in hours, get very hot an eventually stop charging, i suspect because of the overheating.
    took it to apple and got a replacement iphone, worked great but after restoring back up same problems occurred. So def software related.
    to solve this for myself i deleted beejive and my mail accounts then i made a new backup. I restored my phone then backed up with my new back up, and the battery problems have gone.
    so i'm guessing that any push utilizing apps are going to be your problem here. my method is by no means a fix, more making my phone useable for the moment. its a wide spread problem apparantly and i imagine an update will be needed. Anyway hope this has helped anybody
    adam
     
  16. dagomike macrumors 65816

    Joined:
    Jun 22, 2007
    #16
    I wiped my iPhone clean tonight and reset it all up. I upgraded from a backup, so starting out fresh. If there's a problem in there, or with problem apps, this should root it out. I installed no apps. We'll see how my standby goes tonight and usage tomorrow.
     
  17. badidio macrumors newbie

    Joined:
    Jun 24, 2009
    #17
    i would check the push settings for your mail accounts to, this can cause a problem aswell i've been told.
    adam
     
  18. dagomike macrumors 65816

    Joined:
    Jun 22, 2007
    #18
    I was using Exchange push on my 2G with no problems. Shouldn't an issue. I don't use any app push.
     
  19. MBHockey macrumors 68040

    MBHockey

    Joined:
    Oct 4, 2003
    Location:
    New York
    #19
    Ok, i've got a ginormous PowerLog now. What should I be looking for? I don't really wanna post the whole thing here...
     
  20. kage207 macrumors 6502a

    Joined:
    Jul 23, 2008
    #20
    I like how Push is supposed to be a battery saver but drains "too" much battery for some people. :rolleyes:

    Anyways, I got just short of 5 hours usage and over 11 hours of standby time on my original iPhone. I do have Push Notification on for AIM. I got down to about 30% because the notification about being in the 20% didn't pop up. But I usually get 15 hours of standby so I'm really not that worried.
     
  21. sseelman macrumors regular

    Joined:
    Sep 28, 2007
    #21
    I think the point is that Push is supposed to be save battery power compared to the option of having background processes/apps. However, using Push compared to not using it is a different matter. If I remember the stat that Apple used during the WWDC (or maybe the March dev conf), using Push would have about a 21% negative impact on the battery. That may be better than using background processes/apps, but it still is a 21% impact for some (so far) questionable value.
     
  22. greekpaz22 macrumors regular

    Joined:
    Feb 25, 2008
    #22
    I thought that push was draining my battery...but i have turned it off today (in recent days i was using it a lot with text free and beejive)...my phone is still draining just as quickly..time to go back to the apple store..
     
  23. diamond.g macrumors 603

    diamond.g

    Joined:
    Mar 20, 2007
    Location:
    Virginia
    #23
    My battery seems fine, but I will post the logs later tonight anyways.
     
  24. jaycarroll macrumors regular

    Joined:
    Jun 19, 2009
    Location:
    Denville, NJ
    #24
    How is push supposed to be a battery saver??

    Apple recommends disabling it to increase batt life:

    http://www.apple.com/batteries/iphone.html
     
  25. diamond.g macrumors 603

    diamond.g

    Joined:
    Mar 20, 2007
    Location:
    Virginia
    #25
    It saves power relative to having applications running in the background.
     

Share This Page