yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Karpfenhai:
@cute_kayani...

First of all, you sound quite harsh to me, you shouldn't be rude to the guys trying to help YOU in their spare time! Watch your behavior, thanks. Patience is a virtue!

Second, you don't have a real problem, you are mostly facing a total overhead less than 10%... so what the heck?

Regarding connectivity.. read this:

Summary:*Constants*|*Methods*|*Inherited Methods*|*[Expand All]Added in*API level 1public class

ConnectivityManager

extends*Objectjava.lang.Object***↳android.net.ConnectivityManager

Class Overview

Class that answers queries about the state of network connectivity. It also notifies applications when network connectivity changes. Get an instance of this class by callingContext.getSystemService(Context.CONNECTIVITY_SERVICE).The primary responsibilities of this class are to:Monitor network connections (Wi-Fi, GPRS, UMTS, etc.)Send broadcast intents when network connectivity changesAttempt to "fail over" to another network when connectivity to a network is lostProvide an API that allows applications to query the coarse-grained or fine-grained state of the available networks

More information can be obtained here --> http://developer.android.com/reference/android/net/ConnectivityManager.html

Based on this information,I assume your carrier has probably a weak/unstable network and your phone its often switching between edge/gprs/hsdpa and that's the whole thing, so nail down your device to gsm only for a while and see if the "issue" decreases.

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Hilmesh:
hi there, please correct me if i am wrong what you are saying is that turn everything else ON for GSF, AdvanceS & Play store and only leave the ON Boot as disabled?
[BetterBatteryStats] Karpfenhai:
For jelly bean it seems to be the best approach, just disable update and that's it.

My current status:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Hilmesh:
Wokiez will now try it out :)
[BetterBatteryStats] kozmo21:
You have more patients than I do with him... awefully demanding, and I don't think he has ever hit the thanks button for anyone helping him (probably at least 20 posts). I had to put him on ignore. Just wish I didn't have to see his posts when people quote him.
[BetterBatteryStats] CazeW:
I was finally able to get you the dumps with 1.12B5. Here's 9 hours of idle with 5s between the creation of the dumps.
[BetterBatteryStats] Hilmesh:
i tried but ended up screwing everything.

Now i have reset all settings in Gemini for both Playstore & GSF.

Then i have disabled the first 4 After Startups for GSF in Autostarts. Restarted and everything back to normal for me. no alarms and partial wakelocks like checkin handoff, system update service, connective , etc.

I am unable to disable After startup for Playstore from Autostarts hence switched off on Boot Completed from Gemini. restarted and things look ok. tried browsing, opening playstore, checking my apps, downloading new apps, all seemed to be working perfectly.

Too many restarts so have put phone on charge. will test out for few days and then post the screen shots (of course this time without the filter ;))
[BetterBatteryStats] Casanoaa:
For optimizing your alarms:

For maps:

http://xdaforums.com/showpost.php?p=29420959&postcount=7059

Disable all locations services from settings of your phone.

Disable google search
[BetterBatteryStats] adxs2:
Actually i had reserved the phone's ip in my router before i posted the log. Just in case these new setting were not detected by the phone, i just restarted the phone and left it idle for 1 hour, and DHCP is still the biggest partial wakelock. I guess i will go back to automatic ip address now.

So you think those wakeup values for "android" and "com.google.android.gsf" are normal? They seemed too high when compared to other entries.
[BetterBatteryStats] Casanoaa:
Alarms: 207, Intent: android.net.wifi.DHCP_RENEW

This is high.. Your phone can't obtain ip or something like that. Can you try look at your router settings. Look at release time how many minutes is that on. If it is very low this can happen.
[BetterBatteryStats] CazeW:
Have already disabled what I can, the rest of the functions I need. But if you think that's bad, you should have seen it before. ;)

I don't really have a problem with idle consumption, it's normally 0.1%/h (41 days of standby time) which I really can't complain about. Only posted that to help with the fixing of kernel wakelocks in 4.2

But thanks anyway. :)
[BetterBatteryStats] Kitschki:
Ok hi im new to bbs but its not like i had issues..its just that i wanted to post my bbs files ^^

