yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] nobnut:
I have to rush out soon and won't be back before tomorrow morning. I will have a proper look and come back then.

In the meantime, the one thing that does jump out at me is:

com.htc.mysketcher (com.htc.mysketcher.SketchAndShootWorker)

... it was running for the entire duration of your phone being switched on. I don't know what it is, but it doesn't sound like a system critical service. It might be that the settings of this app could be adjusted to improve battery life.

Anyway, I will reply more properly tomorrow. Sorry to dash off now :(

EDIT:

In the meantime, here is what we're aiming for ;)

Yes, my screen was off, but 3 hours, still on 100% and so little power used that the battery stats hadn't even populated.

By my reckoning 3 hours, even at 1% battery used equates to 300 hours or 12.5 days on standby.
[BetterBatteryStats] Christian_Troy:
That yours? That is solid to put it simply ;).

Thanks on the above, good catch. I have no idea either what this is. All HTC bloatware probably. Not really sure though about "services" in general, they only appear in the log, do the wakelocks not matter so much in this case? Well you're the expert. :o Thanks either way for the time you're taking to help (all of those in need ^^).
[BetterBatteryStats] chamonix:
EventLog is an interesting one we have been talking about last week. There was no apparent reason for the high wakelock and no logic to it neither. The problem suddenly went away when ffacebook was frozen if I recall correctly. So let's start there: do you use any tool related to facebook sync and if yes could you disable it to see if anything changes?

That one together with Nobnut's suggesting would be a good start.

I reckon our approach is not version systematic but in this case unfortunately we don't know any way to find the cause for the EventLog effect.

For thenext one on the list (AlarmManager) we have some more background but let's go there when we got rid of your #1 drainer

If I were you I wouldn't drop that phone, you will have fun with it while learning stuff and after while enjoying the results you managed to reach.
[BetterBatteryStats] Christian_Troy:
No worries, not quite there yet ;) Thanks to you too for chiming in.

As for eventlogservice I have no such accounts set up, I don't even have a facebook account at all to be frank. In my accounts & sync menu I only have the HTC stock accounts (news, weather, show me, stocks) and my google account. All settings are factory fresh so far and I have only installed BatteryTime and bbs since the reset. I even made a test run with no apps manually installed at all right after the reset.

I said it's mysterious. :D
[BetterBatteryStats] wasnt:
Holy **** Sausage! I think I fixed mine.

In DConfig (within Synergy) I had Sense Banned. I then Unbanned Sense and then Banned it again. Seems to have fixed the problem.
[BetterBatteryStats] nobnut:
LOL
[BetterBatteryStats] chamonix:
Judging from the number of call stack in your logcat your ROM is not stable. My best guess looking at your situation:

- you should disable your lockscreen as it dumps and there are wakelocks involved. Disabling it may help suppress a cause.

- your awake is 100% your uptime: that is not cause by a wakelock but rather ba hardware / drivers issues as far as I can see. I'd suggest you try disabling wifi to see if it changes something to taht situation, if not a dmesg would be helpfull.

Once you have got your phone to deep sleep we should have another look at the wakelocks, those are the smallest of your problems right now
[BetterBatteryStats] chamonix:
Then let's proceed with the account that you sync. Disable them all together to see if it reduced EventLog. If yes we know where to look further, if not we need to look elsewhere. What about the app Nobnut mentioned: could you find what it is?
[BetterBatteryStats] wasnt:
Thanks for the response! I did get Deep Sleep to work. I just unplugged the phone and I am letting it sit so I can check BBS again. I will post the logcat and BBS after it sits for a bit.

What is dmesg?
[BetterBatteryStats] nobnut:
Found this:

"Also thought if I can send the right intent directly to the proper place on the device that I might be able to kick off a screen capture function directly (which is what I really want. Through some log examinations (when you Long-Power + Home click on HTC) a program called 'com.htc.mysketcher' (FlashActivity) is being called..."

From here

