Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,501 Members 48,502 Now Online
XDA Developers Android and Mobile Development Forum

[APP][2.1+][05 Jul. - V1.16] BetterBatteryStats

Tip us?
 
itsLYNDZ
Old
#4071  
Senior Member
Thanks Meter 22
Posts: 1,097
Join Date: Jul 2010
I reread the first and second post, and I noticed my alarms portion wasn't populated. My phone is rooted and bbs has root rights. Not site why that isn't populating. I don't have any alarms set tho.
Sent from my T-mobile S3 SGH-T999
 
Konsyst
Old
(Last edited by Konsyst; 1st April 2012 at 01:30 AM.)
#4072  
Member
Thanks Meter 3
Posts: 59
Join Date: Nov 2011
Quote:
Originally Posted by itsLYNDZ View Post
I'm not sure what you mean by tags. I will reboot it tonight and charge till it is full and then do the 4 HR drain tommorrow. Should I just upload the txt file to a site and link it?
When you hit the reply button, you should see a button that looks like #. Paste the dump into the message box, select all the text with Ctrl-A, then click the # button to show your dump as indicated.

Your alarm isn't populated due to your dump being after 8m. It hasn't had time to be populated.
Alarm doesn't exactly have to do with alarms being set, the AlarmManager process handles many events, which is why they are labelled as such.
 
jeremysherriff
Old
#4073  
jeremysherriff's Avatar
Senior Member
Thanks Meter 390
Posts: 1,399
Join Date: Nov 2011
Location: Auckland
Quote:
Originally Posted by itsLYNDZ View Post
I reread the first and second post, and I noticed my alarms portion wasn't populated. My phone is rooted and bbs has root rights. Not site why that isn't populating. I don't have any alarms set tho.
Edit your post, and then click "go advanced" which will take you to the advanced editor. Highlight all the tech part, and then click the "#" button in the editor/toolbar. It will put "[ CODE]" and "[ /CODE]" at the beginning and end and make it go into a pre-formatted, scrollable box. Just keeps the thread a little tidier. If this still doesn't make sense, ignore it

The alarms section should have been populated in the dump file if you can see any info in the on-screen "alarms" view. There is a bug, @chamonix has it on his list to fix. You might need to go into the super-user app and grant some permissions manually, or uninstall then re-install BBS and make sure to always allow the super-user root access requests.

If you go Menu->more->raw alarms can you see data? If so, then something should be in the dump file too.
Feed my ORD... please?

Use this link to sign up to DropBox and get both of us a 500MB storage upgrade, free!
 
itsLYNDZ
Old
#4074  
Senior Member
Thanks Meter 22
Posts: 1,097
Join Date: Jul 2010
Here is the stats after leaving it unplugged overnight. It was at 58% when i woke up it was at 30%. keep in mind I also have the 1900 mah battery, so that is still quite the chunk of battery to be eaten.
 
nam3less
Old
(Last edited by nam3less; 1st April 2012 at 08:26 PM.) Reason: More info
#4075  
Member
Thanks Meter 13
Posts: 50
Join Date: Mar 2012
Location: Raleigh, NC
Hey chamonix,

I tried pming you but it didn't show up as sent in my user CP. Not sure if I have to make a minimum post number before being able to PM. I've been a long time lurker and just recently signed up.

I have a Galaxy Nexus on Verizon. I do live in an area where my phone regularly sits at -90dbm signal. This is very odd as well since I always have full bars of 4g service.

Like all LTE phones, I tend to drop signal every once in a while but it polls verizon often enough that it's back up within 30 seconds.

While I haven't done any 3g on with 4g toggle testing, I am still concerned with my battery life.

I have the extended battery.

The phone runs on a stock 4.04 kernel with essnetially stock 4.04 rom and the radios from the rom (stock?). Here's a link:

http://forum.xda-developers.com/show....php?t=1481613

I have been going through my BBS dump files for the past 5 days or so and have read this entire thread. I wanted to do as much as possible on my end, so you're not left answering the same questions over and over.

I've done things like disabled sync on stuff I don't need (email is the only thing syncing), use the android stock mail client for my gmail, polling at 30 minute intervals, changing autorun settings, making sure i'm signed out of latitude (never use it), disabled some apps I hardly use (google books, google movies, talk, etc) just so they don't get the bright idea of running, disabled and signed out of google talk, got rid of all of my "battery saving" apps (green power), never use wifi, never use bluetooth, and I toggle GPS when I need it for maps. That's all I remember off the top of my head.

However, my battery life is still absolute crap. I get about equivalent battery life now without green power as I do with green power so I'd say there has been an improvement but......