one is for 1h and the other one is for 11h.
[BetterBatteryStats] Karpfenhai:
But you set up the static ip also on the phone, right?

Don't worry, this setting will not affect other wifi's.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] cute_kayani:
:confused: how you can say am rude? I didn't say anything strange..

Thanks.....

---------- Post added at 05:52 PM ---------- Previous post was at 05:40 PM ----------

Thanks , in my phone its option for gsm/cdma there is no only GSM, and in my country there is no 3G.

Plz tell how can i choose only GSM. ANY TWEAK?
[BetterBatteryStats] It_ler:
Open your ROM menu Settings > Wireless and network / More settings > Mobile networks > Network mode > select GSM only.
[BetterBatteryStats] Casanoaa:
Uninstall this (com.kakao.talk.KakaoTalk): 11 m 12 s (672 s) Count:75 1.6%

Next dump an isle log and use the stable version of bbs app. V1.11
[BetterBatteryStats] bobdoblo:
Hi It_ler & Karpfenhei, sorry if i came across like i was angry or something, i'm not, i just couldn't figure out what was keeping my phone awake and it doesn't help that Gemini reports some things in GSF as on when they are off:banghead::D

Anyway, just letting you know:)

If you find what can be turned off safeley in GSF let me know, cheers guys:thumbup:

Powered by *NeatROM*
[BetterBatteryStats] cute_kayani:
Dear there is no option for only gsm . It it gsm/cdma.

---------- Post added at 07:07 PM ---------- Previous post was at 07:06 PM ----------
[BetterBatteryStats] bobdoblo:
Should look like this!
[BetterBatteryStats] It_ler:
:confused:

Maybe it's different in different ROM versions and/or for different SIM cards?!

Have a look at my settings on XXLSJ NeatROM Lite v4.0 with a German O2 SIM card:

EDIT:

bobdoblo was a little bit quicker than me :p
[BetterBatteryStats] cute_kayani:
Hmmm. But in mine there is no option.Is this a problem? Or i should leave it.

Can you plz give a proper settings gsf in autostart app.

That will good for everyone to minimize these wakelocks.
[BetterBatteryStats] cute_kayani:
This is my rom.
[BetterBatteryStats] bobdoblo:
Just switch each one on then off (so you know its off) and just keep the "on boot completed" off and all others on.

I see you're on ICS too and we are all on JB.

Powered by *NeatROM*
[BetterBatteryStats] cute_kayani:
:D sorry i don't understand, what you are saying. :eek:

Plz explain
[BetterBatteryStats] It_ler:
So it seems not to be the ROM.

I had this options on XWLPY too.

I think that it depends on your SIM card.

Can you put your SIM card into another SGS2?

Or use another SIM card in your phone?

Maybe it's a restriction of your mobile carrier :confused:
[BetterBatteryStats] bobdoblo:
In Google services framework turn all on apart from first option "on boot completed" turn that off.

Important: Switch each one off then on so you know its definately on because it says they are on when they are off sometimes.

Powered by *NeatROM*
[BetterBatteryStats] cute_kayani:
I tried another also. It remain there.

My s2 is from Uk and it comed from 3Mobile.
[BetterBatteryStats] bobdoblo:
I'm in UK on 3uk too!

Powered by *NeatROM*
[BetterBatteryStats] cute_kayani:
Plz chk wat is wrong in my gsf.
[BetterBatteryStats] bobdoblo:
Thats one for you It_ler, i don't use that app.

But just turn them all on for now!

Powered by *NeatROM*
[BetterBatteryStats] cute_kayani:
So gsm/cdma dual mode drain battery? Am in Pakistan my cellphone belongs to UK :)

---------- Post added at 07:36 PM ---------- Previous post was at 07:35 PM ----------

Gemini doesn't work.. settings for startup app are welcomed
[BetterBatteryStats] It_ler:
I recommend the same as bobdoblo, as I also don't use Autostarts app:

I don't know if auto mode (GSM/CDMA) has a higher battery consumption than GSM only.

Haven't tested it yet.

I am satisfied with my battery life and mobile data connection speed in Auto mode (GSM/CDMA).

