More than 1 hour of wake lock GTALK_ASYNC_CONN - Samsung Galaxy Nexus

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.

Related

[Q] K9 mail/push/ Excessive Battery drain

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

[Q] Email is killing my battery!

As stated! Literally 78% of battery usage. I have only just started using email on my phone! Battery was amazing up until using email. I'm on rooted 2.3.3! Could anyone help.
The stock email app blows for exchange connectivity. It constantly hangs on me (the retrieval of email that is). I find when you have an area with a flaky connection (in and out of 3g), you get these issue. With it comes battery problems I've noticed.
I use touchdown for my primary exchange account to solve the lack of incoming email, but it too has battery issues if when it goes in and out of 3g coverage. It was fine until an update earlier in the year (on my old phone, then i noticed the battery issue, still notice on the arc now).
Are you using exchange or just regular email? If you notice your battery draining quick, its probably best to do a force close on it. You should be good to go for a few more hours until it happens again and the cycle repeats. The issue has been around wince 2.1 and I'm not sure why google doesn't get around to fixing it (I'm assuming the mail app at least uses a background service by google as I had the same issue on cyanogenmod since android 2.1). Its a well known issue.
I'm sure this doesn't help, its more of a "Me too".
I hope it gets better for you.
Yea its exchange mate! What a nightmare this is! Work email too so really need to find a work-around for this! I don't seem to have the issue of incoming email, it purely seems to be the battery usage! What a shame. thank you for the speedy reply.
you could try forwarding all your email to your gmail/ googlemail account and use that instead... doesn't solve the problem of replying though.. but you would at least get instant notications of incoming mail, without screwing your battery.
I also have this problem on my Arc - Accounts: Gmail & Exchange. With use of Green Power (Battery Saver which enables data traffic only 1 minute, then 10 minutes data traffic off) this drain-problem becomes WORSE. Before Update to 2.3.3 Green Power really saves some battery, after update 2.3.3 Green Power makes the drain more.
Best solution for me atm is: use only 2G, and don´t use Battery Savers like Green Power. I have to try playing around with exchange refresh settings (Push, once per hour...)
With this my battery drain ist about 2% per hour (no wifi, no gps, no calls... Only phone idle). Not perfect, but best i can get atm...
I use moxier mail for exchange mail. It's a pretty expensive app, but works flawless for me. Maybe there are some free exchange apps too try to search the market. Moxier mail doesn't even site up in my battery usage stats.
Thanks, I will give moxier mail a try.
Hard to justify since I bought touchdown already. I've since turned off push in touchdown and set to 15 minute intervals. Not ideal, its no longer draining my battery.
I've had this same problem for a while after updating to 2.3.3, I think the general solution is to NOT use push email and rather, set a interval (15 minutes or greater).
If you're in an area with scarce connectivity, the email application apparently continues to attempt to sync even with no signal so in that case, maybe a 3rd party email client will be better. Though apparently the popular K9 mail doesn't support active sync =/
Can anyone tell me how to set up email using Moxier? I cannot get it to connect to my exchange account at all, i have tried all possible combinations. My email address is [email protected]. Can you tell me what my domain would be? (previously using stock app i used @broadfieldprimary.herts.sch.uk - this worked fine) What my server would be (using stock app, I used db3prd0204.outlook.com - and this worked fine also. But trying to use Moxier - Paid - I cannot get any connection to this email!!! I'm sorry if this is a basic question, but If anyone could explain the set up I would need I would be eternally greatful!!

[Q] Email app eating battery

Hello
The last few days my email application has been acting up.
Seems like it is on constant sync and using battery like a madman.
I have used it on push on my exchange-mail for nearly two months now without a problem. But a few days ago i started seeing the sync icon in my taskbar all the time.
I have tried adjusting the syncing times to much lower intervals but still uses battery like a madman.
Any good suggestions how to solve this?
(Cant post image due to low postcount, but it has a 40% hog of the battery)
I remember this happening every now and then when I used the HTC Mail app. I'm assuming that's the one you mean? It has a few quirks.
What I found stopped it was force-stopping the app, clearing cache and rebooting. If that doesn't work clear data too, but you'll have to set your e-mail account back up.
I have the same problem when I'm on Wi-Fi in the office. I thinks it can't connect to the mail server due to the firewall and just keeps on trying to connect. Albeit not the ideal workaround, switching off Wi-Fi and using 3G/H for a couple of seconds usually works.
this happened on mine a few weeks back, i cleared the cache and data then restarted the phone input my email address back in and all was fine

[Q] Exchange services - 2341 wakelocks in 3.5 hours

Pic from GSam Batter Monitor attached, I have corporate email through MobileIron and sometimes Exchange Services takes a ton of battery, (right now it takes 11% of battery and is the 2nd highest after Screen).
So I see 2341 wakelocks and 767 times waking the device in just 3.5 hours.
How can I try to fix this? Our IT dept is clueless.
Sync schedule is set to 'Never' so that it's supposed to only update when I open the email app.
mgs333 said:
Pic from GSam Batter Monitor attached, I have corporate email through MobileIron and sometimes Exchange Services takes a ton of battery, (right now it takes 11% of battery and is the 2nd highest after Screen).
So I see 2341 wakelocks and 767 times waking the device in just 3.5 hours.
How can I try to fix this? Our IT dept is clueless.
Click to expand...
Click to collapse
Is it a push type?
-----------
iphones are the creation of people with nowhere left to turn
sent from stock jelly bean on toroplus
edited the OP before I saw your reply, it's currently set to 'never'.
I found this thread where Google seems to be aware this is an issue and says it'll be fixed in the next release of JB (see comment 16), unknown ETA.
http://code.google.com/p/android/issues/detail?id=34726

Exchange killing battery for the past 2 days.

Am I the only one whose phone started dying due to Exchange not syncing? I've disabled autosyncing but it still drains it. I may have to temporary disable the app and use http to check my mail.
Anyone with this issue?
I still see the refresh/sync symbol on the top of my screen even with sync disabled. I'll freeze the app via Titanium Backup.

Categories

Resources