Sometimes I'll get an awake time of 8 minutes in 4 hours (not too bad, but i know it can be lower), other times, it's 8 minutes in 2 hours. Both of these cases are with the phone simply idle (reboot phone, turn screen off, let it sit to get dump).

I checked my kernel wake locks and the major ones I am getting, modem_usb_gpio_awake and modem_usb_suspend_block I found to be attributed to the sending and receiving of data when the screen is off. Now, I make sure to back out of all of my applications so that they are closed rather than put in background so I'm not sure where this data transfer is coming from. My twitter client polls every 15 minutes. I don't think I should be getting a count of 200+ from these in 2 hours. This seems like a widespread problem across various kernels and rom combinations so i'm not sure what to do.

My alarms seems to be system alarms and nothing really out of the ordinary, except I noticed that email sometimes has a higher count than once every 30 minutes. My guess is the sync but if sync is off, I don't seem to get any emails :/. Also, despite my best efforts to TURN OFF calendar sync completely, it still has an alarm count of 2-10 every time.

Below is my most recent one from last night. I can send a progression of dump files if you'd like as well in another post.

If there are any screenshots you need, I can create another dump file tonight and take screens for you.

I have your command center app if there are any dumps you need from that as well to accompany any BBS dumps.

Code:
Select Code
===================
General Information
===================
BetterBatteryStats version: 1.7.1.0
Creation Date: 2012-04-01 09:58:36
Statistic Type: (3) 
Since 9 h 30 m 37 s 
VERSION.RELEASE: 4.0.4
BRAND: google
DEVICE: toro
MANUFACTURER: samsung
MODEL: Galaxy Nexus
RADIO: unknown
BOOTLOADER: PRIMELA03
FINGERPRINT: google/mysid/toro:4.0.4/IMM30B/257829:user/release-keys
HARDWARE: tuna
ID: IMM30B
Rooted: true
===========
Other Usage
===========
Awake (): 13 m 45 s  (825 s) Ratio: 2.4%
Screen On (): 1 m 30 s  (90 s) Ratio: 0.3%
=========
Wakelocks
=========
GpsLocationProvider (Android System): 3 m 53 s  (233 s) Count:150 0.7%
GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Google Services): 59 s  (59 s) Count:190 0.2%
RILJ (Phone): 53 s  (53 s) Count:127 0.2%
AlarmManager (Android System): 12 s  (12 s) Count:835 0.0%
ActivityManager-Launch (Android System): 10 s  (10 s) Count:110 0.0%
RIL_BIPJ (com.android.bip.BIP): 6 s  (6 s) Count:57 0.0%
Checkin Service (Google Services): 5 s  (5 s) Count:254 0.0%
SMSDispatcher (Phone): 4 s  (4 s) Count:1 0.0%
AudioOut_1 (1013): 3 s  (3 s) Count:1 0.0%
NetworkStats (Android System): 2 s  (2 s) Count:91 0.0%
Event Log Service (Google Services): 2 s  (2 s) Count:22 0.0%
*vibrator* (com.google.android.email.Email): 1 s  (1 s) Count:2 0.0%
GTALK_CONN (Google Services): 1 s  (1 s) Count:166 0.0%
NfcService (com.android.nfc.Nfc Service): 1 s  (1 s) Count:1 0.0%
================
Kernel Wakelocks
================
"modem_usb_suspend_block" (): 6 m 55 s  (415 s) Cnt:(c/wc/ec)504/0/0 1.2%
"modem_usb_gpio_wake" (): 6 m  (360 s) Cnt:(c/wc/ec)428/104/428 1.1%
"alarm_rtc" (): 3 m 11 s  (191 s) Cnt:(c/wc/ec)380/0/48 0.6%
"PowerManagerService" (): 2 m 35 s  (155 s) Cnt:(c/wc/ec)1007/0/0 0.5%
"alarm" (): 1 m 12 s  (72 s) Cnt:(c/wc/ec)724/263/0 0.2%
"radio-interface" (): 60 s  (60 s) Cnt:(c/wc/ec)51/0/0 0.2%
"musb_autosuspend_wake_lock" (): 50 s  (50 s) Cnt:(c/wc/ec)386/16/0 0.1%
"secril_rst_wakelock" (): 46 s  (46 s) Cnt:(c/wc/ec)3/0/0 0.1%
"event2-180" (): 28 s  (28 s) Cnt:(c/wc/ec)389/0/0 0.1%
"suspend_backoff" (): 9 s  (9 s) Cnt:(c/wc/ec)1/0/1 0.0%
"secril_fmt-interface" (): 7 s  (7 s) Cnt:(c/wc/ec)863/0/0 0.0%
"max17040-battery" (): 6 s  (6 s) Cnt:(c/wc/ec)292/0/0 0.0%
"twl6030 adc" (): 3 s  (3 s) Cnt:(c/wc/ec)1485/0/0 0.0%
"secril_rfs-interface" (): 1 s  (1 s) Cnt:(c/wc/ec)7/0/0 0.0%
"efsd-interface" (): 1 s  (1 s) Cnt:(c/wc/ec)4/0/0 0.0%
"KeyEvents" (): 1 s  (1 s) Cnt:(c/wc/ec)1428/0/0 0.0%
"vibrator" (): 1 s  (1 s) Cnt:(c/wc/ec)17/0/0 0.0%
"nfc" ():  (0 s) Cnt:(c/wc/ec)4/0/4 0.0%
"power-supply" ():  (0 s) Cnt:(c/wc/ec)28/0/0 0.0%
"mmc0_detect" ():  (0 s) Cnt:(c/wc/ec)479/0/1 0.0%
"gpio_input" ():  (0 s) Cnt:(c/wc/ec)4/0/0 0.0%
======================
Alarms (requires root)
======================
com.android.phone (): Wakeups: 240
  Alarms: 6, Intent: com.android.internal.telephony.gprs-reconnect.2
  Alarms: 229, Intent: com.android.internal.telephony.gprs-data-stall
  Alarms: 5, Intent: com.android.internal.telephony.gprs-reconnect.1
  Alarms: 0, Intent: com.android.internal.telephony.cdma-reconnect