I suggest you to enable all autostart events/options for GSF and reboot the phone.

Then check again.

Good luck !
[BetterBatteryStats] cute_kayani:
Plz chk my attached image in previous post.and plz give the specific startup events in gsf. Don't no exactly.

Gsf have many events,
[BetterBatteryStats] It_ler:
I have edited my previous post to make my suggestion a little bit more obvious :eek:
[BetterBatteryStats] bobdoblo:
Turn. Them. All. Back. On.:thumbup:

I and others want to know too but for now just put the gsf all on.

Powered by *NeatROM*
[BetterBatteryStats] deaddy93:
oh my bad sorry.. hope this time its all right :)
[BetterBatteryStats] It_ler:
Very nice :good:

Battery loss of 2% (40% to 38%) => 1.1%/h in about 2 hours with a deep sleep ration of 98,8% is very good.

For analyzing the battery stats, it's bad ;)

Next time, try to provide an idle dump for about at least 4 hours.

Was your phone on airplane mode?

If not, keep everything as is and enjoy your phone !
[BetterBatteryStats] DJMartini:
Wondering if someone could help me look at mine?

Device: Nexus 4 (unlocked & rooted)

Rom: AOKP 4.2.1 nightlys

Kernel: Faux123 v002beta5

The 1st log is with my WiFi on for almost 4hrs getting 5% loss avg. 1.3% an hour. I had logged out of gtalk,. but it appears it's still attempting syncing services? I'm also concerned about msm_hsic_host? PowerMangewrService, etc.

*Should I need static IP on this?

2nd log is without WiFi 2+ hrs showing 1% loss @ .4% avg.

Thank you so much and this is an amazing app! Impressed!
[BetterBatteryStats] deaddy93:
i was kinda inpatient :P.. no aeroplane mode,but i have a 2000mah battery kit... maybe its advantage.. although i have only few processes allowed in gemini and LBE security so i can get 4-5 hours screentime :) but sometimes i can see in graph the phone is awake despite screenoff.. so i will try to make longer dump.. but its condition to be idle? or can i make long dump like from 100% to 10%.. thanks a lot for ur patience ;)
[BetterBatteryStats] cute_kayani:
Now every thing is Enabled in GSF. :cool:
[BetterBatteryStats] It_ler:
Everything is fine :good:

In an idle dump it is easier to find the "unwanted" wakelocks and alarms.

I a mixed usage dump, there are also some (or many) "wanted" wakelocks/alarms.

That's why it's better to provide an idle dump.

It should be at least 4 hours to be representative, but it can be longer ... if can leave your phone for such a long time ;)

---------- Post added at 05:59 PM ---------- Previous post was at 05:46 PM ----------

Yes, "msm_hsic_host" (): 21 m 27 s (1287 s) Cnt:(c/wc/ec)558/266/0 9.6% kernel wakelock is the biggest wakelock on your phone.

Rest seems to be Ok IMO.

Have a look here => http://xdaforums.com/showpost.php?p=34747204&postcount=90

This user could minimized this wakelock by disabling Google search and Google maps ... and (maybe the main fix) by turning off settings-accounts(google)-location.

So please check that all location service options in ROM and Google settings are disabled.

Then check again.

P.S.:

For analyzing the battery stats, please use latest stabel BBS app version, which is ATM v1.11.0.0 - not a beta version.
[BetterBatteryStats] cute_kayani:
I tried *#*#4636#*#*

but when i select only gsm or gsm prl. I won't save. It goes back to gsm/wcdma prl.

Don't know how can i choose only GSM.

Plz help.
[BetterBatteryStats] bobdoblo:
I wouldn't worry about that for now.

You have put all gsf on, thats the main thing.

You should see much better deep sleep now!:)

http://d-h.st/users/ApriliaM3?fld_id=7704 All MODS for NeatROM JB courtesy of AprilliaM3
[BetterBatteryStats] -iNCEPTiON-:
Kindly check my dump file .. and help me

http://db.tt/kY6RzQUy
[BetterBatteryStats] cute_kayani:
I checked here are your wakelock

