yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
That is normal behavior : when the phone boots all references are deleted and must be re-created, eg by plugging/unplugging to cause the creation of the 'since unplugged baseline'. The reason for this is that the kernel resets all its counters at boot so there is no way to compare something from before boot with something after.
[BetterBatteryStats] chamonix:
Could you please post a dumpfile?
[BetterBatteryStats] chamonix:
The main cause of awake is wifi. As it is on and even if your phone sleeps it causes repeated Wakeups due to some traffic (multicast/broadcast).

The easiest way to avoid this is to not leave wifi on when your phone is unused. If you can control the wifi network you could also use wireshark and try to find the responsible node. If you search for wireshark in this thread you will find some pointers to do that.
[BetterBatteryStats] bordikun:
plug / unplug charger fix this problem. but after doing a reboot problem occurs again, "no reference" do I have to plug / unplug charger every time I do a reboot?

tried re-installing the app, wiping cache & delvik. still problem persists after reboot
[BetterBatteryStats] chamonix:
Again, this is not a problem it's the way android and the kernel was designed. As rebooting resets all counters there is no mean in comparing data pre and post boot. To make bbs consistent references are deleted at boot time by Design
[BetterBatteryStats] bordikun:
I just updated BBS to the latest version, previous version don't lose the reference after reboot.

so meaning after a reboot I need to plug / unplug my device for it to make a new set of reference?

my workaround on this is that i set custom ref, but i prefer to use the "since unplugged" category.
[BetterBatteryStats] Greedyfly:
Ignore or delete.
[BetterBatteryStats] Recallza:
Dump of my BetterBatteryStats

Hey all,

This is my first time posting on this forum - Sad to say I'm not very happy with my battery life :(

I have done a dump and posted it on Pastebin

Please add http to the below link, I haven't posted 10 posts so I can't instert web links :(

pastebin.com/Z3FJEYFn

I had Keytones, Touch Sounds, and Screen Lock Sound activated - I have deactivated that an hour ago and the count for the Audio has gone down now which is good but about 10% of my battery has gone since the deactivation so something else is causing me to loose battery.

My Screen on time has only been 20 minutes - so I basically haven't even used my phone.

Could someone please help share their knowledge.

Thanks a lot :)
[BetterBatteryStats] cafebabe:
There you go...

My awake time seems really high versus the screen on time!

Thanks
[BetterBatteryStats] misfit61871:
Hey chamonix, I'm new to this app, read everything on the help and how to links, and just wondering if you can give some insight for optimal monitoring settings? Specifically, which is best as far as the wakelock pct of options? % of time on battery, % of time awake or % of time awake minus time w/ screen on? Should I monitor since unplugged or since screen off, since charged etc. Just looking for some basics until I get more familiar with the app and what it's doing.

I'm using an amaze 4g on speedROM 6.0 with faux's latest ICS v004 kernel and my battery life has dropped drastically since the update to v002.

Thanks ahead of time.
[BetterBatteryStats] chamonix:
Unfortunately the dumpfile is missing an important part: the kernel wakelocks. Please make sure that the "Kernel wakelocks" "since unplugged" doesn't say "no reference...." and report a complete reading.

I can't say anything about the discrepancy without looking at the data but if you repost both the dumpfile and the corresponsing native stats I can have a look and try to explain
[BetterBatteryStats] chamonix:
I suggest that you update to v1.9 final and re-post a dumpfile with full idle. During this reading it looks like you have updated some apps using google play and this may hide the main reason of awake and data traffic that I believe to be facebook
[BetterBatteryStats] chamonix:
The is not much more I know about that wakelock except an (inbetween really old) problem indeed related to gtalk not releaseing the camera when loaded at boot.

Maybe some of our kernel devs in this thread know more, or you should take this to your favorite kernel thread. Would you mind providing a dumpfile for us to have a look?
[BetterBatteryStats] chamonix:
Wow, you win the award for the oldest version of BBS still in use ;) You will be happy with a more recent one.

You problem is obviously facebook
[BetterBatteryStats] chamonix:
I am happy that you found a way to use references that suits your needs. You could even create the custom reference automatically by using the tasker plugin provided by BBS.

I have added a feature request for creating a reference "since boot" as we had in the good old froyo days: https://github.com/asksven/BetterBatteryStats/issues/210
[BetterBatteryStats] Rob2222:
@Chamonix

BTW, feature request... may I? :)

The BatteryHistoryForGB App (link) shows GPS and sensor usage statistics.