com.google.android.gsf (): Wakeups: 48
  Alarms: 8, Intent: com.google.android.intent.action.GTALK_RECONNECT
  Alarms: 20, Intent: com.google.android.intent.action.MCS_HEARTBEAT
  Alarms: 1, Intent: com.google.android.intent.action.SEND_IDLE

com.google.android.email (): Wakeups: 40
  Alarms: 40, Intent: com.android.email.intent.action.MAIL_SERVICE_WAKEUP

com.sec.android.internal.ims (): Wakeups: 11

com.android.providers.calendar (): Wakeups: 4
  Alarms: 4, Intent: com.android.providers.calendar.intent.CalendarProvider2

android (): Wakeups: 6
  Alarms: 327, Intent: android.intent.action.TIME_TICK
  Alarms: 1, Intent: com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD
  Alarms: 19, Intent: com.android.server.action.NETWORK_STATS_POLL
  Alarms: 55, Intent: com.android.server.ThrottleManager.action.POLL
  Alarms: 1, Intent: com.android.server.NetworkTimeUpdateService.action.POLL
  Alarms: 5, Intent: android.content.syncmanager.SYNC_ALARM
Some things I noticed in here that are odd:

--Checkin Service (signed out of latitude and location NOT ENABLED, as well as toggling GPS). Further, I have never set any automatic checkin settings and have deleted data and cache from maps numerous times.

--GPS Location Provider (again, all GPS related things OFF)

-- android email alarm (40) would suggest polling every 30 minutes for 20 hours.... not the case)

-- calendar 4 wakeups (sync is off and I have no events/reminders). I have notifications on, but again, no events/reminders. Maybe disabling notifications?

So this dump was 12 minutes in 9 hours. not too terribly bad. but I'm sure it can be better. I'm staring at my most recent log of idle with 1 text and i'm seeing 6 minutes in 2.5 hours. But it's inconclusive since it falls under daily use so i have some texting and email checking in there.

Most of why I really want to get this nailed down is because I remember you mentioning in the thread that you get 4+ hours of screen time, with 14ish total under heavy use like that, on your Nexus. I would love to have that. Any suggestions on what rom and kernel to use are welcome as well. I'm not vested in one particular kernel or rom.

I'm stuck and unsure of what to do next as everything looks fine to me, but the phone inexplicably drains at 3% an hour with ZERO use.

The odd thing is that CPUSpy will read at 97% deep sleep. However, in the past 2.5 hours, i've dropped 15% battery with 6 minutes of screen use and 12 minutes of awake time total. :/

It seems as though every time I drive somewhere, the battery drains fast. My commute form home to work regularly gives me a 3% battery drop. Could this also have anything to do with the infamous "your battery is lying to you" thing? Most of my commuting happens right after I unplug the phone. I thought the nexus was good about that since the charger didn't trickle, but would actually let the phone drain down to 95% before charging it back to full, while displaying that in real time, thereby making things slightly more accurate.

GPS is off, so i'm unsure why (if at all) it would be polling for location while i'm on the move, thereby draining.

Could it have anything to do with the signal being low, despite having 3-4 bars that is draining it?