Will look into it more tomorrow.
[BetterBatteryStats] Christian_Troy:
Unfortunately, one cannot actually remove or "disable" the stock accounts (Google can be removed, but that didn't help). However, I have them set at manual sync and lowest possible update rate. Generally, mobile data is off.

On a side note, this particular day (today), eventlog was extraordinarily high. Overnight yesterday it was tied at 12% for eventlog and alarmmanager. I haven't changed a thing this morning ... I imagine it would be very hard if not impossible to reliably track small differences in those stats.

@nobnut: This sounds like fun. Actually, since I factory reset my phone yesterday I have not even used the screen capture function once up until tonight where I captured the battery stats.
[BetterBatteryStats] nobnut:
Google stuff you don't know :) It helps Chamonix to help you.

Dmesg
[BetterBatteryStats] wasnt:
Here are the BBS, dmesg and logcat from my phone after Deep Sleep was fixed.
[BetterBatteryStats] yeahmann:
I'm not sure I understand.

===========
Other Usage
===========
Awake (): 7 m 59 s (479 s) Ratio: 3.3%
Screen On (): 5 m 58 s (358 s) Ratio: 2.4%
=========
Wakelocks
=========
Event Log Service (Google Services): 40 m 40 s (2440 s) Count:8 16.6%
AlarmManager (Android System): 21 m 27 s (1287 s) Count:117 8.8%

The Battery History agrees with the Wakelocks, not the Other Usage. On the other hand, I'm getting very little battery drain.
[BetterBatteryStats] wasnt:
Here is an updated BBS that includes 7hrs off the charger (over a half hour with the screen on and 67% battery remaining). Awake is double that amount of time. Is that correct?
[BetterBatteryStats] :
please guys, any comment on this?

I'm using latest leomar's 2.3.5, siyah kernel 1.7.8, smartass2 governor 100-1200 a little bit of undervolting. I'm seeing strange wakelocks in BBS, never seen them before. are they rom or kernel related? battery seems to drain quite fast, I can't get past 3,5h of screen on from 8 am to 12pm, and during the night I lose more tha 1% per hour with wifi on. looking at the battery usage I see no strange or unwanted apps (apart from andorid OS...), and there are no signs of phone activity during screen off apart from very brief moments (might be related to my todo app syncing and facebook).

please advice! :)

forgive me if I missed some important details, please ask if it's the case ;)

thanks a lot, and long live BBS, my best friend for setting up a phone so good and fast it almost slips out of my hands!
[BetterBatteryStats] gommans.mark:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Here it is, my logcat file of last night.

Hope all info in the file is set correctly and you can give me some tips. Thx again!!

http://db.tt/AUzNoTY7
[BetterBatteryStats] dwie:
Anyone see any room for improvement? Charged my phone until 100% and left it overnight with WiFi and Auto-sync on. I know KakaoTalk is waking my phone up a lot so I changed some settings in it.

Also kind of OT question but: Since I'm using two batteries, I noticed that whenever I put another (fully charged) battery in BBS does not register anything. Does this mean that everytime I change batteries I have to connect/disconnect my charger for a few seconds? And does changing batteries have any effect on wakelocks? Thanks!
[BetterBatteryStats] Karpfenhai:
I dont like the split of the thread for the following reasons:

- Experts and rookies are on the same place, so rookies can learn better.

- device specific threads are nonsense, you will not get the full knowledge to all devices, threads will abandon.

- Sometimes deeper experience is needed, if Devs are watching the thread, problems are recognized and responded faster.

- I like the "BBS-Family" here, i dont want to "monitor" several Threads, but thats my personal opinion.

So i voted No, regards!
[BetterBatteryStats] Andyy2k3:
Is there anything to improve? I wonder why AlarmManager had 55min of waklelock this night.

Would be nice if someone had a look. Thanks!

View attachment AlarmDump.txt

View attachment BetterBatteryStats-2013-02-25_100623951.txt
[BetterBatteryStats] Karpfenhai:
If you change the Battery you will loose all referencies, if bbs is not net to "since boot" you will not gather information, so yes, just plug the charger a few seconds and use since unplugged then.

BTW, Kakaotalk plus your Wlan are the main cause for your overhead awake times.

The figures in your dump look wrong to me somehow, maybe you can take another reading after unplugging the device,

but this...

com.sonyericsson.android.wakeup (): Wakeups: 911

Alarms: 911, Intent: com.sonyericsson.android.wakeup.FastDormancyWakeupServer

...leads me to the question, if you could disable fast dormancy on your device? Check the desired thread for known options to do so,

regards.
[BetterBatteryStats] sachilleas:
Please give me a helping hand here before I throw S3 out of the window.

My phone never gets into deep sleep.

I have AudioOut_2 "Partial wakelock" and Android "Alarm" with 144 wakeups (1015 android.intent.action.TIME_TICK).

Media server under Android's battery settings stays awake for many hours but it's only 7% .

The weird thing is that some times after I restart the phone, it behaves normally and some other times it gives me the above wakelocks. The better battery stats file I attach is in a day with 20h total battery time (approximately 10h with the problem - 10h withouth it)

I have tried to remove the sd card , change Roms , change kernels , Megawipe my internal SD , run media rescan root , install applications one by one after a clean install trying to find the culprit.. but nothing. The above behaviour is random and I can't find what it is causing it. I have searched all the threads I could find but nothing again.

Please give me your lights, I'm desperate here ! :cyclops:
[BetterBatteryStats] kpavl01:
Karpfenhai, since you are here and you helped me with my wifi drain before I have a question.

Everything stayed the same regarding router and wifi but i changed rom to CM 10.1 and i am on stock kernel (4.2.2 based rom) and i noticed wifi drain.

https://dl-web.dropbox.com/get/Publ...ABTDLaqv9tnmWN4LToykfaQUfFxr6wCPMo1lC73VuN0hg.

Do you know the solution now?

Channel is 13 like before (changed to 13 from 1).
[BetterBatteryStats] Karpfenhai:
Are you using Greenify? Did you receicve certain updates a short while ago?

Read some pages back, there are many others complaining the same issue, but there is no solution yet, sorry, try to figure it by yourself ( freeze updated apps or revert them)

Good luck!

PS: a logcat may help.
[BetterBatteryStats] Andyy2k3:
I unplugged the device yesterday and left it idle during the night. Is this the right way?
[BetterBatteryStats] Karpfenhai:
Japp it ist, but choose since unplugged before dumping.
[BetterBatteryStats] sachilleas:
I have no idea what Greenify is and i costantly change custom Roms in order to resolve the wakelocks, so I didn't get any update as I am not in stock condition! It drives me crazy because sometimes happens and sometimes not without a warning or a pattern.

Here is the logcat : https://www.dropbox.com/s/asjlurpisvwhqj6/logcat-2013-02-25_114533319.txt
[BetterBatteryStats] Karpfenhai:
Search for DTIM Intervall on your router, set it to 255 as first measure seee how this goes.

Your link isnt public so i cant see your file..;)

7 mins are okay, the WL is granted because your screen goeas of while you are talking, .. so its normal or do you want to loose your call instead?
[BetterBatteryStats] kpavl01:
Thank you Karpfenhai!

IDK what is wrong with Dropbox but here is my dumpfile.

EDIT: DTIM Interval set to 255 (was on 1)

http://dl.dropbox.com/u/34820089/BetterBatteryStats-2013-02-24_101015779.txt
[BetterBatteryStats] Andyy2k3:
I think I chose since unplugged: "Statistic Type: Unplugged to Current"
[BetterBatteryStats] Karpfenhai:
Hmmkay, thats an BBS specific logcat, could you attack a system generated one (Terminal)?

Also a dmesg if possible, normally it should be possible to see what causes the lock.

I curious too since many users are affected...
[BetterBatteryStats] oae08:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Any help please. Thanks.
[BetterBatteryStats] kpavl01:
Try freezing Gtalk, google maps and disable location service.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

C'mon man this dump is good when Wi-Fi was active, nothing to worry about.

Tapatalked from my Galaxy SII
[BetterBatteryStats] kpavl01:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Ok, but it drains 1%/1h when on wifi.

I changed dtim on router settings and i get no internet acces or limited acces.
[BetterBatteryStats] matt-86:
hi, here is my log of 9 hours without touching the phone..

can someone suggest me if i can get better battery life?

thanks
[BetterBatteryStats] kpavl01:
I also noticed GTALK_ASYNC_CONN_com.google.android.gsf .... in Partial Wakelocks.

Google maps and talk frozen, location service off.

I will search and fix it, but I am mailny interested in wifi draining battery/if it is any?
[BetterBatteryStats] oae08:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Gtalk is already frozen. Google maps is greenified and location services is already off :confused::confused:
[BetterBatteryStats] kpavl01:
http://xdaforums.com/showthread.php?t=1179809&page=487
[BetterBatteryStats] Karpfenhai:
Really??

Try 200 then, lower it until it works, 8 might be a good compromise, as higher as more battery friendly but bad to voice applications...
[BetterBatteryStats] kpavl01:
Yes, I lose 1%/1h, Idk if that is much but formerly I've lost 1-3% over the night with wifi on. On 4.2.1 based rom.

I will try 200.

EDIT:

I've set DTIM interval 200 and it doesn't do well, 100 and it doesn't do well. It loads webpages slow for 1 minute and after that it doesn't load at all.

Now I've set DTIM interval 10 and Beacon Interval from 100 to 200. Is that ok? Should I lower/rise Beacon and rise DTIM more?

Youtube works ok, everything loads fast.

EDIT2:

After 1 hour i notice less wlan_rx wake , wlan_ctrl_wake and wlan_wake.
[BetterBatteryStats] danslecarton:
The CPU was clocked at 384 MHz for over 9 hours. What could it be?
[BetterBatteryStats] and8res:
Hi

Any methods to improve ?
[BetterBatteryStats] sachilleas:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

I uninstalled viber and audioout_2 wakelock and media server immediately stop counting time! Well done viber team.
[BetterBatteryStats] oae08:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Yes but we have to send to viber support so hopefully they can fix this :(

Please everyone with this problem should do this.
[BetterBatteryStats] erto90:
R: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Do you think can be done better than this?
[BetterBatteryStats] kpavl01:
Idle? Post a Dump File.
[BetterBatteryStats] erto90:
R: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Yea idle,with only gmail sync on,WiFi and data on. I changed rom , as soon i let it cycle a bit I'll post the file

BTW galaxy s3 (stock battery) carbon ROM 1.3 and yank kernel
[BetterBatteryStats] It_ler:
Here is another post concerning the AudioOut_2 wakelock issue with Viber => http://xdaforums.com/showpost.php?p=38450220&postcount=34812

He could solve the issue with a small change in Viber options:

Just go to the Viber setting and check "use system sounds" option.
​

Maybe it works for you too.

Good luck !

EDIT:

I have just installed Viber from Play store and also had a massive AudioOut_2 wakelock.

Then I disabled the option "use system sounds" and the wakelock was gone.

So for me, this option has to be UNTICKED in Viber settings.
[BetterBatteryStats] oae08:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Thanks buddy but for me now my main issue is

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint

I posted a dump file above but no one replied to me.

I would appreciate your help.

And btw gtalk signed out and gmaps frozen. Location services off. I have no idea why this wakelock :(
[BetterBatteryStats] kpavl01:
I posted a link for you, search a bit. Disable google account and add it back, play with gsf autostarts (play means look for Karpfenhai's configuration).
[BetterBatteryStats] oae08:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

I saw your link but it was link of your post above me that says you have the same problem :p
[BetterBatteryStats] kpavl01:
Mine is solved (gtalk_async, not wifi), i just disabled google account and enabled it again. http://xdaforums.com/showthread.php?t=1179809&page=487
[BetterBatteryStats] matt-86:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

No help?.... :(
[BetterBatteryStats] o0boiboi0o:
kpavl01 is right mate. See http://xdaforums.com/showpost.php?p=25748967&postcount=4861 for solution.

Use Autostart, change to group by application, scroll down to Google Service Framework, and disable all the entries that do with GTalk.

One thing to note is that if you freeze GTalk, you will encounter issues with push messaging such as Whatsapp.
[BetterBatteryStats] sachilleas:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

It does not work for me unfortunately.
[BetterBatteryStats] It_ler:
Your main alarms are:

Viber, Maps, Samsung Push, Facebook and WhatsApp.

Either disable/freeze those apps, or disable autostarts (like described by Karpfenhai for Maps - link in post #3), or try Greenify app from Play store (does not work for system apps).

Good luck !
[BetterBatteryStats] kpavl01:
Seems that my wifi drain is gone....but idk if dtim and beacon intervals are fine.
[BetterBatteryStats] coolloser:
I've gone from 1.9% to 1% drain an hour after junking Facebook and maps.

Before:

http://xdaforums.com/showpost.php?p=38314765&postcount=13446

After: (attached)

Looks to me like Google Now is the worst culprit now?
[BetterBatteryStats] kpavl01:
Hours aren't the same, so don't bother by %.

Look at Screen on/Device Awake. That is better.

So you want bettery battery life?

Freeze google search, gtalk, disable location service, manually sync gmail.

Play with GSF autostarts (find Karpfenhai's post).
[BetterBatteryStats] It_ler:
The Google "double-pack": Google search and Google+.

Disable/freeze those apps just to see their influence to yor battery life.

Good luck !
[BetterBatteryStats] dwie:
Thanks for your answer! Anything I can do to fix Wlan? I read that I have to check my router settings, but what exactly do I have to check?
[BetterBatteryStats] kpavl01:
Have you read my posts few pages ago?
[BetterBatteryStats] m3nster:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Quick question,

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint

Seems to be Google services, but why does it uses the most battery?

I only use sync on gmail, calendar and contracts.

Edit; dumb me RTFM!

send from my nexus 4 using tapatalk
[BetterBatteryStats] danslecarton:
Anyone left for me? :)
[BetterBatteryStats] It_ler:
Either you have a very big battery or something is wrong with your BBS dump.

In more than 18 hours you only had a battery loss of 2% (26% to 24%) => 0,1%/h ... with Awake time of more than 7,5 hours and a Screen On time of nearly 3 hours.

It's kind of "magic" IMO.

Your main alarms are:

com.rageconsulting.android.lightflow (): Wakeups: 4782

com.google.android.apps.maps (): Wakeups: 472

com.kakao.talk (): Wakeups: 370

Think about disabling/freezing, or disabling autostarts - Karpfenhai has described how to optimize Maps (lik in post #3).

Good luck !
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Who is of the opinion that bbs could use a dashclock extension?

Edit: damn autocorrect
[BetterBatteryStats] Christiancs1969:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Cool:D

s2 rootbox
[BetterBatteryStats] sachilleas:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

What is the android.intent.action.time_tick wakelock guys?
[BetterBatteryStats] kpavl01:
After uninstaling Autostarts, do all settings go back to stock?
[BetterBatteryStats] xI mEzMeRiZe Ix:
Re: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Is there any reason why the phone app will have 40-50 alarms in an hour when no one had called me?

Sent from my Galaxy Nexus
[BetterBatteryStats] gommans.mark:
(not sure whether you saw my previous post, apologies for posting the log twice)

this is my file of last night. No wifi or anything like that. 8% loss, which is pretty high compared to your 0-2%.

Hope you or somebody else can help.

Appreciated!!

https://www.dropbox.com/s/xz08e8ywhs6ipz1/logcat-2013-02-25_062807415.txt
[BetterBatteryStats] osm0sis:
Between DTIM 200 (Default 1), Beacon Interval 200 (Default 100 but I had it set to 75 since reception isn't the best throughout my house), and setting Static IP on my phone's WiFi profile for my house, my wlan_rx_wake lock is also gone! Oddly the GTALK ASYNC CONNECT gsf one popped up again where it wasn't a problem before. Solving that now and then on to figure out exactly which setting fixed wlan_rx. :)

As for switching from EAS to POP3 for mail with Outlook.com, I don't recommend it. POP3 is so sloppy with it, the stock Email app downloads the same 25 messages on every boot, saying they're unread every time. Best solution for Exchange Services/Email misbehaving, or at least a temporary fix, is to remove your Corporate (Exchange) account. Clear data+cache on Exchange Services and Email, then readd the account, poll interval of 1 hour, don't auto download attachments. Makes the counts on it a bit more reasonable again. :good:
[BetterBatteryStats] kpavl01:
I've set DTIM 10 and Beacon interval 200. Seems ok. There is wlan_rx_wake and wlan_ctrl_ wake but in 3 hours I don't lose any battery life. Before I've lost 3% in 3 hours.

I have Gtalk async connect (Android Endpoint) Count 121, 6 sec and newly i have GpsLocationProvider Count 266, 4 min. My gps is not turned on.

Wlan_rx_wake is 25 sec like wlan_ctrl_wake in 2 hours 15 minutes. Idk what that ctrl wake is.

Can someone explain these wakelocks?

wlan_rx_wake - i found

wlan_ctrl - only thing i can find about is to change kernel but i am on cm 10.1 4.2.2 and it doesn't support custom kernels

gps location provider - idk why it is here because i never use gps and I don't have any app that needs gps location acces.

gtalk async - i don't really bother by it because it is 6 seconds. Disabled gsf autostarts like Karpfenhai and it is still here, so uninstalled Autostarts and rebooted. Idk if settings are now on stock or not.

Let me know how you fixed wlan_rx.
[BetterBatteryStats] chamonix:
http://developer.android.com/reference/android/content/Intent.html

Edit: btw it's not a wakelock but an intent triggered by an alarm -> wakeup
[BetterBatteryStats] osm0sis:
Yup. my wlan_rx_wake is also similarly reduced back to normal levels (like 1min in an hour vs. 20min in an hour). wlan_ctrl is connected to wlan_rx_wake and wlan_wake, don't worry about it. They're all low now and should never really be gone completely because that's just your WiFi working.

That's the same async connect lock I was referring to. I didn't have it before adjusting my router settings. Haven't used autostarts yet for anything, so I just enabled Talk, signed in, back out and disabled talk again to see if that fixes it. If not, I'll try removing and readding my Google account. 6 seconds isn't much but a count that high is trouble.

Not sure about GPS either, I don't have that one.
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][19 Feb. - V1.12RC11] BetterBatteryStats

Yes