Author Topic: Wake Lock  (Read 20720 times)

Rocketsheep

  • Guest
Wake Lock
« on: November 13, 2013, 08:14:12 pm »
Hi there,

aqua-mail has excessive wakeup times from time to time. When i deinstall it and reinstall it everything is fine for a while.

I just deinstalled yesterday because aqua was sucking my battery dry.

Today an app called Wakelock Detector shows me this. Is 37m okay?

I just activated logging but i guess it has to run some time...

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wake Lock
« Reply #1 on: November 14, 2013, 02:25:49 am »
Seems a bit high, can you show the system's "battery" screen, so I can know what I'm looking at?

The most common reasons for high battery use are:

- Too many folders in IMAP push mode (above 1-2-3), especially Gmail accounts

- Too high "messages per page" settings, which is how many recent messages the app looks at every time it checks mail or catches up to push. The default is 25 (same as K9, Mail Droid, and stock Email, but the setting goes up to 1000, IIRC).

- With push off, very frequent mail check schedule

Several of these combined can be especially deadly.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Rocketsheep

  • Guest
Re: Wake Lock
« Reply #2 on: November 15, 2013, 05:03:17 pm »
Hi there,

here is the battery screen. Btw when i deinstall aqua completly the battery drain is gone :( I also tried to restore without app settings, just in case, although i only change UI Settings (dark and folder colors).



« Last Edit: November 15, 2013, 05:05:17 pm by Rocketsheep »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wake Lock
« Reply #3 on: November 18, 2013, 02:16:13 am »
Ok, so when you restored without carrying over app settings, where do we end up with battery use?

What version of AquaMail?

Could you capture the issue in a debug log (left running for a few hours)?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Rocketsheep

  • Guest
Re: Wake Lock
« Reply #4 on: November 21, 2013, 07:24:47 pm »
unfortunately it doesn't help. Aqua still wakes the device for more than 30 minutes. Recent changes shows Version 1.2.5.5

I already sent a debug log to you some days ago (14.11.13).

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wake Lock
« Reply #5 on: November 25, 2013, 01:56:36 am »
Hmm, I don't recall getting a debug log from you (unless your "real" name is "A. F.").

30 minutes over what time?

The Nov 15 screenshot show AquaMail at 3% of all battery use, and even the Android OS is quite low....

Also in that screenshot, the device has been running on battery for 3.5 hours, and if AM was keeping the device awake for 1/7 of that time, it would surely be shown as more than those 3%...

So far, I'm quite confused, sorry.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

vince

  • Newbie
  • *
  • Posts: 7
Re: Wake Lock
« Reply #6 on: March 17, 2014, 10:02:02 pm »
I also get excessive wakelocks from Aquamail.  Besides Google Services, it's my biggest offender.  Averages about 10 minutes (24 events) per 4 hours.  IMAP off.  Push off.  1 hour check interval on 2 accounts (one Gmail and one something else).  Love the app, but it kills my battery.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wake Lock
« Reply #7 on: March 24, 2014, 02:19:55 am »
@vince -- what is the actual battery use percentage, by AquaMail, in system settings -> battery?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

datman

  • Newbie
  • *
  • Posts: 7
Re: Wake Lock
« Reply #8 on: April 03, 2014, 05:53:39 am »
My wake locks are also high. I have another email app called Blue Mail. I set up Imap push for the same accounts on both Blue and Aqua Mail. Aqua had way more wake locks when notifications came in for the same time.

Sent from my Nexus 4 using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wake Lock
« Reply #9 on: April 03, 2014, 09:05:49 pm »
@datman -- what is the actual battery use percentage, by AquaMail, in system settings -> battery?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

datman

  • Newbie
  • *
  • Posts: 7
Re: Wake Lock
« Reply #10 on: April 03, 2014, 09:35:31 pm »
@datman -- what is the actual battery use percentage, by AquaMail, in system settings -> battery?

I already changed the settings and rebooted. I'll have to reconfigure it in order to compare them. I'll report back later this week.

Sent from my Nexus 4 using Tapatalk


datman

  • Newbie
  • *
  • Posts: 7
Re: Wake Lock
« Reply #11 on: April 09, 2014, 05:05:45 pm »
@datman -- what is the actual battery use percentage, by AquaMail, in system settings -> battery?

Aqua Mail isn't showing up there.

Sent from my Nexus 4 using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wake Lock
« Reply #12 on: April 10, 2014, 02:00:06 am »
If it's not showing in system settings -> battery use, it means it's "below the radar" of what the system code is able to detect -- below the lowest consumer shown there.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

jocaferlo

  • Newbie
  • *
  • Posts: 15
Re: Wake Lock
« Reply #13 on: April 11, 2014, 04:11:41 pm »
Hello.

I am using AM pro since four days ago. I also have many battery use by the app.
You can see the screenshots: in settings-battery AM has consumed 16%, just below the consumption of screen.
And with BetterBatteryStats I see that of 7 hours the device is unpluged, almost 3 hours AM kept awake the phone.

My AM configuration:
-I have 6 accounts: 4 IMAP with Push and 2 Hotmail
-I have enabled PUSH and set synchronization every 2 hours
-But in 5 hours of this 7 hours the device is unpluged I had disabled PUSH with Tasker plugin, and I was always with wifi in this 5 hours.
-Yesterday the behaivor was the same. At night I rebooted the phone and I wiped cache and dalvik in recovery.

But today the same.

Before AM I used Maildroid for some years ago and the consumption of this app never appeared in system settings - battery. The mail accounts are the same.
Is there any possible solution? Am I doing something wrong?

Regards.



Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wake Lock
« Reply #14 on: April 14, 2014, 02:30:27 am »
Did you touch the "messages per page" setting, global or per account? This is how many messages the app keeps up to date when it checks mail, per folder. The default is 25.

If you hadn't, could you please capture the issue in a debug log? With "raw session data" enabled, please, without push mail, and over the span of 6-8 hours (since your sync freq is 2 hours).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/