Could this maybe be added to BBS, too?

Not important for now, but if someday you didn't have anything better to do... (I know, will probably never happen :D )

BR

Robert
[BetterBatteryStats] chamonix:
Since 5 h 49 m 33 s
============
Battery Info
============
Level lost [%]: 25
Voltage lost [mV]: 253
===========
Other Usage
===========
Wifi On (): 5 h 49 m 33 s (20973 s) Ratio: 100.0%
Awake (): 2 h 56 m 57 s (10617 s) Ratio: 50.6%
Deep Sleep (): 2 h 52 m 36 s (10356 s) Ratio: 49.4%
Screen On (): 40 m 47 s (2447 s) Ratio: 11.7%

We are looking at a potential of 2 hours 56 - 40 = 2 hours 16

On the other hand your phone drained 25% in those almost 6 hours what means an estimate of 24 hours on battery, that's not that bad.

Potentials that I see:

- Wifi: leaving it on all the time causes this:

"wlan_rx_wake" (): 57 m 6 s (3426 s) Cnt:(c/wc/ec)1852/0/1851 16.3%

You could easily save one hour if you turn off wifi when not using your phone

From an app point of view it's a little bit tricky as you have been using your phone during those 6 hours, incuding a pretty huge update from google play that will obviously run in the background. I can tell you what I see but only an idle run will tell you the impact of each of those:

- google talk

- sync: What I noticed is that all the sync services are present twice, once for google and once for Samsung cloud sync: you may want to check if you really need both

- Facebook

- Kik messenger

Please provide an idle dump for a run without wifi so that we can look further into that
[BetterBatteryStats] chamonix:
The percentage you use is depending on the kind of usage profile but it's safe to say the most accurate is "% of time awake" as a wakelock can not occur while the phone is asleep.

The best way to start are so called "idle runs", plugging/unplugging your phone, leaving it alone for 4-5 hours and using the "since unplugged" reference. "Custom" is handy to see the effect of certain usage profiles (e.g. traveling by train), "since screen off" was added lately and is interesting if you see a drain during the last asleep period (e.g. at night) that you would like to look into. This reference is also interesting if you get a watchdog warning.

I personally never use"since charged" but I know some people do. For my everyday monitoring "since unplugged" is what I need and use it for the widgets too (I have the 1x1 and 2x2 on my homescreen).
[BetterBatteryStats] beggar23:
Hi everybody.

I have updated a Desire S with IceColdSandwich(AOKP). Now I got a kernel wakelog "GPS", although the GPS service is switched off.

Is this indeed the service as is (it maybe refuses to die, despite the GUI switches and indicators say so) or is it possible that something different hides behind this label? Could be interesting for the ROM creator in order to have a deeper look then.

Thank you for your help!
[BetterBatteryStats] chamonix:
could you please post a dumpfile for us to have a closer look?
[BetterBatteryStats] beggar23:
I have rebooted the device a few minutes ago. As soon as this wl will re-appear I will post the dump. Thanks a lot.
[BetterBatteryStats] BillGoss:
Update log, this time with kernel wakelocks.

Sent from my Desire S
[BetterBatteryStats] misfit61871:
I'm a little confused by what data the 1x1 widget is showing me and I can't find an explanation, anyone know?

Sent from the morgue.
[BetterBatteryStats] Karpfenhai:
Disable Bluetooth and the issue will be gone!

It's a known bug, search in your device sub forum for a solution or ask your kernel Dev. If you are using a Bluetooth attached headset, then you have to live with that.

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] haloeight:
Still trying to figure out battery consumption here.

1. Flashed to SkyICS 4.2F a couple days ago, found 80% deep sleep, 20% awake with screen on 6.5% of the time and a wlan_rx_wake 9.6% of the time since unplugged. 3.3% Power Manager Service, 2.4% mmc2_detect partial wakelocks.

2. Flashed the UCLF6 kernel and modem, still found a 9% wlan_rx_wake, although time spent at 1240mhz reduced and 384mhz increasedi in CPU Spy. 2:1 ratio between awake time and screen on time.

3. Set WiFi to turn off while sleeping - burn rate decreased to between 3.5% - 2.2% per hour when the phone went to sleep.

4. Configuring the phone to static IP didn't make a difference, neither did turning off "always broadcast" on my D-Link DIR-825 router as these wlan wakelocks are thought to be caused by unnecessary network activity in the BBS wiki and in several posts on XDA.

