[Q] Gingerbread email drain battery - Galaxy S I9000 Q&A, Help & Troubleshooting

Since I run gingerbread, i have a huge issue with email app that drains battery when configured with active-sync.
I have 3 account configured that way (Job , hotmail and client) and 1 pop3 account.
If i unconfigured exchange accounts everything is fine , but as soon as i have one configure, OMG it drains battery horribly. 30~40% /hour and more...
I've seen that the email apps it conume 81% of the battery...
I've try different rom (juwe's, Darky's, Criskelo) and i had the issue with all...
Is there anyone who also has this issue?
May we run older froyo email apps on ginger?
thanks

Same here. Only way i was able to solve it: Buy Tasker and set up a task which enables Auto-Sync every x hours for 5 minutes. Or, if you can live without Push or scheduled sync, untick the Exchange accounts in Accounts and Synchronization.
Sent from my GT-I9000 using XDA App

1. I have one exchange sync that just works fine and does not drain.
(exchange 2003 and https)
2. I have one exchange sync that does drain ALOT
(exchange 2010 sp1 and http)
3. Gmail does also sync without drain
Maybe it has something to do with exchange 2010 sp1 ?
I am using the email.apk from the sgs2....

Brotuck said:
1. I have one exchange sync that just works fine and does not drain.
(exchange 2003 and https)
2. I have one exchange sync that does drain ALOT
(exchange 2010 sp1 and http)
3. Gmail does also sync without drain
Maybe it has something to do with exchange 2010 sp1 ?
I am using the email.apk from the sgs2....
Click to expand...
Click to collapse
I am also using:
1 with exchange 2010
1 with exchange 2003
1 with unkown exchange (hotmail)
and I think that the email.apk is from SGS2 also...

grokon said:
I am also using:
1 with exchange 2010
1 with exchange 2003
1 with unkown exchange (hotmail)
and I think that the email.apk is from SGS2 also...
Click to expand...
Click to collapse
Where to get this sgs 2apk ? Any improvement over froyo version? i need a version that bypass exchange security though. Thanks.
Sent from my GT-I9000 using XDA App

fylim said:
Where to get this sgs 2apk ? Any improvement over froyo version? i need a version that bypass exchange security though. Thanks.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
It was included in the custom Gingerbread roms..
Which exchange security you want to bypass?

Brotuck said:
1. I have one exchange sync that just works fine and does not drain.
(exchange 2003 and https)
2. I have one exchange sync that does drain ALOT
(exchange 2010 sp1 and http)
3. Gmail does also sync without drain
Maybe it has something to do with exchange 2010 sp1 ?
I am using the email.apk from the sgs2....
Click to expand...
Click to collapse
I have 2 Exchange 2003 Sp1 accounts, both seem to drain. I've read somewhere that the size of the Inbox could matter, it was advised to keep the total size of the Mailbox under 150Mb. Both of mine are far larger. Is any of you able to test this?

pwhooftman said:
I have 2 Exchange 2003 Sp1 accounts, both seem to drain. I've read somewhere that the size of the Inbox could matter, it was advised to keep the total size of the Mailbox under 150Mb. Both of mine are far larger. Is any of you able to test this?
Click to expand...
Click to collapse
difficult to test as one of mine is over 400Mo...
I've test with the original GB email.apk (JVH) and even if it is better, it is not good...
I'll try froyo one (JPG)

grokon said:
difficult to test as one of mine is over 400Mo...
I've test with the original GB email.apk (JVH) and even if it is better, it is not good...
I'll try froyo one (JPG)
Click to expand...
Click to collapse
Running froyo email (jpg)..seems to be better but I will confirm tomorrow during working hours...
Sent from my GT-I9000 using XDA App

I hope this helps, i have the same problem to. In the battery menu there is sometimes a very steep drop in the graph. After removing one of my 2 exchange 2003 accounts it looks a lot better. The one with the ssl connection seems to be the problem. Maybe turning ssl off is an option. I also have connection issue's with the server with ssl connection, also on galaxy tab.

grokon said:
It was included in the custom Gingerbread roms..
Which exchange security you want to bypass?
Click to expand...
Click to collapse
I tried the SGS2 email.apk from Darky 10 R6 but it kept force closing on me. Had to revert back to Darky's Froyo version. I am using stock JVH rom
Darky's Email.apk has been hacked to bypass Exchange security policies i.e. do not enforce policies set by Exchange administrators. I hate the screenlock with pin policy everytime the device screen goes off.
Which custom rom are you using ? Maybe I will try that email apk.