If you can, I really do appreciate you taking the time to answer. If you don't have the time and want me to post in the thread, I can do that.

Your BBS app is fantastic! Keep up the awesome work!

If anyone else wants to chime in with suggestions, feel free
 
CRXed
Old
#4076  
Senior Member
Thanks Meter 1047
Posts: 1,660
Join Date: Jan 2010
@nam3less: When I leave my Galaxy S2 idle, it drains about 2 to 4% in 8 hours!
That's with the extended 2000mAh battery. And even then I have more Awake time than I see in your logs.

Have you tried using the original battery again?
Samsung Galaxy SII i9100
CyanogenMod 11.0
Android 4.4.4
 
jeremysherriff
Old
#4077  
jeremysherriff's Avatar
Senior Member
Thanks Meter 390
Posts: 1,399
Join Date: Nov 2011
Location: Auckland
Quote:
Originally Posted by nam3less View Post
Hey chamonix,

I tried pming you but it didn't show up as sent in my user CP. Not sure if I have to make a minimum post number before being able to PM. I've been a long time lurker and just recently signed up.

I have a Galaxy Nexus on Verizon. I do live in an area where my phone regularly sits at -90dbm signal. This is very odd as well since I always have full bars of 4g service.

Like all LTE phones, I tend to drop signal every once in a while but it polls verizon often enough that it's back up within 30 seconds.

While I haven't done any 3g on with 4g toggle testing, I am still concerned with my battery life.

I have the extended battery.

The phone runs on a stock 4.04 kernel with essnetially stock 4.04 rom and the radios from the rom (stock?). Here's a link:

http://forum.xda-developers.com/show....php?t=1481613

I have been going through my BBS dump files for the past 5 days or so and have read this entire thread. I wanted to do as much as possible on my end, so you're not left answering the same questions over and over.

I've done things like disabled sync on stuff I don't need (email is the only thing syncing), use the android stock mail client for my gmail, polling at 30 minute intervals, changing autorun settings, making sure i'm signed out of latitude (never use it), disabled some apps I hardly use (google books, google movies, talk, etc) just so they don't get the bright idea of running, disabled and signed out of google talk, got rid of all of my "battery saving" apps (green power), never use wifi, never use bluetooth, and I toggle GPS when I need it for maps. That's all I remember off the top of my head.

However, my battery life is still absolute crap. I get about equivalent battery life now without green power as I do with green power so I'd say there has been an improvement but......

Sometimes I'll get an awake time of 8 minutes in 4 hours (not too bad, but i know it can be lower), other times, it's 8 minutes in 2 hours. Both of these cases are with the phone simply idle (reboot phone, turn screen off, let it sit to get dump).

I checked my kernel wake locks and the major ones I am getting, modem_usb_gpio_awake and modem_usb_suspend_block I found to be attributed to the sending and receiving of data when the screen is off. Now, I make sure to back out of all of my applications so that they are closed rather than put in background so I'm not sure where this data transfer is coming from. My twitter client polls every 15 minutes. I don't think I should be getting a count of 200+ from these in 2 hours. This seems like a widespread problem across various kernels and rom combinations so i'm not sure what to do.

My alarms seems to be system alarms and nothing really out of the ordinary, except I noticed that email sometimes has a higher count than once every 30 minutes. My guess is the sync but if sync is off, I don't seem to get any emails :/. Also, despite my best efforts to TURN OFF calendar sync completely, it still has an alarm count of 2-10 every time.

Below is my most recent one from last night. I can send a progression of dump files if you'd like as well in another post.

If there are any screenshots you need, I can create another dump file tonight and take screens for you.

I have your command center app if there are any dumps you need from that as well to accompany any BBS dumps.

Code:
Select Code
<snipped>
Some things I noticed in here that are odd:

--Checkin Service (signed out of latitude and location NOT ENABLED, as well as toggling GPS). Further, I have never set any automatic checkin settings and have deleted data and cache from maps numerous times.

--GPS Location Provider (again, all GPS related things OFF)

-- android email alarm (40) would suggest polling every 30 minutes for 20 hours.... not the case)

-- calendar 4 wakeups (sync is off and I have no events/reminders). I have notifications on, but again, no events/reminders. Maybe disabling notifications?

So this dump was 12 minutes in 9 hours. not too terribly bad. but I'm sure it can be better. I'm staring at my most recent log of idle with 1 text and i'm seeing 6 minutes in 2.5 hours. But it's inconclusive since it falls under daily use so i have some texting and email checking in there.