5. Network Log showed Sugarsync was pulling down a bunch of packets so set it's autosync to only occur when plugged in and on WiFi. Wlan wakelock seemed to reduce to the 5-6% range, and the ratio between awake and screen on time reduced (a few minutes difference version a 2:1 ratio).

6. Let the phone run idle for the rest of the day and found a bunch of Google Services taking up the most amount of network traffic in Network Log.

Attached the BBS dump and can attach Shark and Network Log, er, logs if anyone can help. The Shark Logs were from earlier in the day though before the tweaks.

Other leads to try:

- Configure all my devices to static IP and turn off DHCP in my router.

- Uncheck IPV6 in network properties, disable services IP Helper, Shell Hardware Detection, Windows Media Player Network Sharing Services as Shark seems to show traffic originated from my wireless network.

- Turn off UPnP on router

- Turn off WLAN QoS on router

- Find a kernel / ROM combo that blocks wlan multicasts

- Turn off any autosyncing - seems a last resort

Using a Skyrocket with the Galaxy Nexus extended battery
[BetterBatteryStats] Memphisto11:
I am not getting any readings from "Since Screen Off", saying there is no reference.

Is there anything I should set to get proper readings?
[BetterBatteryStats] chamonix:
Yes, activate the watchdog (preferences, wstchdog).
[BetterBatteryStats] chamonix:
You seem to have HTC mail active besides gmail and HTC is behaving badly, keeping your device awake. If you need HTC mail you should check in the q&a section for your device if there is a way to reduce this or if there is a fix to what I'd call a bug.

If you don't use it you should either disable it or freeze it
[BetterBatteryStats] :
Hi, looking for someone kind enough to have a look at my BBS log. I've disabled FD after hearing about kernel wakelock issue.

Hope, 3 hours log is good enough to see what's going on when phone is idle.

thanks
[BetterBatteryStats] poundesville:
Bro, you lost 13% in 3.5 hours, giving you drain ratio of 3.7% per hour. If you maintain what you did in those 3 hours, you would have 27 hours of up-time. To me still good.

My drain ratio is 5% plus during non-usage time (meaning, i'm asleep - only those sync jobs are running)

When serving the net, my drain can be up to 25% to 44% - I use BatteryDrain app to check the drain rate.
[BetterBatteryStats] :
I was testing FD actually.. right now sure if my carrier supports it or not... how to determine FD support by carrier? any clue?

A ran 2 tests (same sync and notification setup):

Test 1 (3 hours) - lost 13% battery , deep sleep (77.2%) (FD disabled) - no - secril_fd detected

Test 2 (4 hours 48 mins) - lost 18% battery , deep sleep (77.7%) (FD enabled) - secril_fd detected

Need some suggestion. Should i enable or disable FD? Thanks as a reward! :highfive:
[BetterBatteryStats] yhrn:
I agree that it would even more interesting to find out what the actual problem is than to just work around it. However, I just got a new I9300 instead of my previous I9100 so things are a bit chaotic at the moment. When things settle down, in terms of flashing and tweaking, I'll see if I can reproduce on my new phone and and, in that case, I will grab a dmesg.
[BetterBatteryStats] mastair:
wakelock: networklocationlocator

With my Samsung Galaxy S3 I do not get a decent battery life. I'm now on 50% with only 40 minutes of screen on time after 25 hours.

With this app I get to see a partial wakelock of networklocationlocator for over 1h 6m 32s with a count of 979.

I don't use Google Lattitude, so what else can this be? Any suggestions would be welcome.
[BetterBatteryStats] salleq:
Afaik it could be any app that uses networklocation, for instance HD widgets does this. If you disabled "Use wireless networks" from location settings, networklocationlocator should not show itself anymore in BBS. However, you could find out if some app has generated a lot of alarms that could be connected to network location.

On a side note, 50% after 25 hours? :eek: wish I had that good battery life (2% per hour) and you call that not decent?
[BetterBatteryStats] mastair:
Ah thanks... I did install HD widgets. I'll uninstall it and see what happens.

Yeah, I agree it is not as bad as it seems but if you look in the Galaxy S3 forum they all get 40+ hours with at least 4-7 hours of screen on time, whilst I only had 40 minutes of screen on time. Quite a difference.
[BetterBatteryStats] Greedyfly:
Ok lets try again. Can someone please have a look at the attached log. I had a 13% drain over a 6.5 hr period and I know this could be better....I've seen others with better.

Important to note that Tasker was turned off for this test however, WiFi was left on. Also my alarm is due to go off at 6.20, this dump was taken immediately after that.

Any advice would be grateful.
[BetterBatteryStats] Karpfenhai:
Your Wlan is the main Problem, followed by Facebook.

Wlan:

Set static IP on Phone AND router for your device to reduce dhcp overhead.

Try to find a kernel which blocks Wlan broadcast. (Siyah??)

Increase beacon interval on your router, default is 40, 100 might work perfect for you.

Disable wlan when not in use (Sleep policy)

Facebook, try Friendcaster instead.

Good Luck!
[BetterBatteryStats] Greedyfly:
Thank's for the quick reply. Appreciated.

This raises a couple of questions then:

1. So switching WiFi off completely over that period would fix this?

2. I have a profile set up to switch my WiFi on when inside my home cell net and then when my router is near. Is it possible then to have a profile that switches WiFi off at a certain time (say 2300 to 0630) that overrides my other profile during those hours and how do I make it override for that time only? (I am talking about Tasker).

3. I am using the Phenomenal kernel, does this not block wlan broadcast? Is this better on battery than the phenomenal?

4. Would you use friendcaster as a complete replacement for the Facebook app and if so would you completely uninstall the stock facebook app? I was told that it was actually quite the battery drainer itself?

AND lastly and probably most importantly....

How on earth would one set up static IP on my phone and router. If it's any help I have Sky broadband and their own router (tis Netgear I think).
[BetterBatteryStats] henklbr:
This wasn't the case in the previous version . . .
[BetterBatteryStats] Karpfenhai:
See my answers in blue

This raises a couple of questions then:

1. So switching WiFi off completely over that period would fix this?

Probably Yes, flightmode during sleep per example

2. I have a profile set up to switch my WiFi on when inside my home cell net and then when my router is near. Is it possible then to have a profile that switches WiFi off at a certain time (say 2300 to 0630) that overrides my other profile during those hours and how do I make it override for that time only? (I am talking about Tasker).

Try it, maybe an additional condition like "Not active between 22 -06 "

Llama could do this, im not using Tasker

3. I am using the Phenomenal kernel, does this not block wlan broadcast? Is this better on battery than the phenomenal?

Phenomenal is quite good, stay with this kernel! ;)

4. Would you use friendcaster as a complete replacement for the Facebook app and if so would you completely uninstall the stock facebook app? I was told that it was actually quite the battery drainer itself?

I would freeze the stock app or try to manual Poll FB every 30 mins, push sucks your battery, Why would friendcaster be bad? never heard before its a general recommendation in this thread. I do not own a Facebook account! (really!!)

AND lastly and probably most importantly....

How on earth would one set up static IP on my phone and router. If it's any help I have Sky broadband and their own router (tis Netgear I think).[/QUOTE]

If yoiu are conected to your home wlan, go to wireless settings .--> advanced and set up an static IP, dont worry dhcp will still work on other networks.

In your router, tell the dhcp server the Mac Adress of your phone, there should be an option for static IP Setting somewhere..

Dont forget the beacon interval..

Good Luck!
[BetterBatteryStats] Rob2222:
Try removing exchange accounts for a day. There are some issues with exchange on 4.x, at least on some S3 it made huge battery drain.

Best Regards

Robert
[BetterBatteryStats] Recallza:
Hey chamonix

Thanks for looking at my dump file and I appreciate your information shared.

I'll test idling without WIFI running over night time and post it but I do agree, my battery time isn't that bad, I suppose coming from a blackberry anything is better :P hahaha!

It's already half day and my phone has used 15% battery life and I was underground and my phone was constantly searching for a signal and probably searching for wifi networks so I must say that is very good.

Thanks again for the help :)

BTW. I'm running CPU Tuner and I'm sticking to the default configuration but I'd like to optimize it, would I be correct by setting all my services too "OFF" while using the profile "Screen Off" and is "Screen off" meaning when the screen is off (locked) it'll use those settings?
[BetterBatteryStats] Rob2222:
In 99% of cases FD on should be better.

Fast Dormancy means switching back faster from the RRC state DCH to a RRC idle state (PCH/IDLE) after each data transfer.

DCH state must be used for data transmission, but it needs 100x power of IDLE.

So you didn't want to stay longer in DCH state than needed.

But in IDLE no data can be transferred.

Before FD, some network cells let you stay 10 seconds in DCH (100x) and then 30 seconds in FACH (50x power consumption of idle state) and then switching bach to IDLE.

With phone-initiated-FD the phone requests the switchdown to IDLE itself, 5 seconds after last data transfer. (5 second timer is usual)

New configured cells (="NCFD" = network controlled fast dormancy) send the phone back to IDLE or PCH after very few seconds automatically. So you didn't need the phone-initiated-FD feature anymore. In theory. In reality I have seen more than once, that not yet all cells of a operator support it. So some cells switch you back down really fast, some not. => Let FD enabled in the phone. It doesn't harm.

If your network cell already supports FD, you could switch the phone FD function off. The network cell does it all itself.

If your network cell doesn't support FD, you should leave the FD function of your phone switched on.

PCH is a "better" IDLE state. It needs roughly 2x of power of IDLE state, but you can switch up to DCH for data transfer in 0.5 seconds, while switch up from IDLE to DCS needs 2.5 seconds. That lag you can feel.

On Galaxy S3 you can monitor the RRC state switching with dialing *#0011#.

PS: RRC @ Wiki

Best Regards

Robert
[BetterBatteryStats] :
Thanks a lot Robert! I really appreciate your feedback!

I'll give another bbs dump today, same condition as test 2 but with FD off
[BetterBatteryStats] skinner12:
Hi,

Can anyone check my log? I'm using jb now and I have a lot of battery drain..

http://db.tt/jq9fJacA

Thanks..

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;)
[BetterBatteryStats] :
I'm still learning about this, but in 10 hours you lost only 27% batt right? or only 2.7% of juice per hour.. this is great for me :)
[BetterBatteryStats] Rob2222:
I think to really see the effect of FD, you have to have regular 3G traffic and then you must monitor the battery drain over idle with regular 3G traffic. I think this will be hard to make a comparisation in that you see something.

When you switch on the phone FD function, you just see the wakelocks caused by FD, which just means FD is working.

Best Regards

Robert
[BetterBatteryStats] skinner12:
Ok, but with ICS I arrived at the end of day without problems, now I must recharge in the evening..

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;)
[BetterBatteryStats] :
I think most users only get max of 12 hours until next recharge..
[BetterBatteryStats] Greedyfly:
Does the phenomenal kernel block wlan broadcast? Do you think Siyah would be more suitable for me. I do like the Phenom. kernel however.

Secondly it appears you cannot set up static IP with Sky broadband. Would you know of a workaround?

---------- Post added at 11:39 AM ---------- Previous post was at 11:31 AM ----------

I can get easily over one day (24 hours) without recharge on medium use and 2 days on low use.
[BetterBatteryStats] Karpfenhai:
Guys, please dont post such wrong facts!

1. FD disabled means, even if the carrier supports FD it will not be used by your device.

2. FD enabled, the Device "asks" the cell tower like "Hey, i wanna deepsleep now, could you stop bugging me for a certain time? Im still here dont worry, no need to wake me up!"

I have FD disabled since my carrier doesn't support it but i still see the wakelock, so the phone-embedded-whatever-fake-FD-functionality is still given.

Generally spoken, its a technique from your carrier, not from your phone!

If you have a valid counter-evidence, feel free to post it, including source.

I am willing to learn ;)

12 hours are normal?? If this would be true, i would be scared leaving the house without a charger! Normal for most common Devices are 2 Days with average usage, including 4-5 hours display on time (3+ hours in real bright conditions).

Normal deepsleep consumtion should be between 0,2 - 0,5 % per hour!

Up to one percent can be classified as normal with sync enabled.

There are many different factors, why the phone draines like hell, a huge effect has a bad network coverage, it these areas, disable 3g and use edge only, way enough for tweets and mail polling, plus your battery lasts longer.

Note, newer modems are not better by default, maybe in terms of reception but mostly for the cost of battery, try to find a balanced one for your circumstances.

Please guys, think before you post, read it twice, do your homework and bring up some sources!

This is not meant to be rude, just a hint and my personal opinion ;)

Cheers guys!

---------- Post added at 12:48 PM ---------- Previous post was at 12:46 PM ----------

Try siyah but you will see ;) This Question needs to be adressed to hardcore in the desired thread, since he is the developer of Speedmod kernel (Phenomenal base).

Unfortunately if you dont own the router (root??) then you cannot configure it..

Bad Luck Mate ;)
[BetterBatteryStats] :
deleted
[BetterBatteryStats] skinner12:
12 hours are not normal.. I can had 5 or six hours only with latest version of ICS, so I need to find why with JB I cant..

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;)