Wakelocks ========= SystemUpdateService (Google Services): 19 s (19 s) Count:0 32.6% Checkin Handoff (Google Services): 19 s (19 s) Count:0 32.6% Event Log Handoff (Google Services): 19 s (19 s) Count:0 32.6%

I think system update is checked in ur fone plz uncheck that. In setting >about phone> software update and uncheck all.

For checkin handoff..it is gone when i did hard reset

---------- Post added at 12:26 AM ---------- Previous post was at 12:25 AM ----------

I checked here are your wakelock

Wakelocks ========= SystemUpdateService (Google Services): 19 s (19 s) Count:0 32.6% Checkin Handoff (Google Services): 19 s (19 s) Count:0 32.6% Event Log Handoff (Google Services): 19 s (19 s) Count:0 32.6%

I think system update is checked in ur fone plz uncheck that. In setting >about phone> software update and uncheck all.

For checkin handoff..it is gone when i did hard reset.

---------- Post added at 12:28 AM ---------- Previous post was at 12:26 AM ----------

But in previous posts everyone is saying disable events in gsf to minimize wkelock.

Thats why i did and now you are asking to enable.

Now enabled, lets see.. hope for the best:thumbup:
[BetterBatteryStats] It_ler:
Sorry, 50 seconds is way too short.

Please install latest stable BBS app version (v1.11.0.0) And provide an idle dump (while doing nothing/screen of all the time) for at least 4 hours.
[BetterBatteryStats] Vger1:
Hi

I would really appreciate some help figuring out what is eating my battery, was working fine until a few months back... I done factory resets, mega wipe, tried different ROMs and kernels... I'm running out of ideas (need enough power for full working day) next thing would be one of those giant batteries - unless there's is a kind person that can help me figure out the problem.

http://db.tt/XNPCmdYk
[BetterBatteryStats] zubsz:
Battery drain help

Hey guys i attached a BBS dump file. I really need to find out what's causing the huge drains on my battery. help will be greatly appreciated :D please help.
[BetterBatteryStats] It_ler:
Here are your main partial wakelocks:

=========

com.fsck.k9.K-9 Mail

com.nitrodesk.droid20.nitroid.TouchDown for SmartPhones

com.google.android.apps.maps.Maps

dk.tacit.android.foldersync.full.FolderSync

Either disable/freeze those apps or try to change their settings, e.g. disable or increase update intervals.

And disable Bluetooth when you don't need it.
[BetterBatteryStats] Milchbeck:
Can anyone help me

ConnectivityService wake up my phone

http://db.tt/vjCTtZR8

Send with Note 2

OMEGA v8

Motomoto00 by Raubkatze
[BetterBatteryStats] Casanoaa:
JuiceDefender.Service (JuiceDefender): 11 m 49 s (709 s) Count:1925 3.2%FacebookService (com.facebook.katana.Facebook): 40 s (40 s) Count:45 0.2%
SyncService (com.evernote.Evernote): 20 s (20 s) Count:11 0.1%

First of all uninstall Juice Defender and make an idle log where you don't touch the phone 4 hours after unplug.

Turn off locations services in settings .

Uninstall facebook and install other like friendcaster.

Don't use push and sync all manual

Enable alarms and network in bbs app to next log.

---------- Post added at 09:53 PM ---------- Previous post was at 09:44 PM ----------

This is not an idle log. Unplug your phone and leave it 4 hours. then dump a file.. turn off bluetooth..
[BetterBatteryStats] yahyoh:
Wakelocks

=========

PollService wakeLockAcquire (com.fsck.k9.K-9 Mail): 15 m 11 s (911 s) Count:300 4.3%

Kernel Wakelocks

================

"wlan_rx_wake" (): 59 m 31 s (3571 s) Cnt:(c/wc/ec)3198/0/3197 16.9%

"battery-monitor" (): 48 m 41 s (2921 s) Cnt:(c/wc/ec)2942/0/2943 13.8%

"l2_hsic" (): 26 m 53 s (1613 s) Cnt:(c/wc/ec)3094/73/3094 7.6%

"PowerManagerService" (): 20 m 49 s (1249 s) Cnt:(c/wc/ec)692/0/0 5.9%