fylim said:
I tried the SGS2 email.apk from Darky 10 R6 but it kept force closing on me. Had to revert back to Darky's Froyo version. I am using stock JVH rom
Darky's Email.apk has been hacked to bypass Exchange security policies i.e. do not enforce policies set by Exchange administrators. I hate the screenlock with pin policy everytime the device screen goes off.
Which custom rom are you using ? Maybe I will try that email apk.
Click to expand...
Click to collapse
I had used darky 10 final (which is only available at darky's website. (for the FC issue, it is documented everywhere to delete application data to solve it)
Now I am running Crikelo Ginger v54

Tadango said:
I hope this helps, i have the same problem to. In the battery menu there is sometimes a very steep drop in the graph. After removing one of my 2 exchange 2003 accounts it looks a lot better. The one with the ssl connection seems to be the problem. Maybe turning ssl off is an option. I also have connection issue's with the server with ssl connection, also on galaxy tab.
Click to expand...
Click to collapse
It does better, still 42% after 5~6hours usually I would have to recharge by this time... looks that it will last at least working hours...
I'll do some testing with some other version of email.apk.
Ciao!

grokon said:
It does better, still 42% after 5~6hours usually I would have to recharge by this time... looks that it will last at least working hours...
I'll do some testing with some other version of email.apk.
Ciao!
Click to expand...
Click to collapse
finally it is still not good... email apk now eating 60% of my battery instead of 80%... had to plug my phone before the end of the day as it was not lasting enough...
Damn!Thinking to roll back to froyo (probably darky 9.5) because of this...

...I confirm that the drain come from the email application with activesync...
No email configured .... lost 3% in 4hours...
I've configured Hotmail in exchange mode: lost 24% in 1hour...
I think I will have to go back to froyo...

grokon said:
...I confirm that the drain come from the email application with activesync...
No email configured .... lost 3% in 4hours...
I've configured Hotmail in exchange mode: lost 24% in 1hour...
I think I will have to go back to froyo...
Click to expand...
Click to collapse
Hello. I think, that problem is only with active sync using SSL. When i turned off SSL, battery holds for about 2 days. (and email is still synced immediately) With SSL, my battery is gone in less than 6 hours.
Can someone confirm?

LordCM said:
Hello. I think, that problem is only with active sync using SSL. When i turned off SSL, battery holds for about 2 days. (and email is still synced immediately) With SSL, my battery is gone in less than 6 hours.
Can someone confirm?
Click to expand...
Click to collapse
You could be right, when looking at logcat, I saw many error with ssl handshake.
However,i can not disable it as company mail only support ssl connections.
Sent from my GT-I9000M using XDA App

And it looks that the issue is still there on jvp
Sent from my GT-I9000 using XDA App

I confirm that Is there any solution except setting longer sync periods?

While I have an Epic, I have the same problem. I found this tidbit on the site for the app I use, Enhanced Email. There is supposedly a fix by turning off your phone, but that sounds like something Steve Jobs might say.
https://market.android.com/details?id=com.qs.enhancedemail&hl=en
** Attention Samsung users **
Samsung & Google have identified battery drain issues with Gingerbread on all Samsung phones due to faulty libraries. This is NOT a fault of EE and you will experience this with ANY push enabled app. Check out this link to read more on the issue -> http://tinyurl.com/6xackdy

Related

Exchange Email No Longer Working

I just updated to JI6 Froyo (Cognition) and now I am unable to connect to my corporate email account. I get a warning message that states my phone does not support security policies. Not sure what's changed from the 2.1 to 2.2, but I do know my Corporate email does indeed work with 2.1 eclair. One thing to note is that my corporate email requires a 4 digit lock pin, perhaps this is whats causing the issue?
Can anyone provide any insight into what changes were made to the email client in 2.2 Froyo, and why exchange email is no longer supported (in this particular instance)?
Thanks in advance.
-Nova
You should try to delete the email client and install the cyanogen one. I think that'd what sherpa did for his ''rom''
Yay no more fc
I'm pretty new to Android (Blackberry and WinMO power user). I'm assuming I would need to remove the client via ADB commands? I feel like its probably better just to wait for CM6.1 to get ported to the captivate.
Have you tried beta 5.5? I just installed and it has a new email client. It has fixed the forward/reply issues for me. May solve your issues too.
Sent from my SAMSUNG-SGH-I897 using XDA App
Eclair never really supported security policies. Froyo does. You should set the PIN then readd the account and it should start working.
Or just break down and get touchdown. So much better than the stock client. Especially from an enterprise exchange admin point of view.
Sent from my GT-I9000 using XDA App
tytdfn said:
You should try to delete the email client and install the cyanogen one. I think that'd what sherpa did for his ''rom''
Yay no more fc
Click to expand...
Click to collapse
is there a pointer as to how to do this?

Email app maxing out CPU.

Hello. My N1 has been experiencing issues. Every 20 or 30 minutes, my phone gets slow or unresponsive, and using Usage Timelines, I find out that the CPU usage is at a 100%. I checked it, and there are usually 2 or 3 android.process.acore* that takes 100%, followed by the Email and Android System*, which usally takes 50 and 40 percent use respectively. This is frustrating and burns up the battery quickly.
Any fixes for this?
FYI, my Email app has two accounts.
- College account set up as IMAP, to check email every half hr.
- Hotmail account set up as exchange, checks every hr. NOT syncing Contacts and Calendar.
I have stock rooted FRG83, running A2SD+ with Dalvik on SD card. Class 6.
Dang no one?
You know you can use gmail as imap for your school email and dump the email app
There has been a bug in froyo with the email app setup using exchange that causes 100% CPU to be used. It still hasn't been fixed. Search the forum and you will find a thread about this with link to a Google thread which has a custom email app I installed and fixed my issue.
I switched my hotmail from exchange to pop. The freeze ups were more trouble than they were worth.
On the other hand, I did have my college email set up as exchange because I wanted to sync my school contacts and calendar. And I really wanted that functionality, but my battery life went down to less than 2hrs, idle. Now that its gone it lasts a lot longer.
Sent from my Nexus One using XDA App
I found a fixed version of the email app which corrected the CPU 100% issue. Been using it ever since.
Could you post a link?
UPDATE: Never mind, I found it.
So far it seems stable, and notice some changes. I do like that I can finally change account colors manually.

Exchange account sync - calendar & contacts not sync properly

Hi,
I came from HTC desire, previously when I used with my office exchange, it managed to sync emails, calendar and contacts perfectly. However, when I changed to SGN, the following situation happen.
- Modify or cancel event from Outlook, phone doesn't get sync (even I sync manually few times), it is still displaying old info.
- Modify contact in Outlook, for example mobile number or name. Phone doesn't get sync and still display the old info.
- Modify contact in phone, for example company, Outlook doesn't get the updated info.
All above are done with process where sync is "triggered" successfully.
Did any of you encounter this problem? Any resolution?
I can't help you, but I'm having problems with email in my exchange account. I have everything set up the same as my last several Android devices, but I can't reliably receive new emails. Sometimes they'll be delayed by a day or so. It's almost like the email client is not using cellular data to update and only using wifi when the device is on. Anyone else have this problem?
maxh said:
I can't help you, but I'm having problems with email in my exchange account. I have everything set up the same as my last several Android devices, but I can't reliably receive new emails. Sometimes they'll be delayed by a day or so. It's almost like the email client is not using cellular data to update and only using wifi when the device is on. Anyone else have this problem?
Click to expand...
Click to collapse
Sounds like account & frequency settings than an issue. Have you verified them? Are you on mobile data all the time?
I'm finding that on occasion it stops syncing mail.. the moment you reboot OR go in and manually ask it to refresh it starts doing it normally again no problems...
I am also having the same problem .. However manually refreshing - sometimes still does not work. It is indeed - very annoying .. I believe the problem is in the Email.apk ..
still no solution found, apart from using different E-mail clients off the market, which work with various success ..
I've been through the settings many times but still have the problem. It just decides to stop syncing sometimes.
iivuch said:
I am also having the same problem .. However manually refreshing - sometimes still does not work. It is indeed - very annoying .. I believe the problem is in the Email.apk ..
still no solution found, apart from using different E-mail clients off the market, which work with various success ..
Click to expand...
Click to collapse
Any alternate email client you suggest? I start to miss HTC mail client.
Although a bit weird, but after flashing this rom (Cassie's XtraLiteRom KKA ThunderBolted! V2.2) it seem to work fine so far. Still observing and hope it does really work.
I am also using the same ROM - there was no improvement for me. I believe the problem is in the E-mail client. The one we have is version 3.0.0.1. Before on another Android phone I used 2.3.5. I tried to replace the new one with the old one - and then it works. The problem is however that the old one is not scaling up to fit the large Gnote screen. It is a lower resolution.
I tried many other e-mail clients - K-9, Kaiten (both of them could not connect to my exchange server (2010)), Moxier - for some reason crashed my contacts and then I tried TouchDown - which is kind-a good and in terms of connectivity - all worked fine - but there were some integration points that were not fit for my taste.
What I ended up doing was a bit weird - but so far works nicely. I downloaded Google Calendar Sync - which takes your Outlook calendar and syncs it with your Google Calendar. Then I downloaded GO Contact Sync Mod - and that does the same for the Outlook and Gmail contacts. So I have both of them running on my PC and they automatically sync Calendar and Contacts. This way - my phone get them through the Google account and .. a bonus is that I have a backup
To check e-mails - I use the IMAP functionality of K-9 as my exchange server doubles up as IMAP too. For the time being - that's OK for me - and I will be hoping that Google will fix up this E-mail client in the Ice Cream Sandwich .. let's hope it is not I SCREAM sandwich
Alternatively - one can use the old E-mail client - 2.3.5 .. for Contacts and Calendar only and use K-9 for the mail .. It is really a matter of preference
I noticed that this may work. Instead of using push notification, use interval sync. This seems to solve it?
It's really weird and I still can't figure out the root cause.
That's a good clue - it appears to fix it!
Iam using SGN with 500+ emails everyday! absolutely no problem at all. I have been user of XE, XL, Sensation etc I personally think this issue arises when data connectivity of the concern operator is down (GPRS / EDGE) however, on WIFI no issues at all
xircoms said:
Iam using SGN with 500+ emails everyday! absolutely no problem at all. I have been user of XE, XL, Sensation etc I personally think this issue arises when data connectivity of the concern operator is down (GPRS / EDGE) however, on WIFI no issues at all
Click to expand...
Click to collapse
Nope it's not the connectivity issue, it's the bug on push notification. Apparently this seems to be a bug in samsung, I didn't have issue in HTC previously.
After changing the push to interval pulling, it works perfectly fine now.
It might be related to 2.3.6 I recall having the issue on 2.3.5 and I'm pretty sure I saw it on my p1000 after I modded it.
My note is still stock.
Sent from my GT-N7000 using Tapatalk
I'm having problems with contact syncing between SGN and Exchange 2010. Create on phone or on Exchange - no way - no sync.
I'm on stock rom xxla6
Any ideas?
andrisd said:
I'm having problems with contact syncing between SGN and Exchange 2010. Create on phone or on Exchange - no way - no sync.
I'm on stock rom xxla6
Any ideas?
Click to expand...
Click to collapse
Forgot to add:
Mail and Calendar is sync'ed OK.
On Galaxy Tab with KRATOS 4.1 everything syncs fine with the same Exchange server.

[Q] Gmail/Exchange Issues (5.0.1)

Is anyone else having issues adding an exchange email account using the Gmail app? I flashed my phone to the stock 5.0.1 (LRX22C) version. After returning to complete stock I rooted and flashed TWRP but the issue was present before I made those changes.
Nope. Mine's running stock 5.0.1 without issue. 2 exchange accounts and 1 gmail account attached.
arcanexvi said:
Nope. Mine's running stock 5.0.1 without issue. 2 exchange accounts and 1 gmail account attached.
Click to expand...
Click to collapse
Thanks. Were the accounts already setup prior to updating which didn't require you to add them back after the update?
cavalier11 said:
Thanks. Were the accounts already setup prior to updating which didn't require you to add them back after the update?
Click to expand...
Click to collapse
2 were. 1 was not.
arcanexvi said:
2 were. 1 was not.
Click to expand...
Click to collapse
I'm not sure what the issue is but i'm tempted to downgrade just to start troubleshooting. I know we haven't made any changes to our exchange server so I'm confused as to what's causing the issue all of a sudden. Thanks for your help though. :good:
I have two exchange accounts (going to different domains) configured in gmail. I've deleted and recreated the accounts several times over the past 2 weeks. Both are configured to "push."
The only problem I've encountered is that, on occasion, the notification sound for the second exchange account is wrong. (It's configured as one tone, but for some reason that I haven't discovered yet, it might play a different tone - but only for that second account, only about half the time, and it always plays the same wrong tone.)
(Of course, there are other issues, but they usability issues and not really bugs.)
garyd9 said:
I have two exchange accounts (going to different domains) configured in gmail. I've deleted and recreated the accounts several times over the past 2 weeks. Both are configured to "push."
The only problem I've encountered is that, on occasion, the notification sound for the second exchange account is wrong. (It's configured as one tone, but for some reason that I haven't discovered yet, it might play a different tone - but only for that second account, only about half the time, and it always plays the same wrong tone.)
(Of course, there are other issues, but they usability issues and not really bugs.)
Click to expand...
Click to collapse
Thanks for your input. I just tried wiping data for exchange services but it still failed. I'll have to take a look at our exchange server to see if something may be blocking it all of a sudden.
I was able to add an Exchange account on the gmail app after flashing the 5.0.1 factory image. What is the issue you are facing?
pavankp said:
I was able to add an Exchange account on the gmail app after flashing the 5.0.1 factory image. What is the issue you are facing?
Click to expand...
Click to collapse
The error is related to permissions connecting to the server. I think this issue i'm having is helping to recognize a potential issue with our exchange server that may have just occurred that we were not aware of. We're currently in the process of testing other devices to see if we receive the same error message. I didn't think it was our server because nothing had changed, to our knowledge anyways. Seems the timing was just ironic.. Update to 5.0.1 and exchange server issues on the same day. Have to love technology lol.
cavalier11 said:
The error is related to permissions connecting to the server. I think this issue i'm having is helping to recognize a potential issue with our exchange server that may have just occurred that we were not aware of. We're currently in the process of testing other devices to see if we receive the same error message. I didn't think it was our server because nothing had changed, to our knowledge anyways. Seems the timing was just ironic.. Update to 5.0.1 and exchange server issues on the same day. Have to love technology lol.
Click to expand...
Click to collapse
Hi,
don't know if this helps, but i had this issue and turned out that even though i was using gmail and exchange services was enabled. Because i had disabled the old email app as i didn't think it was required anymore, i could no longer setup my exchange account.
My problem with my exchange account was with encryption. Before I upgraded to .1 it was fine. I'm aware that lolli is encrypted by default but when I upgrade to .1 and try to add the accounts it wants me to encrypt so the phone reboots like it's going to encrypt but then does nothing because it's already encrypted but for some reason exchange doesn't seem to teahouse this. This is using the gmail app. I reverted back to .0 and all is fine. So not sure what's going on but frustrating for sure.
McAwesome said:
My problem with my exchange account was with encryption. Before I upgraded to .1 it was fine. I'm aware that lolli is encrypted by default but when I upgrade to .1 and try to add the accounts it wants me to encrypt so the phone reboots like it's going to encrypt but then does nothing because it's already encrypted but for some reason exchange doesn't seem to teahouse this. This is using the gmail app. I reverted back to .0 and all is fine. So not sure what's going on but frustrating for sure.
Click to expand...
Click to collapse
The issue was actually on my behalf. Being a flashaholic, I had maxed out the number of devices that could be connected to my exchange account. All is fine on my end now and no issues.. Well besides slow download speeds within the app store. Not sure what's causing it but running a speed test using Ookla, the speeds are accurate but upon downloading apps the speeds slow down drastically.
cavalier11 said:
The issue was actually on my behalf. Being a flashaholic, I had maxed out the number of devices that could be connected to my exchange account. All is fine on my end now and no issues.. Well besides slow download speeds within the app store. Not sure what's causing it but running a speed test using Ookla, the speeds are accurate but upon downloading apps the speeds slow down drastically.
Click to expand...
Click to collapse
Lol been there.
Being a newbie here I am on 5.0.1 and when I go Gmail I only have option to add POP or IMAP mail...do not see EXCHANGE?
parcou said:
Being a newbie here I am on 5.0.1 and when I go Gmail I only have option to add POP or IMAP mail...do not see EXCHANGE?
Click to expand...
Click to collapse
Is your phone using the original google firmware, or something you downloaded and installed yourself?
The stock firmware has the app needed for gmail and exchange, while AOSP based firmware does not.
Sent from my Nexus 6 using Tapatalk
Exchange Services
Download the apk file from here, force close gmail and relaunch. U will c "Exchange" option in new account now. Cheers!!
(Cant post url due restriction- Google "Exchange Services 6.5-1533254", go to the apkmirror website and do as instructed.)

K9 Mail eating more battery than 2h SOT?

Usually I get very great battery life (also very high screen on time thanks to DirtyUnicorns ROM + Kernel) but sometimes my battery is getting eaten away within 3 hours from 100℅ to 20℅. Looking at the screens I attached it looks like K9 Mail is eating so much battery? I have 2x gmail accounts + 2x IMAP (my own mail server) accounts active.
Are there some of my K9 Mail settings wrong or whats going on? Any ideas?
Thanks
Its that "mobile radio active" problem. Its often referred to as a bug.
Well according to google this is a common problem for some time now which hasnt been fixed.
Any other mail app auggestions?
Utini said:
Well according to google this is a common problem for some time now which hasnt been fixed.
Any other mail app auggestions?
Click to expand...
Click to collapse
I think you'll find this issue with most apps right now. I use Mine because it's an amazing exchange all, but this happens there too and its pricey for some.
rootSU said:
I think you'll find this issue with most apps right now. I use Mine because it's an amazing exchange all, but this happens there too and its pricey for some.
Click to expand...
Click to collapse
Actually I don't need exchange atm so other free appa might fit better for me. Also I never heard of Nine before but I will give it a try if you recommend it !
Too bad the same bug exists with Nine as well :/
Utini said:
Actually I don't need exchange atm so other free appa might fit better for me. Also I never heard of Nine before but I will give it a try if you recommend it !
Too bad the same bug exists with Nine as well :/
Click to expand...
Click to collapse
I think it'll exist with any app that syncs. Android bug more than individual app bug.
rootSU said:
I think it'll exist with any app that syncs. Android bug more than individual app bug.
Click to expand...
Click to collapse
I see, well then I still wonder if I shouls go with K9 or rather smh else. Nine won't support gmail
Utini said:
I see, well then I still wonder if I shouls go with K9 or rather smh else. Nine won't support gmail
Click to expand...
Click to collapse
No, it's an ex change client only
rootSU said:
No, it's an ex change client only
Click to expand...
Click to collapse
And if you would need tonuse gmail/imap...what would you use? ;P
Utini said:
And if you would need tonuse gmail/imap...what would you use? ;P
Click to expand...
Click to collapse
i use the gmail app exclusively. it never ever drains extra battery from any of my devices, and my sync is always on.
Utini said:
And if you would need tonuse gmail/imap...what would you use? ;P
Click to expand...
Click to collapse
I just use inbox.
rootSU said:
I just use inbox.
Click to expand...
Click to collapse
i used to, but went back to the gmail app. i think i like it better.
simms22 said:
i used to, but went back to the gmail app. i think i like it better.
Click to expand...
Click to collapse
I use inbox on mobile and desktop exclusively.. The gmail app is very good though, I just kind of like how the crap is more easily controlled for me .
this is the wrong thread for K9 discussions.. but I'm going to add to it anyway ?
K9 was my goto email app, still is in a way, but it just does not play nice with lollipop on any device. even using beta builds. if had no choice but to go to the gmail app since it can handle the exchange and ever changing bad decisions of Microsoft's email names and server labels. let alone having to run from website webmail settings.. yeah.. goto the gmail app, and give K9 a break until they get the wake lock issues worked out... other step may be to have tasker do sync toggle somehow..
go track down the beta builds and keep an eye out for changes that may be specific to its lollipop compatibilities.
Sent from my Nexus 9 using Tapatalk
simms22 said:
i use the gmail app exclusively. it never ever drains extra battery from any of my devices, and my sync is always on.
Click to expand...
Click to collapse
Now I remember why I removed gmail...its missing "Mark as read" in the statusbar notification. Annoying as I wake up every day with ~15 Status Mails fromy servers which I usually "Mark as read" with one click (if the mail titles tell me that everything is okay with those servers). And since I use folders/filters/labels for mails I never delete/archive.
Utini said:
Usually I get very great battery life (also very high screen on time thanks to DirtyUnicorns ROM + Kernel) but sometimes my battery is getting eaten away within 3 hours from 100℅ to 20℅. Looking at the screens I attached it looks like K9 Mail is eating so much battery? I have 2x gmail accounts + 2x IMAP (my own mail server) accounts active.
Are there some of my K9 Mail settings wrong or whats going on? Any ideas?
Thanks
Click to expand...
Click to collapse
4 is a lot of accounts. I presume that your custom imap accounts are set up to push? Are your gmail accounts set up to pop3 or imap? If they are pop3, then your phone is going to continually poll the servers for new mail, and this will eat battery like nobody's business.
There is also a question of the correctness of how you have configured your imap servers. I don't know what kind of experience you have in configuring and maintaining imap servers, but there are some rookie mistakes that can be made that can have a severe impact on client battery life. Some of dovecot's default settings are actually quite bad for mobile devices. I'm not particularly familiar with other imap servers, dovecot is my server of choice.
What stands out to me is the "E" in your signal meter. Edge. The slower the network, the longer the radio has to be active in order to transfer the same amount of data. So imagine polling for a minute every 2.5 minutes (2 accounts). That is a lot of radio time and a lot of battery.
---------- Post added at 02:32 PM ---------- Previous post was at 02:26 PM ----------
Also not to create an argument here... but k9mail does very well on battery consumption on 5.x. Over this weekend (long weekend here in Canada), didn't use my phone much (construction/reno weekend), but something interesting caught my attention on Sunday afternoon. Having been taken off the charger 6AM SATURDAY morning (so it had been on battery for around 34 hours), it was claiming 4 days power remaining. That is ONE IMAP connection to a dovecot server that I maintain personally, the full time it was connected to an HSPA network (my service provider is exclusively HSPA).
So obviously, when everything is configured correctly, k9mail does NOT eat significant battery.
doitright said:
4 is a lot of accounts. I presume that your custom imap accounts are set up to push? Are your gmail accounts set up to pop3 or imap? If they are pop3, then your phone is going to continually poll the servers for new mail, and this will eat battery like nobody's business.
There is also a question of the correctness of how you have configured your imap servers. I don't know what kind of experience you have in configuring and maintaining imap servers, but there are some rookie mistakes that can be made that can have a severe impact on client battery life. Some of dovecot's default settings are actually quite bad for mobile devices. I'm not particularly familiar with other imap servers, dovecot is my server of choice.
What stands out to me is the "E" in your signal meter. Edge. The slower the network, the longer the radio has to be active in order to transfer the same amount of data. So imagine polling for a minute every 2.5 minutes (2 accounts). That is a lot of radio time and a lot of battery.
---------- Post added at 02:32 PM ---------- Previous post was at 02:26 PM ----------
Also not to create an argument here... but k9mail does very well on battery consumption on 5.x. Over this weekend (long weekend here in Canada), didn't use my phone much (construction/reno weekend), but something interesting caught my attention on Sunday afternoon. Having been taken off the charger 6AM SATURDAY morning (so it had been on battery for around 34 hours), it was claiming 4 days power remaining. That is ONE IMAP connection to a dovecot server that I maintain personally, the full time it was connected to an HSPA network (my service provider is exclusively HSPA).
So obviously, when everything is configured correctly, k9mail does NOT eat significant battery.
Click to expand...
Click to collapse
Thank you for your reply !
All my IMAP Accounts are using push (2x gmail + 2x my own server).
Could be that my server isnt configured perfectly. Mind giving me a few tips of what I should look for in my settings?
Yes I believe the battery drain could be because of bad radio signal. Maybe a Tasker script (if signal below 10% disable auto sync, which also disables push in k9) would help?
K9 in general has many settings which I am not sure of how they affect battery drain (e.g. sync forever or only last 31 days?) Which folders should have which priority and how to push/sync them. Would it make sense to make screenshots of my settings to compare them with yours?
Thanks !
Edit: In k9 I have not set all folders to class 2 except the important ones which are class 1 (inbox, sent, folders where new mails get moved from inbox to folder based on rules/labels). Push/sync only active for class 1 folder.
I did this because gmail has A LOT of standard folders and also an "all mails" folders which gets synced out of the box.
I also made a Tasker script which disabled autosync when I am NOT on 3G HSDPA or WIFI (maybe I should add 3G to the list of exclusion together with 3G HSDPA and WIFI?).
Utini said:
Thank you for your reply !
All my IMAP Accounts are using push (2x gmail + 2x my own server).
Could be that my server isnt configured perfectly. Mind giving me a few tips of what I should look for in my settings?
Click to expand...
Click to collapse
A quick look over my notes suggests looking into the setting "imap_idle_notify_interval". Dovecot's default is 2 minutes. That means that the imap server will be sending over a battery eater every 2 minutes regardless of whether there is a push notification or not. Between 2 accounts (edit: and multiple paths per account), they could all hit at the same time, or they could hit at different times, so you're looking at server initiated wakeups all over the place. Note that k9mail has a default client initiated wakeup at 24 minute intervals. RFC2177 specifies 29 minutes -- the k9mail default is matched to give a little slack to let the server renew the connection 5 minutes after the expected client-initated wakeup. So set the server to 29 minutes.
Yes I believe the battery drain could be because of bad radio signal. Maybe a Tasker script (if signal below 10% disable auto sync, which also disables push in k9) would help?
Click to expand...
Click to collapse
Is that even possible?
K9 in general has many settings which I am not sure of how they affect battery drain (e.g. sync forever or only last 31 days?) Which folders should have which priority and how to push/sync them. Would it make sense to make screenshots of my settings to compare them with yours?
Click to expand...
Click to collapse
That setting really shouldn't affect anything, since ancient messages won't be changing much. I.e., there is no "sync" on stuff that remains the same -- it just gets downloaded once and sits there.
Thanks !
Edit: In k9 I have not set all folders to class 2 except the important ones which are class 1 (inbox, sent, folders where new mails get moved from inbox to folder based on rules/labels). Push/sync only active for class 1 folder.
I did this because gmail has A LOT of standard folders and also an "all mails" folders which gets synced out of the box.
Click to expand...
Click to collapse
I think I may be only performing push on inbox. IIRC, k9 creates a new idle connection for *each* path. This isn't a flaw in k9mail, but a limitation in IMAP protocol.
More edit: about the client-vs-server initiated wakeups.... if you set the server-side to more than the client side, then the server will not actually send the wakeup at all. Why would it if it knows that the connection has already been refreshed by the client within the timeout? Once the client has control over the idle refresh, k9mail can schedule the refresh messages in batches to send out all at once within the same system alarm/wakelock.
doitright said:
A quick look over my notes suggests looking into the setting "imap_idle_notify_interval". Dovecot's default is 2 minutes. That means that the imap server will be sending over a battery eater every 2 minutes regardless of whether there is a push notification or not. Between 2 accounts, the two could hit at the same time, or they could hit at different times, so you're looking at a server initiated wakeup EVERY MINUTE. Note that k9mail has a default client initiated wakeup at 24 minute intervals. RFC2177 specifies 29 minutes -- the k9mail default is matched to give a little slack to let the server renew the connection 5 minutes after the expected client-initated wakeup. So set the server to 29 minutes.
Is that even possible?
That setting really shouldn't affect anything, since ancient messages won't be changing much.
I think I may be only performing push on inbox. IIRC, k9 creates a new idle connection for *each* path. This isn't a flaw in k9mail, but a limitation in IMAP protocol.
Click to expand...
Click to collapse
Well I could do push only on inbox and sync (every 24hours) on folders like " sent" and other semi-important folders.
I also made a Tasker script which disabled autosync when I am NOT on 3G HSDPA or NOT on WIFI (maybe I should add 3G to the list of exclusion together with 3G HSDPA and WIFI to disable autosync only on 2G?).
Utini said:
Well I could do push only on inbox and sync (every 24hours) on folders like " sent" and other semi-important folders.
I also made a Tasker script which disabled autosync when I am NOT on 3G HSDPA or NOT on WIFI (maybe I should add 3G to the list of exclusion together with 3G HSDPA and WIFI to disable autosync only on 2G?).
Click to expand...
Click to collapse
I've never played with tasker in this space, so... try it and see how it works !

Categories

Resources