Related
I've been trying to figure out why my battery life diminishes so quickly (stock battery).
In the battery info screen, i discovered my awake time was nearly 50% of my uptime!
Using spareparts, determined that the offending program was k9 mail.
The software is configured for imap push on 2 accounts (both on the same server - served by hostgator). Push is only set to for the inbox folder on each of the accounts. Background sync in k9 settings is set to always. Idle refresh frequency is set at 24 min for each account. Mobile data always on is enabled in the main android network settings (otherwise push doesn't work after the screen is off for 5 min).
When no email is received, awake time goes down, but whenever an email comes in, at least a minute is added to the awake time each time.
In conclusion, it would appear that whenever a push event occurs, k9 does not let the system go back to sleep until at least a minute has elapsed. Why not receive mail, then resume sleep immediately...
Is this lack of resuming sleep a function of the program, or something controlled by k9? Any way to force it back to sleep after the even has occurred?
I thought I'd post some thoughts since it's been a few days.
Digging around here and other forums didn't reveal a whole lot. The bugtracker at the developer's site gave instructions on how to enable logging on the client.
Reviewing the logs, it's clearly obvious that after each session, a wakelock of 60sec is enacted. This is where my awake time runaway is coming from! The more emails I get, the longer it stays awake. For every message received, wake time is incremented by a min. If a new message arrives 61 seconds since the last, awake time will increase by 2 min. This is a cumulative effect which gets worse as more messages are received.
Other clients such as maildroid seem to release the phone back to sleep as soon as the email is received.
I'm hopeful the folks at k9 find a solution for this in the near future. I think the client is one of the better ones with regard for granular configuration. Maildroid does the job, but wasn't a whole lot more robust than the htc client (other than for push support). Seven has some strange validation processes.
I know I can go by way of googlemail, but the accounts in question cannot be forwarded to google. So it leaves with choices.
1) Leave it as is until fixed and let the battery drain continue
2) Still have it setup as IMAP, but disable push altogether - this works, but to get new email, it has to resync the whole folder, which becomes more and more time consuming as the folder grows. A checking interval is set up (poll every x min)
3) similar to 2, but manual polling
4) other suggestions??
gpz1100 said:
4) other suggestions??
Click to expand...
Click to collapse
5) get the source and fix it yourself.
I'm using k9 for 3 accounts and I've never noticed a battery drain.
If I knew how to program I would be all over this.
Unless your accounts are configured for push, and depending on the volume of email you receive, you may not notice this issue.
gpz1100 said:
If I knew how to program I would be all over this.
Unless your accounts are configured for push, and depending on the volume of email you receive, you may not notice this issue.
Click to expand...
Click to collapse
I definitely use push, but the volume is pretty low.
Between the different accounts, i get a good 100+ mails a day... Easily subtracting nearly 2 hrs of wake time to my battery life when the device isn't really being used.
any updates? I too am facing with the high battery usage of K9, and I do get a lot of emails.
While using gmail client, the battery lasts a lot longer, ~36 hours. With K9, barely 14 hours!
Part of my fix was changing roms. Although both are based on the same ota, the current one doesn't seem to have issues with k9 (or not as much).
You might look into updating to the latest k9 too.. 3.708 is the most current, not on the market though - you need to go to dev's site.
yeah. ROMs it a good notice:
I dont have problems on the CyanogenMod 11 with battery drain
guys, I've recently noticed that mail_service (from exchange)wakelock drains my battery pretty badly, I've reset the account a few days back and enjoyed quite a bit of good battery life (like 1-2 hrs for 1%, with 3G/data on and auto sync off) for two days,but today the bug came back. I wonder any of you experience this?
There has been reports of battery drain and the Android OS not going to deep sleep properly. However, there's to many factors to take into account.
Some claim that opening and closing the camera app has something to do with it. (CMOS sensor is kept open and active)
fregor said:
There has been reports of battery drain and the Android OS not going to deep sleep properly. However, there's to many factors to take into account.
Some claim that opening and closing the camera app has something to do with it. (CMOS sensor is kept open and active)
Click to expand...
Click to collapse
my Android OS was at 30some%, the betterbatterystats showed mail_service contributed to over 50mins wakelocks while I set manual sync. I am afraid it's another bug that android has.
exchange sucks when it comes to battery life, but I think it's more a protocol thing than an app thing. I did battery tests ages ago on my nexus one, and found exchange sucked up more battery/h than gmail/gtalk/facebook/+++ (basically everything else + phone idle) did combined.
Note that if you dont have exchange on push sync some exchange servers will require a full refresh when you connect. So it'll suck up more battery to sync every hour than having push notifications on. (Although exchange push requires a continously connected encrypted session... which isn't great for battery life either).
nurre said:
exchange sucks when it comes to battery life, but I think it's more a protocol thing than an app thing. I did battery tests ages ago on my nexus one, and found exchange sucked up more battery/h than gmail/gtalk/facebook/+++ (basically everything else + phone idle) did combined.
Note that if you dont have exchange on push sync some exchange servers will require a full refresh when you connect. So it'll suck up more battery to sync every hour than having push notifications on. (Although exchange push requires a continously connected encrypted session... which isn't great for battery life either).
Click to expand...
Click to collapse
I've been using exchange since I got my Desire and GS2, but neither one had problem with exchange draining battery (which I didn't find it from betterbatterystats), and even for Galaxy Nexus, this bug is on and off, I hope there's a solution for that
hongkongtom said:
I've been using exchange since I got my Desire and GS2, but neither one had problem with exchange draining battery (which I didn't find it from betterbatterystats), and even for Galaxy Nexus, this bug is on and off, I hope there's a solution for that
Click to expand...
Click to collapse
It never showed up in the battery stats for anything. But if I disabled exchange and left it overnight I'd have WAY better battery/h than I did if I left it on.
nurre said:
It never showed up in the battery stats for anything. But if I disabled exchange and left it overnight I'd have WAY better battery/h than I did if I left it on.
Click to expand...
Click to collapse
For disable do u mean freeze/ remove account/ stop auto sync?
Sent from my Galaxy Nexus
ICL53F
4.0.2
Rooted
Stock rom & Recovery
hongkongtom said:
For disable do u mean freeze/ remove account/ stop auto sync?
Sent from my Galaxy Nexus
ICL53F
4.0.2
Rooted
Stock rom & Recovery
Click to expand...
Click to collapse
I removed the account, just to be certain it wasn't doing anything. When I added the exchange account I noticed a quite bad drop in battery time, even though it never showed anywhere. So I tested it overnight tons of times with different settings. And the thing that helped me improve my battery time more than anything else was removing exchange.
nurre said:
I removed the account, just to be certain it wasn't doing anything. When I added the exchange account I noticed a quite bad drop in battery time, even though it never showed anywhere. So I tested it overnight tons of times with different settings. And the thing that helped me improve my battery time more than anything else was removing exchange.
Click to expand...
Click to collapse
well, that sucks, i need my exchange to get through my job, when exchange is behaving well, i got quite good battery life with 1% drop with 1-2hrs with no tweak (stock 4.0.2), now when exchange bug kicks in 1% would drop in around 15min. i can believe Google can still let it happen when we are already in its 4.0
I had this problem using Enhanced Email, and was able to resolve it by disabling calendar sync for the exchange account. As I understand Enhanced Email to be pretty similar to the stock email application, perhaps you might give that a try and see if it improves the situation.
I suspect the battery usage and best settings depend heavily on exchange server types as well. So do your own testing on this
TheJ0hnman said:
I had this problem using Enhanced Email, and was able to resolve it by disabling calendar sync for the exchange account. As I understand Enhanced Email to be pretty similar to the stock email application, perhaps you might give that a try and see if it improves the situation.
Click to expand...
Click to collapse
I've tried Enhanced Email and seems it doesn't support calendar sync fot 4.0 just yet. and i really do need calendar sync for my job.
actually, i also bought Touchdown, but too bad that it can't be integrated into phone's calendar, and the calendar viewing is suck for TD. (i really got spoiled by Calendar Pad / Jorte which can display individual events under month view.)
nurre said:
I suspect the battery usage and best settings depend heavily on exchange server types as well. So do your own testing on this
Click to expand...
Click to collapse
i think so too, but i think if i set manual sync the app shouldn't have that much of wake locks which keep my phone awake which drains battery.
I had my exchange account set to only sync email. I also set the check frequency to manual... the exchange service would still suck up a ton of battery. Every few hours I would receive a notification of new email for my exchange account. WTF? Why was it syncing in the background when I had sync set to manual..?
Sent from my Galaxy Nexus using Tapatalk
NPuter said:
I had my exchange account set to only sync email. I also set the check frequency to manual... the exchange service would still suck up a ton of battery. Every few hours I would receive a notification of new email for my exchange account. WTF? Why was it syncing in the background when I had sync set to manual..?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Are u using the stock app? I never have this problem you mentioned at the second part.
Sent from my Galaxy Nexus
ICL53F
4.0.2
Rooted & CWM
Stock rom
I had that bug so I removed and re-added my work exchange account and the CPU usage went away after a couple hours of syncing.
Then I downloaded touchdown and haven't gone back to the stock android email client.
Erukian said:
I had that bug so I removed and re-added my work exchange account and the CPU usage went away after a couple hours of syncing.
Then I downloaded touchdown and haven't gone back to the stock android email client.
Click to expand...
Click to collapse
Sorry I don't understand ur first part? So it had gone to normal after a few hours of syncing you mean?
Done more testing yesterday, after a 12hr working day (no emailing on phone but few calendars added/editted,all time 3G & data on ) , the exchange caused around 500 partial wakelocks (spent around 10min in total) reported by betterbatterystats, causing my phone to drop 1% in around 30min which I've undervolted using JameBond 1.2-307.
Yet, when I got home, I switched to my home Wi-Fi and found that the wakelocks were much less and my battery dropped 1% in around 1.5 to 2hr.
Don't know if the network status from 3G triggered the exchange to drain power from wakelocking.
Sent from my Galaxy Nexus
ICL53F (JameBond 1.2/307)
4.0.2
Rooted & CWM
Stock rom
hongkongtom said:
Sorry I don't understand ur first part? So it had gone to normal after a few hours of syncing you mean?
Done more testing yesterday, after a 12hr working day (no emailing on phone but few calendars added/editted,all time 3G & data on ) , the exchange caused around 500 partial wakelocks (spent around 10min in total) reported by betterbatterystats, causing my phone to drop 1% in around 30min which I've undervolted using JameBond 1.2-307.
Yet, when I got home, I switched to my home Wi-Fi and found that the wakelocks were much less and my battery dropped 1% in around 1.5 to 2hr.
Don't know if the network status from 3G triggered the exchange to drain power from wakelocking.
Sent from my Galaxy Nexus
ICL53F (JameBond 1.2/307)
4.0.2
Rooted & CWM
Stock rom
Click to expand...
Click to collapse
If your undervolted then your battery readout is incorrect anyway. Your battery meter isn't displaying actual battery capacity, it's estimating it based on a scale of power consumption @ X mhz of processor speed within an actual timeframe.
When you undervolt, there's no reference point. Your battery display is somewhat useless. It's why often times the last 10% @ idle seems to last forever.
I have high battery usage from Exchange. It's been a concern of mine for some time. Glad to see others noticing the same thing.
Sent from my Galaxy Nexus using Tapatalk
I am connected to two different Exchange accounts, one 2007 server and one 2010 server. Both set to automatic push. Battery life has been excellent with this phone and getting better. Yesterday, with several phone calls, emails, etc. I clocked in at 1 day 7 hours before I hit the 14% warning threshold.
Hi there
I get a lot of wake-up call from GTALK (my phone does not always stay in deep sleep when it should).
When I analyze it with BetterBatteryStats I see there are a lot of wake-up alarms from following stuff:
com.google.android.gsf
com.google.android.Intent.action.GTALK_RECONNECT
com.google.android.Intent.action.GTALK_HEARTBEAT
I'm not using GTALK at all and I'm not signed into the service either... really strange... can someone explain how I can disable this or remove if from my system?
Im running stock-kernel with acronioum 5.0
Greez
NeoCream
go to Gtalk setting and disable autostart/ auto sign in. it will help
Best,
---------- Post added at 09:53 AM ---------- Previous post was at 09:40 AM ----------
some gtalk service is for Market, so be careful if you try disable some of them, market will not work.
NeoCream said:
Hi there
I get a lot of wake-up call from GTALK (my phone does not always stay in deep sleep when it should).
When I analyze it with BetterBatteryStats I see there are a lot of wake-up alarms from following stuff:
com.google.android.gsf
com.google.android.Intent.action.GTALK_RECONNECT
com.google.android.Intent.action.GTALK_HEARTBEAT
I'm not using GTALK at all and I'm not signed into the service either... really strange... can someone explain how I can disable this or remove if from my system?
Im running stock-kernel with acronioum 5.0
Greez
NeoCream
Click to expand...
Click to collapse
Today I found those alarms with betterbatterystats, so I went to Autorun Manager and under Google Services Framework (com.google.android.gsf) disabled a couple of entries that mentioned the gtalk service, hopefully that will decrease the wakeups (Market still works ), I'll keep you informed
First of all, let me make clear that "wakeups" do not necessarily mean battery drain.
My battery lasts for over a day with heavy usage and Google Framework wakes up my phone 300+ times. "Wakeups" simply mean how many times the intent got the phone out of Deep Sleep. Battery drain depends on how long did it kept it awake and how heavy to the processor the task performed was.
Freezing/killing/etc any parts of GSF is not the smartest thing to do.
You can log out from Gtalk after you have diselected "Auto Login" from the app Settings.
Gtalk will still have some activity as it is tied to the Google Apps bundle of joy (that's why the OP sees those odd wakeups even though he is not using it)
however, you should not face any significant drain.
I have connected 100 MSN contacts and more than 300 Facebook contacts to my Gmail account via Jabber, so more or less Gtalk is always on and it manages messages from a 500+ contact database. It's been like that since my first Android phone (legendary HTC Tattoo), then on my X10 and now on my Arc S and I have never faced battery drain. Heck, even I doubted it for a moment and disabled Auto Login, and there was no difference in battery at all.
Just my 2 cents.
I have same problem.In better battery stats see that G_TALK, many times wake my phone, but I dont have application G+.How then this drain my battery.What I do, that I solve this problem. Always wake lock- g_talk.
NeoCream said:
Im running stock-kernel with acronioum 5.0
Greez
NeoCream
Click to expand...
Click to collapse
disable service
lsv-1 said:
Today I found those alarms with betterbatterystats, so I went to Autorun Manager and under Google Services Framework (com.google.android.gsf) disabled a couple of entries that mentioned the gtalk service, hopefully that will decrease the wakeups (Market still works ), I'll keep you informed
Click to expand...
Click to collapse
so, did it work? any problems or positive effects?
Hi,
I did a "adb shell dumpsys batteryinfo" today and found the main culprit was this wakelock:
Wake lock
GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint: 1h 11m 46s 536ms partial (89 times) realtime
I have tried disabling Gtalk, logging out of it etc. , still I cannot avoid this wakelock.
I am connected to the work Wifi network most of the times, which uses an internal proxy, which does not support SOCKS....Could this be the reason for the wakelock? Is something always trying to connect to the Google servers? (I think my Wifi indicator never turns blue while at work). I have no issues while browsing, receiving push email on exchange etc....Though, Gmail push and Gtalk don't sign in.....
If so, what is your suggestion? I will try to remain on data only tomorrow and report back.
Btw, I recommend this app, which gives awesome detail on battery life (with a nice status bar indicator too, and that too free of ads):
Badass Battery Monitor
Having same issue... elsewhere on XDA, I came across a suggestion to disable Google backup under Backup & reset... I literally just tried this, so I don't have results to share.
Hi All,
I have had this beautiful device Ascend P6 for more than a couple of months now. Used ROMs B107, B111, B118CN, B122 and currently on B125. I must say that this is a very good device and give me close to 12-14 hours of battery life with not so high usage.
I have configured 2 company emails using activesync on Exchange and have kept the refresh interval at 1 hour with 3 days of sync for both the emails. What bothers me is that when I check the battery usage the Exchange services takes up more than 50% of battery every time. If this can be reduced, I am sure that the battery would rock.
I have attached 4 screenshots with the battery usage config, details on exchange service and my sync settings on both the emails.
Can somebody let me know if anything can be done to make this better, or should I just stay with it.
The amount of transfered data is not really high but depending on the amount of contacts and calender entries it can take a long time to get it synchronized.
If you don't synch contacts and calendar every hour you will encounter more efficient battery drain.
Still the same
experto1 said:
The amount of transfered data is not really high but depending on the amount of contacts and calender entries it can take a long time to get it synchronized.
If you don't synch contacts and calendar every hour you will encounter more efficient battery drain.
Click to expand...
Click to collapse
I did try this and it helped upto an extend so and my keep awake time for this service has reduced to half. Still the service is taking up almost 40% of battery and I think there should just be a better way of doing this.
clickabhee said:
I did try this and it helped upto an extend so and my keep awake time for this service has reduced to half. Still the service is taking up almost 40% of battery and I think there should just be a better way of doing this.
Click to expand...
Click to collapse
Greenify.
Maybe you should try another app ?
I use touchdown for exchange email,versatile and customizable...much better than stock email
Sent from my HUAWEI P6-U06 using Tapatalk
clickabhee said:
Hi All,
I have had this beautiful device Ascend P6 for more than a couple of months now. Used ROMs B107, B111, B118CN, B122 and currently on B125. I must say that this is a very good device and give me close to 12-14 hours of battery life with not so high usage.
I have configured 2 company emails using activesync on Exchange and have kept the refresh interval at 1 hour with 3 days of sync for both the emails. What bothers me is that when I check the battery usage the Exchange services takes up more than 50% of battery every time. If this can be reduced, I am sure that the battery would rock.
I have attached 4 screenshots with the battery usage config, details on exchange service and my sync settings on both the emails.
Can somebody let me know if anything can be done to make this better, or should I just stay with it.
Click to expand...
Click to collapse
I sync with my works exchange and have never had these issues (been on 3 different roms, currently on 122), I have it set to push, days to sync = all, sync email and calendar but not contacts. I only sync with one account though, maybe try removing one account and seeing if that helps, and then re-add and remove the other?
One issue I did have with the stock version was the lack of ability not to set a quiet time, ie weekends and at night, tried a few other apps but didn't like them as much. I just use the profiles at night to turn auto sync off, and at the weekend I just ignore the emails
I get about 2 days out my battery from full charge. I also have it syncing with hotmail, use bluetooth in the car for 2 hours a day, browsing the web etc. So i'd say i'm a mid level battery user.
The latest version of the email/exchange apps you get with the nexus 5 have been released, maybe try them? I installed them on my P6 fine, here they are here...
https://www.dropbox.com/s/n0dzc0jxylx9h77/com.google.android.exchange-6.0-893803.apk
https://www.dropbox.com/s/zr55dvakxktkvtq/EmailGoogle.apk
twostroker said:
I use touchdown for exchange email,versatile and customizable...much better than stock email
Sent from my HUAWEI P6-U06 using Tapatalk
Click to expand...
Click to collapse
Let me try that... That is a paid app if I am not wrong
Confused
markgranto said:
I sync with my works exchange and have never had these issues (been on 3 different roms, currently on 122), I have it set to push, days to sync = all, sync email and calendar but not contacts. I only sync with one account though, maybe try removing one account and seeing if that helps, and then re-add and remove the other?
One issue I did have with the stock version was the lack of ability not to set a quiet time, ie weekends and at night, tried a few other apps but didn't like them as much. I just use the profiles at night to turn auto sync off, and at the weekend I just ignore the emails
I get about 2 days out my battery from full charge. I also have it syncing with hotmail, use bluetooth in the car for 2 hours a day, browsing the web etc. So i'd say i'm a mid level battery user.
The latest version of the email/exchange apps you get with the nexus 5 have been released, maybe try them? I installed them on my P6 fine, here they are here...
https://www.dropbox.com/s/n0dzc0jxylx9h77/com.google.android.exchange-6.0-893803.apk
https://www.dropbox.com/s/zr55dvakxktkvtq/EmailGoogle.apk
Click to expand...
Click to collapse
Let me download them and install. Hopefully they will be better than the default mail app. Still not sure, if I should go with this or the Touchdown
clickabhee said:
Let me download them and install. Hopefully they will be better than the default mail app. Still not sure, if I should go with this or the Touchdown
Click to expand...
Click to collapse
I found it used far much more battery and data than the default app. Loads of extra addons in it, but for me I just want to check emails, reply etc. Nothing fancy.
Similar issue with Moto G 1st Gen India
Hi,
I am using a moto g 1st generation. I have recently updated to lolipop. After upating to lolipop Microsoft Exchange Services eating 49% of my battery. My sync was off.