"alarm_rtc" (): 15 m 28 s (928 s) Cnt:(c/wc/ec)2217/35/36 4.4%

"wlan_wake" (): 8 m 26 s (506 s) Cnt:(c/wc/ec)43701/2626/0 2.4%

most of the kernel wakelocks are wifi related :rolleyes:
[BetterBatteryStats] Vger1:
Tnx... but I already tried that and still Android OS it's talking a lot of battery?

I will try one more time disabling all the above apps and upload a new BBS dump off the problem persists

---------- Post added at 10:28 PM ---------- Previous post was at 10:21 PM ----------

Tnx... I tried disabling wireless - no change... then I tried disable data as well and battery drain stopped!?

All settings are the same as they where before the drain occurred... I even tried a nandroid restore from a point before the problem?
[BetterBatteryStats] yahyoh:
from a lot of testing i found kernel wakelocks what make android os go higher than normal
[BetterBatteryStats] chamonix:
Release 1.12B6

New beta is up with some general overhaul of reference saving (hopefully now avoiding freezes), and some major refactoring to the way the spinners are populated. Happy testing
[BetterBatteryStats] -earth-:
Hello,

I set custom point, but i think, there would be a problem:

Look at the time since custom ref, and at the time of the first entry.
[BetterBatteryStats] Ch1ngl1ng:
Installed the newest beta, and I get an unhandled and unknown error. Don't know what happened, root is working correctly.
[BetterBatteryStats] elmexicanoalto:
Has anybody experience this weird thing when connected to wi fi and mobile data starts freaking out? I know mobile data is suppose to disconnect once connected to wi fi but whenever I connect to wi fi my mobile connection goes weird and connects and disconnects simultaneously. Once I disconnect from wi fi it stays connected. Also this weird loop causes the RILJ wake lock for me.

Sent from a cloud of smoke
[BetterBatteryStats] xeonyxorich:
How can I lower Google related wakelocks without sacrificing Google Now features?
[BetterBatteryStats] Vger1:
Same problem even with the mentioned apps disabled:( any ideas?

http://db.tt/UXoiS6cF

http://db.tt/d8V3x2zE
[BetterBatteryStats] chamonix:
Please provide a logcat

Edit: please go to advanced settings and set "to ref" to visible
[BetterBatteryStats] Hilmesh:
Hello Karpfenhai,

Which weather app / widget you use in Apex launcher? is there something good or better than Accuweather. I am unable to use Accuweather in Apex
[BetterBatteryStats] It_ler:
1. Disable Bluetooth.

2. Disable all location service option in ROM and Google settings.

Your wifi (kernel) wakelocks are very high, but first try the above mentioned steps and check again before doing he same idle dump with wifi disabled ... jst to compare the battery life with and without wifi.

Good luck !
[BetterBatteryStats] Karpfenhai:
I have restored the old accuweather from ICS but currently im Using Yahoo weather which is pretty cool ;)

Its up to you!
[BetterBatteryStats] Hilmesh:
how did you restore the old accuweather??? can you please tell me which apk i need for both Accuweather as well as yahoo weather?
[BetterBatteryStats] Karpfenhai:
Currently im busy but later today i will..
[BetterBatteryStats] ryvandal:
So I installed a fresh rom (clean rom) and perseus 28...

Long story short I did my first test with just mobile data

And one with wifi.

My mobile data went well

But the wifi destroyed my battery...

Any help would be appreciated
[BetterBatteryStats] Hilmesh:
okiez. no probs. will look forward to your reply. :)
[BetterBatteryStats] Karpfenhai:
I just have a short break, here you go:

Yahoo:

I like the Yahoo app cuz it surprised me with background pics based on my current location plus the app is beautiful.

Accuweather:

Since the latest apex update the widget looks nice again.

Here my currently installed weather apps:

Have fun!

And, my lockscreen:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] yahyoh:
wifi is ur problem ( on data every thing seems normal )

"wlan_rx_wake" (): 1 h 34 m 9 s (5649 s) Cnt:(c/wc/ec)5380/0/5380 11.9%