Most of why I really want to get this nailed down is because I remember you mentioning in the thread that you get 4+ hours of screen time, with 14ish total under heavy use like that, on your Nexus. I would love to have that. Any suggestions on what rom and kernel to use are welcome as well. I'm not vested in one particular kernel or rom.

I'm stuck and unsure of what to do next as everything looks fine to me, but the phone inexplicably drains at 3% an hour with ZERO use.

The odd thing is that CPUSpy will read at 97% deep sleep. However, in the past 2.5 hours, i've dropped 15% battery with 6 minutes of screen use and 12 minutes of awake time total. :/

It seems as though every time I drive somewhere, the battery drains fast. My commute form home to work regularly gives me a 3% battery drop. Could this also have anything to do with the infamous "your battery is lying to you" thing? Most of my commuting happens right after I unplug the phone. I thought the nexus was good about that since the charger didn't trickle, but would actually let the phone drain down to 95% before charging it back to full, while displaying that in real time, thereby making things slightly more accurate.

GPS is off, so i'm unsure why (if at all) it would be polling for location while i'm on the move, thereby draining.

Could it have anything to do with the signal being low, despite having 3-4 bars that is draining it?

If you can, I really do appreciate you taking the time to answer. If you don't have the time and want me to post in the thread, I can do that.

Your BBS app is fantastic! Keep up the awesome work!

If anyone else wants to chime in with suggestions, feel free
Hi, the short answer is yes, the reception strength being at -90db is going to be contributing to the drain, and in a way that BBS isn't going to report (or any other app that I know of).

Your dump file looks great, very clean and there's nothing that I can see that will help.
The only red flag to me is:
Code:
Select Code
Alarms (requires root)
======================
com.android.phone (): Wakeups: 240
  Alarms: 6, Intent: com.android.internal.telephony.gprs-reconnect.2
  Alarms: 229, Intent: com.android.internal.telephony.gprs-data-stall
which I believe is to do with the 4g drops and re-polling you mentioned.

In reality, the next thing to try is dropping back to 3g or 2g and seeing how much difference it makes. I have no other suggestions. HTH

Edit: Oh, i missed the comment about screen time - is your brightness high?
Feed my ORD... please?

Use this link to sign up to DropBox and get both of us a 500MB storage upgrade, free!
 
itsLYNDZ
Old
#4078  
Senior Member
Thanks Meter 22
Posts: 1,097
Join Date: Jul 2010
Any suggestions on mine above? I attached the file rather than coding it, since I really didn't understand that part
Sent from my T-mobile S3 SGH-T999
 
jeremysherriff
Old
#4079  
jeremysherriff's Avatar
Senior Member
Thanks Meter 390
Posts: 1,399
Join Date: Nov 2011
Location: Auckland
Quote:
Originally Posted by itsLYNDZ View Post
Here is the stats after leaving it unplugged overnight. It was at 58% when i woke up it was at 30%. keep in mind I also have the 1900 mah battery, so that is still quite the chunk of battery to be eaten.
Hi Attachments are best!
My first thought was "the phone hasn't been idle". Screen-on time is just over an hour, so you've been using the phone and it's a bit harder to figure out what is background processes vs your own usage.

In regards to wakelocks etc, these three items are all related I think:
Code:
Select Code
Kernel Wakelocks
================
"mmc_delayed_work" (): 19 m 22 s  (1162 s) Cnt:(c/wc/ec)923/140/923 3.8%
"radio-interface" (): 14 m 1 s  (841 s) Cnt:(c/wc/ec)1256/0/0 2.8%
"svnet" (): 13 m 44 s  (824 s) Cnt:(c/wc/ec)3580/442/3581 2.7%
and they are all about poor reception, dropped data connections, and trying to re-establish data connections. But overall, the wakelocks don't seem to account for the awake time.

One app i noticed in the alarms section is GoSMS - i personally have had trouble with this app and had to change my configuration of it several times before I managed to stop it draining my battery. The main points are:
  • don't have GoSMS enable lights for the notifications
  • don't have it pop a notification box either
  • don't have it repeat notifications (it holds the wakelock the whole time)

Hope this helps
Feed my ORD... please?

Use this link to sign up to DropBox and get both of us a 500MB storage upgrade, free!
The Following 2 Users Say Thank You to jeremysherriff For This Useful Post: [ Click to Expand ]
 
itsLYNDZ
Old
#4080  
Senior Member
Thanks Meter 22
Posts: 1,097
Join Date: Jul 2010
I do have gosms popup notifications set, but that's so I don't have to enter my unlock code every time I get a text, and I get allot of them, haha. I will try again in a few days and post
Sent from my T-mobile S3 SGH-T999

Tags
alarms, battery drain, battery monitor, battery stats, wakelock, wakeup
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes