yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] It_ler:
Hi my friend,

overall your battery life is looking very good IMO.

About the viber alarms:

com.viber.voip (): Wakeups: 51
Alarms: 51, Intent: com.viber.voip.action.KEEP_ALIVE_RECEIVE

It's hard to say what to do to reduce these "keep alive" alarms ... you can try to greenify viber and check if these alarms will decrease.

But as your overall battery life is fine and you surely use viber (otherwise you would already have uninstalled it), you may just accept and live with those alarms.

Just my 2 cents ...
[BetterBatteryStats] chamonix:
51 keep alives on 8 hours that would be one wakeup every 10 minutes and is not as bad as many IM clients. Without knowing what the max possible keep alive is (as viber is not open source) I would not tamper with that because I risk losing your session or presence information on the server
[BetterBatteryStats] m_harsh:
Hey.. I'm getting these wakeloks are they normal?? Or is it something to worry??

Please advise
[BetterBatteryStats] Perseus:
Please attach here. I can't open with firewall issues.

Questions

1. Are you on a AOSP Rom or Touchwiz ? If on one, can you try the other to see if the wakelock resurrects ?

2. The Cable you use on PC, is it able to charge to 100 % ? Or is it the same one from your charger which won't charge 100 % ? Can you borrow another charger to see if you charge to 100 % ? Please go to your home screen before disconnecting.
[BetterBatteryStats] boscos:
I'm on slimrom 4.3 build 2. I've also tried this with the latest cyanogenmod but still same wake lock. I'm running philz touch recovery. I could even change the charger which is not an issue because charging is good on an alternate one. But Depletion is even better!
[BetterBatteryStats] shadyabhi:
sec-battery-monitor wakeups. How much per second?

Hi, on my stock Galaxy Note 3, (exynos version), I see around 0.19 wakeups per second which corresponds to 1 wakeup every 5 seconds.

http://i.imgur.com/RaFxKnN.jpg

I understand that it's because of some battery related app reading the battery readings but I even did a factory reset but it still stays at the top. Can someone else with Samsung Note 3 or similar software (S4 or note2 etc) confirm that this particular wakeup is this high?

Would really appreciate a reply. Thanks

EDIT: I checked "adb logcat -v time | grep Battery". Seems like, the BatteryService checks for battery too often. Is that normal?
[BetterBatteryStats] Perseus:
Remove Phone app from Recents list. Also wipe data for System app called Media Storage

First off, due to some inherent Android double counting, the math of time taken won't line up right. It is what it is. So I use these as symptom of the problem rather than absolute values. I also prefer to look at Alarms to see who's been waking up the phone from deep sleep.

Since you are not Rooted, its difficult to predict. But you could focus on usual suspects, Turn off Location Service, Freeze off all the Location Based Apps along with Google + & Hangouts.

Is your Microusb port shorted by chance ?

---------- Post added at 12:09 PM ---------- Previous post was at 12:03 PM ----------

With due respect, you are redoing what this app does and does well. Difficult to say what app is draining your battery unless you post a Dump file.

BatteryService does poll the battery frequently, for the simple reason, that's the job it has as the name goes. I highly doubt that's the cause of your drain.

Just because you have power manager wakelock does not mean Battery Polling apps. Look at Partials and Alarms.
[BetterBatteryStats] boscos:
I'd never be able to charge my phone if the usb port was shorted.. it charges properly on another charger
[BetterBatteryStats] Perseus:
It will charge just fine if the 11th pin was borked.That 11th pin controls MHL signal.

For charging you only need rest of the 10 pins.
[BetterBatteryStats] boscos:
Gosh! How do I check this last pin?
[BetterBatteryStats] Perseus:
A Jeweler's Loupe or something similar and a bright tablelamp ?
[BetterBatteryStats] .dan:
How come the wake lock percentage calculated is so high? I'm using rc4. 15 minutes is less than 48 percent if 5.5 hours
[BetterBatteryStats] Gerton:
I think the 48 percent means that that wakelocks takes 48 percent from the overal wakelocks. So in total u have a awake time and 48 percent of that time was used by that wakelock.
[BetterBatteryStats] jlmcr87:
[MENTION=1330150]chamonix[/MENTION]

Hello other time. I investigate more, because all google icons are using xxxhdpi in the stock launcher with no problems, so i open a google apk to watch what happens.

On AndroidManifest.xml I can see that:

android:icon="@mipmap/ic_launcher_contacts"

And in the res folder the launcher icon is placed on a folder called mipmap-xxxhdpi

Maybe you have to change that.
[BetterBatteryStats] .dan:
i thought the behavior in the past was the wake lock percentage of "time on battery"
[BetterBatteryStats] brunek:
Hy guys, need help.. I have bad deep sleep on my custom ROM and I think its caused by wifi. I didnt have that on my stock ROM..:confused:
[BetterBatteryStats] Perseus:
Google Play, Avast, Drippler and News & Weather are your primary causes. Reboot will take care of Google Play. Avast is what it is. I haven't the foggiest what Drippler does and News& Weather needs to have specific Location set within that app. Also set its news update setting to once a day.
[BetterBatteryStats] chamonix:
I don't think so (from BBS manifest):

<application android:icon= [MENTION=3944923]drawab[/MENTION]le/icon_notext" android:label="BetterBatteryStats" >

where [MENTION=3944923]drawab[/MENTION]le is resolved against the effective density.

See also https://developer.android.com/guide/topics/manifest/application-element.html

Please feel free to check the source for any errors (current branch): https://github.com/asksven/BetterBatteryStats/tree/dev-kitkat/BetterBatteryStats
[BetterBatteryStats] chamonix:
You are looking into the wrong direction. I recommend using search in this thread as this wakelock has been discusses a few times already: t is a symtom and is caused by wakeups (alarms) as the battery level will get read/processed each time your device wakes up
[BetterBatteryStats] brunek:
So for google play to stop doing wakelock I have to reboot my phone every time? Is there any way to stop google play waking my phone up? Drippler is "driping" once a day about news on android scene.. I will uninstall all three, there aint that much useful..
[BetterBatteryStats] jlmcr87:
I´m not developer and i don´t know.....only compare your apk with a google apk. I think xxxhdpi only works using mipmap instead of drawable.
[BetterBatteryStats] chamonix:
I don't think so and that is not what the spec says
[BetterBatteryStats] jlmcr87:
Maybe you can contact other developer, [MENTION=631273]Chainfire[/MENTION] has just updated supersu with xxxhdpi as i ask him. You are doing something wrong with that icon.
[BetterBatteryStats] chamonix:
So it be. This is a minor issue and I will look into it when 1.15 is released
[BetterBatteryStats] Perseus:
With Due Respect, if I may say so, this is insulting at best to a developer who has poured a ton of personal time and has consistently provided prompt and efficient support.

Since you plainly admit you are not a developer, may I politely say that, please do not make statements that you can not back up. FWIW, I am a developer myself and although I didn't participate in your exchange so far, I do believe [MENTION=1330150]chamonix[/MENTION] is correct as far as /RES/xxHDPI folders. Anybody with APK Tool can check this for themselves. As a developer, I'd want to get core functionality first before paying attention to Cosmetics appearance of the app. I highly doubt the average user isn't going to stop using the app if it appears blurred. But they will stop using if the app can't work on Kitkat. So its a matter of priority.

As far as your original point on blurriness is concerned, it depends on quiet a number of factors not to mention your DPI and the image's DPI. Yes possibly the image's DPI may be lower, If so, the constructive way is to take the GIT code and modify the image &/or Code and present the successfully working Kang to the developer so he can include in the main branch.

Once again very respectfully I request you to use words with care.
[BetterBatteryStats] mag01:
[MENTION=3639717]Perseus71[/MENTION]

I think he didn't mean it that harsh way.

As for the xxxhdpi icon,

according to http://developer.android.com/design/style/iconography.html and http://www.gunhansancar.com/blog/android-icon-size-guidelines/ and http://developer.android.com/guide/practices/screens_support.html the BBS icon and its location seem to be alright.

And it seems quite ok at my Nexus 5. When I take a screenshot of the BBS icon next to the new SuperSU and Chrome for example, they look to be of similar (and pretty good) sharpness. Though some test build with completely different xxxhdpi icon would be essential to confirm whether it's really used, but that can definitely wait for 1.16 (or even later) test cycle.
[BetterBatteryStats] Casanoaa:
You are great guys. I have exams so I am not here much. Can you have a good night :))
[BetterBatteryStats] Pick_A_Name:
Hi, I'm having a problem with Wlan not turning off. I've set it to turn off when the screen turns off in the phone settings and in Spare parts. It continues to stay on nearly 100% of the time. It's thereby ruining my battery life. Is there a way to turn it off besides manually? Thanks for any insight you can give.
[BetterBatteryStats] skimminstones:
Yea ive just come into the thread to find out about this wakelock, Its only appeared since maps was updated but 1h 55 mins wakelock in a 10 hour period for the last two days now. Prior to this i had barely no wakelocks to speak of. Why is there no option to uninstall updates on maps?
[BetterBatteryStats] krede:
I just dropped by for the exact same thing. And like you, my wakelock appeared after updating Maps too...
[BetterBatteryStats] yhrn:
I have actually come to terms with this one. First I disabled network location completely and that made the wakelock go away (not too surprising). I didn't like that though as it means the phone won't even use cell towers to give rough location (so no location in Maps until GPS fix, no location to use for my weather widget, etc). I then started disabling wifi when not connected to a wifi network and I haven't seen the wakelock since.

It seems that with the following three conditions met the phone is constantly scanning for wifi networks to get an approximate location (and maybe sending the info to Google as well):

wifi enabled

wifi not connected

wifi network location enabled

Taking just one out of the mix stops that behavior. I now have great battery time.
[BetterBatteryStats] skimminstones:
my wifi was enabled all night and connected. Ive always left it that way and had no problems before.
[BetterBatteryStats] krede:
In my case the wakelock keeps appearing even though WiFi is properly connected.

Reading through the news in the new update, it seems to be triggered by Places.
[BetterBatteryStats] yhrn:
I also leave the phone on wifi during the night without the wakelock appearing. Just to make sure: your wifi sleep policy is set to never?
[BetterBatteryStats] skimminstones:
yea i checked that, its set to never.

Im using a Galaxy s2 but just checked my desire hd and the wakelock isnt on that, i cant remember if i have started maps since it updated on that though. Ill check it tomorrow and see if the wakelock appears on that as well or if its just my GS2 thats affected.
[BetterBatteryStats] krede:
Yup!

Looking forward to your findings... :)
[BetterBatteryStats] xuxuzao:
i am having some issues with the program

with version 1.2 the app starts, but doesnt show anything. Just blank screen

version 1.3 and 1.4 app crashes as soon as it starts

how can i make it work?

using galaxy s2 running ndt miui + abyss or syiah - none of them work (conversavitve + sio + some uc)

tks guys
[BetterBatteryStats] freaked:
Hi there,

5 hours use > 30% drain.....

I think I will change my setup and go back to foxhound ROM.

This hyperdroid is givinn' me hyper droid battery headache.
[BetterBatteryStats] ggogolewski:
Anybody knows what is "Startingprivacyservice" ?
[BetterBatteryStats] xflowy:
everyone with the networklocationpassivecollector issue try the following:

in caching-settings in maps > automatic caching > enable for both: wifi and mobile network!

seems to work for me.
[BetterBatteryStats] 18rmiller:
I have a high wakeup count for check in service but location sharing is turned off in latitude. From what I can tell nothing else uses that service so what could it be
[BetterBatteryStats] intulsa:
Anyone tell me what mmc_delayed_work is or point me to a resource? It's my biggest battery drain by far. Google search hasn't turned up much help.
[BetterBatteryStats] chamonix:
Have you tried uninstalling? You should at least be able to revert to the pre installed version. Or we could try analyzing the problem. Can you start with wiping the data of maps and leaving everything off?
[BetterBatteryStats] chamonix:
18 minutes may not be representative but during the time captured by the dump you phone has been awake all the time because of bluetooth (see kernel wakelocks). Switch bt off, rerun and we'll see further
[BetterBatteryStats] chamonix:
It would help if you could provide a logcat
[BetterBatteryStats] chamonix:
Never met that one. Could you please provide a dump and some insights about your installed apks. Anything corporate or management software involved?
[BetterBatteryStats] guido_glx:
I'm using the stock kernel

Is there anything I can do?

Enviado desde mi GT-P5210 mediante Tapatalk
[BetterBatteryStats] Sharpeyes:
Guys, could you help me with my dumpfile? posted few pages back but seems you ignored my post...:(
[BetterBatteryStats] oediv:
Can someone have a look at this Please

Gesendet von meinem Nexus 5 mit Tapatalk
[BetterBatteryStats] jlmcr87:
I don´t pretend to insult [MENTION=1330150]chamonix[/MENTION] and there is no doubt about is capabilities. I am in contact with him since beta 6, as he told me he don´t have a device with xxxhdpi to test. I´m not a developer but I can make suggestions to improve the things, we are a community(that´s why this thread exist), and the developer can do what he wants.

So please don´t misunderstand my words
[BetterBatteryStats] chamonix:
Yes, look if you can find /sys/kernel/debug/wakeup_sources

You may want to check the permissions all the way (/sys/kernel, /sys/kernel/debug/)
[BetterBatteryStats] jlmcr87:
I compile and decompile the apk and do some test, and the conclusion is that even with google apks, the launcher only shows the xxhdpi on the nexus 5.

With this resolution all is very sharp but i don´t know why xxxhdpi don´t work if google includes it in his apks.

So I send chamonix some corrected icons because xxhdpi was a little smaller in RC4 and the battery is not centered, also broken ldpi icon etc.:good:

Thanks for your attention.
[BetterBatteryStats] gabriolinari:
hi guys

i have LOTS of wakelock time taken from these 2:

1) Alarm Manager - Android System. this one grows by 5 units every time i unlock the phone and check, NORMAL??

2) Event Log Service - Google Services, this one is a bit more quiet but still growing silently.

Things i have on:

usually sync, but those 2 above grow regardless of sync being on or off, then i have 2 alarms in the calendar, one active and one not and some calendar notifications.

are those responsible? right now my phone is doing around 2% battery use but i notice that it grows very easily, just now i lost 1% in only 25 minutes.

the "awake" graph under battery looks strange.. sometimes it matches screen off (so good), sometimes, it seems to be on, with screen OFF for no reason whatsoever.

any idea?

thanks
[BetterBatteryStats] jgcaap:
Google..... Bah. I use an app to prevent use of the alarm . it stops the sync... But is better than that annoying wakelocks.
[BetterBatteryStats] gabriolinari:
Well and also gets hot around the camera in sleep.. forgot to add.. weird wakelocks anyway. Tnx
[BetterBatteryStats] Shahan_mik3:
The best battery monitor app :p
[BetterBatteryStats] corwin111:
Thanks for your reply. Disabling any kind of location tracking and synch stuff was the first thing I did.

As for the google services, I stop their services but it doesn't seem to have an effect. What do you mean freeze them off? Should I disable them completely?
[BetterBatteryStats] Perseus:
Please give a link to the post. As you can see there's a flood of users requesting help and there's limited number of people that help.

Please attach the dump here. Firewall issues.

Those are Kernel Wakelocks. When you see this, you should go under Alarms and see who's top of the list. See what you can do about it. Even Loggoer is Anonymous usage data provider. Turn that off in Privacy settings or wherever your rom has.

Yes I mean Disable them if you are unrooted.
[BetterBatteryStats] oediv:
here are the log
[BetterBatteryStats] Perseus:
Did you listen to some music ? If not can you turn off all sounds other than Ringer and Notifications ? Remove Facebook and instead use the mobile website. Within the settings for News & Weather app, please chose a specific location rather than letting it read your current location.

Also are you having Signal issue ? If not please flip Airplane mode briefly.
[BetterBatteryStats] rignfool:
If he doesn't have kernel based mpdecision... Only one core of his processor will be on... Unless he manually enables it... Then it won't shut off
[BetterBatteryStats] oediv:
well nope i never listen to musik on my phone. only sound i had set is alarm (cause i set a alarm for every day), device only vibration mode no sound

facebook no problem

i never use the news and weather app and i also had disable gps all the time but i will take a look.

yes i have signal issue, but i think this come from my provider cause the connect 2 networks but i will give it a try only activate airplaine and disable it or what you mean with flip ?

hope everything is clear :D bad english
[BetterBatteryStats] arturooo:
I using Slim Bean 4.3 build 2 under i9100 and I have a huge problem with battery drain during using WiFi or mobile network. I was looking for long time for any solution for that problem, re flashed again ROM, uninstalled all unnecessary apps but that haven'y helped. I using as kernel the last dorimanx 9.43.

In attachment I added battery usage diagram where you can easily discover where I was using WiFi or mobile network. And also the BetterBatteryStatus dumps.

Maybe you will have any idea what can I do more to get better battery life.
[BetterBatteryStats] Perseus:
In that case please turn off all sounds like keyboard beep, touch beeps, camera clicks and so on. Reboot and see if the wakelock reappears.

By Flip I mean turn on and then off.

Reboot then create another dump. This one is missing Alarms and processes. Please turn off Location Service unless navigating. Turn off Gmail Sync if possible. Remove facebook as well.
[BetterBatteryStats] oediv:
from the begin i disable all sounds like touch etc. now i also disable keyboard, but i use swiftkey all the time.

i didnt use camera but i dont know where to turn off the sound, when i take a photo there is no sound.

but alarm sound is on is that ok ?
[BetterBatteryStats] Aerowinder:
4.4 has touchscreen sounds and vibrations. Disable those. If they keyboard you are using has sounds and vibration, disable those.

New log please.
[BetterBatteryStats] oediv:
well did this all will poste a new log tomorrow when i am at school device charching now and i have no log for about 1-4 hours :/
[BetterBatteryStats] Sharpeyes:
Here it is!

Thanks!
[BetterBatteryStats] chamonix:
New RC is up. Have fun testing
[BetterBatteryStats] meeotch1:
dhd_wake_lock and DPRAM

First, requisite props to chamonix for BBS - I've probably improved my battery life by 40% already. Now some questions... Googling hasn't seemed to turn up a definitive answer on the following, which are currently my top two wakelocks:

DPRAM 21m 22s Cnt: (c/wc/ec)2884/0/2884 14.2%
dhd_wake_lock 15m 18s Cnt:(c/wc/ec)3783/1418/3783 10.0%

The PowerManagerService (and hence, the userland wakelocks are a tiny fraction of my total now, thanks to BBS.) But I can't seem to determine what the above two are, and I still have about 80min awake time out of 150min since boot.

Oh - and I can't post to my ROM thread, because it's closed (sadly - SlimBean 4.1.3 for Exhibit, best ROM I've ever used.)
[BetterBatteryStats] Perseus:
In recovery wipe Dalvik and Cache. If that didn't get rid of the wakelock then try Another Kernel. You have to wipe Dalvik+Cache after flashing another kernel. If that too didn't work, then you will have to do factory Reset. Do not restore any Titanium Backups afterwards.

Please Freeze Google Play Service. Sign out of Hangouts and then remove it. If its already been removed, follow this thread.

Can you post a full text dump ?
[BetterBatteryStats] mag01:
- Saved files now immediately appear on the list when connected via MTP

- Icon looks good at Nexus 5 too (and I wouldn't bother with it so much anyway :D )

- I've been testing RC4 at several times throughout the day in both user and system installation modes and it seems to provide consistent results in both these modes at KitKat

- So far so good :good:

By the way, how are updates managed when it's installed as system app? I didn't thave the RC4 installed as system app prior to updating to RC5, but are both parts (in /data/app/ and in /system/priv-app/) always updated? I may perhaps check it out.
[BetterBatteryStats] derukun:
I'm on a Nexus 5 running a 4.4 rom called PSX, and ElementalX Kernel.

I get the message "The 'batteryinfo' service could not be accessed. If this error persists after a reboot please contact the dev and provide your ROM/Kernel versions".

I'm rooted, and this is enabled on SuperSU 1.69.

What's wrong?
[BetterBatteryStats] mag01:
[MENTION=4760790]derukun[/MENTION]

And the BBS version you use is?
[BetterBatteryStats] derukun:
The latest version available on the play store right now is 1.14

Edit: Wtf had no idea I could've got it for free here with 1.15. Damnit. Oh well, support for the dev ftw
[BetterBatteryStats] mag01:
[MENTION=4760790]derukun[/MENTION]

Well, that doesn't work at KitKat. Only 1.15 which is currently under development (and hopefully will be soon released) will work (and root is currently required at KitKat in any case, but you're rooted anyway). Check the first page of this thread where there are also test builds of 1.15.
[BetterBatteryStats] pkelly517:
I think the proper path is

1. All right! I can support the dev, and give relevant info in the development thread!

2. Get app for free, and then demand free support.

Either way, I hope you find the issue.
[BetterBatteryStats] derukun:
... Are you insinuating I'm taking the wrong approach? Lol thanks, hoping installing the 1.15 apk will solve it.
[BetterBatteryStats] chamonix:
You shouldn't bother about the updates: the app installed in the system directory is a dummy with the same package name as BBS and claiming the permissions. The way permissions work is that any app installed as update (to /data/app) with the same package name as a system app will inherit the permissions. In that way an app pre-installed can be updated without bothering about the package still present in system.

This means that the BBS system app will not have to change as long as BBS does not require more permissions.

You can see the dummy app if you uninstall BBS (from /data/app) without removing the system app first. In that case the launcher will still show the icon (of the dummy app) and if you open it you will see the (dummy) main activity explaining what it is.

It took me one day of work to understand how that works and to come up with the solution as it implemented but it is pretty simple when you look at the result
[BetterBatteryStats] mag01:
[MENTION=1330150]chamonix[/MENTION]

Aah I see, just tried that. Really funny how simple it is in the end. And at least you've learned something new. ;)