"battery-monitor" (): 1 h 15 m 46 s (4546 s) Cnt:(c/wc/ec)4594/0/4594 27.9%

"mdm_hsic_pm0" (): 36 m 9 s (2169 s) Cnt:(c/wc/ec)5136/47/0 13.3%

"alarm_rtc" (): 21 m 10 s (1270 s) Cnt:(c/wc/ec)3054/1/27 7.8%

"wlan_wake" (): 16 m 41 s (1001 s) Cnt:(c/wc/ec)74125/4124/0 2.1%
[BetterBatteryStats] Hilmesh:
Nice lock screen ;). Thanks
[BetterBatteryStats] ryvandal:
Okay. Is there any way around those wakes?

Or can I never use wifi??
[BetterBatteryStats] Karpfenhai:
Sure there is, just get an network monitoring tool and scan your network for the device which issues the broadcast.

Disable the source (reconfigure) and set up your router to block the broadcast (nat /firewall)

This should help a lot especially if your network contains cable and non cable participants. If you are experienced enough, built a vlan dedicated to your wireless devices.

Good luck!

@all, I'm currently experimenting with gsf, I think I'll post a short guide soon, looks good so far!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] ryvandal:
Network monitoring tool on my pc? Or phone?
[BetterBatteryStats] Hilmesh:
same here ;)
[BetterBatteryStats] deaddy93:
I see. So i fully charged (btw. is it healthier to charge when power off? or lower the voltage in stweaks?) and let during night.. but i suppose theres not much to study :P
[BetterBatteryStats] yahyoh:
try this app : https://play.google.com/store/apps/details?id=uk.co.opticiancms.wifiprobe&feature=search_result

and there is one called shark for network sniffing too :)
[BetterBatteryStats] ryvandal:
Thank you. I installed wifinspect but I have no idea what to do or how to use it...

I did a network sniff and got a bunch of IP addresses.... Is that what I do? Anyone have a guide I look at? or can help me figure this out lol
[BetterBatteryStats] yahyoh:
u have to find what the device that sending u packets and waking up ur device :)

( u have to go to network sniffing in the app then hit start sniffing then leave it for 10 -15 minutes then go to Pcap analyzer )
[BetterBatteryStats] It_ler:
Very good :good:

In more than 8 hours yur battery loss was about 5% (100% to 95%) => 0.6%/h with a deep sleep ratio of 99,7%.

Nothing to improve IMO.

Charging while phone is off is faster, but I think slower charging is a little bit healthier.

If you lower the voltages in STweaks - this is called undervolting (UV) BTW - you may gain some extra time on battery.

But you may also get into instablility issues.

That's why I prefer running on stock values ... or at least proofen as stable UV values (e.g. pre-defined voltages of the kernel developer himself).

But it's your choice with SiyahKernel to tweak as you want and your phone supports.
[BetterBatteryStats] ryvandal:
Ah okay... I am still confused... I let it run for about 20 minutes..

Now I have a bunch of IP addresses... what do I do with those?

Sorry in advance... Just wanna get rid of this error lol
[BetterBatteryStats] Karpfenhai:
Check the type of traffic from these IP's, if there is any sign of "Broadcast"

Use an app for this (pcap file analyzer).

I would recommend to use Wireshark, all in one solution ;)
[BetterBatteryStats] ryvandal:
wireshark protocols?

Is there a free alternative? I don't have a credit card
[BetterBatteryStats] drraptor:
MY phone was constantly awake, even though I wasn't using it and wifi was off.

Dump attached.
[BetterBatteryStats] yahyoh:
tap on the ip and hold it will give u many options choose host information :p
[BetterBatteryStats] ryvandal:
When I open the pcap in wifinspect I have these to choose from

packet distrubution

bandwidth distribution

commmuincating hosts

which of the three should i select?
[BetterBatteryStats] COJKOO:
Hello! can anyone help with battery drain. i have android system usage is about 20-25% i think this problem with

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint but i have not GTALK. (deleted)

so, please help me to optimize system.
[BetterBatteryStats] adxs2:
So i have been trying to modify GSF per Karpfenhai's guide, but Gemini is not saving some of the new changes. Any workaround to this?