Author Topic: Excessive active time (wakelock) and OPTIMAL push settings  (Read 11801 times)

Nacos

  • Newbie
  • *
  • Posts: 34
BetterBattery Stats suggests Aqua-Mail the top significant consumer: 3 min/30 sec Partial wakelock out of 2 hrs/20 min.
This is NOT a fluke, it's been fairly consistent over the last week.

In trying to optimize the settings, I bumped into 2 settings which intrigued me (shown underneath in bold). I have however, included some other related custom settings so you can have a better overview. Will you please comment on how these (2) settings are interrelated and how their different values affect the battery life? I'm looking for the ideal combination of settings that would yield the best battery time.

My environment:
- SGH-I317M (Samsung Note 2 Canada)
- 4 Gmail accounts
- Time/network ratio: 60/40 [WiFi/Mobile]
   
GLOBAL SETTINGS:
- Push IMAP: active
- Schedule check: every 1 hours
- Keep push connection: none (on both WiFi and Mobile) (available: None, 5 min/10 min/15 min)

OPTIONS AND FOLDERS SETTINGS:
- IMAP push session duration: 30 min (available: 30 min/1 hr/2 hr)
- Standard 25 mails per page (all 4 account)
- Inbox & Sent (only) are set as PUSH folders - On all 4 accounts

Screenshot attached.

Thank you
« Last Edit: March 26, 2013, 12:47:40 am by Nacos »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Excessive active time (wakelock) and OPTIMAL push settings
« Reply #1 on: March 26, 2013, 01:29:14 am »
Ok, so my app held the wake lock for 3 1/2 minutes out of 2 hours and 20 minutes, and used 2.5% of the battery

Is that too much?

I also have a question -- why is this app showing my app's icon next to "EM/[Gmail]/Sent mail" and "EM/INBOX", what is that supposed to mean?

Please check the system "battery use" screen, at least it won't show that "EM" stuff.
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/

Nacos

  • Newbie
  • *
  • Posts: 34
Re: Excessive active time (wakelock) and OPTIMAL push settings
« Reply #2 on: March 26, 2013, 02:00:36 am »
Ok, so my app held the wake lock for 3 1/2 minutes out of 2 hours and 20 minutes, and used 2.5% of the battery

Is that too much?

Hi Kostya,

Well, given that AquaMail takes the most out of the battery (as ratio), a power loss of 2.2%/hour (with the screen off) IS excessive. I would regard a good (under control) power loss anything less than 0.8%/hour - screen off. Furthermore, as you can see in the screenshot, there were 148 counts on inbox during those 2 hrs/20 min - don't you find that a little excessive, as an overall impact on power?

STILL, please understand that I'm not here to point finger, not at all - if anything, I'm a great supporter of your EXCELLENT work...but I'd like you to take a look at my first message (the bold settings) and comment on how those affect AquaMail's overall performance. To me those 2 settings are a little controversial because apparently they refer to the same feature (IMAP session length) while they appear under two different sections with completely different (available) values.  Just looking for the optimal combination of settings. Thanks!

EDITED:
On the other hand, some simple math reveals that I may have no case here: you mentioned on some other related thread that GMail is notoriously power-inefficient when it comes to push services - also mentioned that when push is active, it "polls" the accounts every 5 minutes, regardless. I don't know whether it works like that, but 4 accounts, 2 1/2 hrs (150 min), that would add up to 30 x 4 = 120 counts - quite close to the count shown by BBS (148).   


I also have a question -- why is this app showing my app's icon next to "EM/[Gmail]/Sent mail" and "EM/INBOX", what is that supposed to mean?

Please check the system "battery use" screen, at least it won't show that "EM" stuff.

Honestly, I have no idea what that EM means but I have a feeling that it had something to do with BetterBattery Stats itself. The last 2 versions are quite a mess and after I cleared cache/data (pointless anyway) and then reverted back to an older version, all looks normal (please see attached screenshot).   
« Last Edit: March 27, 2013, 08:38:05 pm by Nacos »

Rachel Ambler

  • Full Member
  • ***
  • Posts: 140
  • Responsis, plura interrogandi
    • Random Thunks
Re: Excessive active time (wakelock) and OPTIMAL push settings
« Reply #3 on: March 26, 2013, 02:05:26 am »
Kostya,

Not sure how BetterBatteryStats works but I get the same EM/folder listing for each of the IMAP folders checked on my version as well.
As for the OPs issue: I got 5.6% on my
4 account setup and never thought it unreasonable. Guess I'm just happy it's not like the MediaScannerService that was sucking up 20% at one point and sucking my S3 dry in 4 hours!


Sent from my SCH-I535 using Tapatalk 2


Nacos

  • Newbie
  • *
  • Posts: 34
Re: Excessive active time (wakelock) and OPTIMAL push settings
« Reply #4 on: March 26, 2013, 02:20:24 am »
Rachel,

20% on MediaScannerService is truly ridiculous but since I'm used to (yes, spoiled) 0.7-0.6% per hr. (screen off), well you can imagine that for me this is close to a state of crisis.  :o What's weird is the fact that nothing really changed in AquaMail (no updates/no new accounts, etc), yet somehow it "made" it to the top of the "suckers" list.     
« Last Edit: March 26, 2013, 02:29:27 am by Nacos »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Excessive active time (wakelock) and OPTIMAL push settings
« Reply #5 on: March 30, 2013, 02:25:50 am »
There is no official way for an app to get wake lock stats from the system. I guess all those apps are watching the logcat (system log), or polling, or something...

The "EM" stuff looks to me like a defect in the battery stats app. There is only one process / PID / UID in my app, and one wake lock for the entire app most of the time (+ one wake lock per push connection that's only used once every 10 minutes, for 3 seconds).

I'm not seeing a catastrophe either. I think you're confusing the number of wake lock acquisitions (are those numbers accurate at all? how does it get them?) with actual battery use.

Again, please use the system-provided battery stats screen. It may not be as pretty, but at least it's supported by the developers of Android.

And BTW, mine often shows 30-40 percent by "Android System", whatever that means....

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/

sarah

  • Newbie
  • *
  • Posts: 8
Re: Excessive active time (wakelock) and OPTIMAL push settings
« Reply #6 on: April 13, 2013, 10:10:26 am »
BBStats is in no way reliable.
I my experience AquaM behaves well - only does, what it has to do.
Just my 5 Cents...

jaapjeuk

  • Newbie
  • *
  • Posts: 7
Re: Excessive active time (wakelock) and OPTIMAL push settings
« Reply #7 on: May 05, 2013, 02:29:16 am »
disable mediascanner (needs root)
https://play.google.com/store/apps/details?id=com.addz.mediascannerroot&hl=en [nofollow]

Sent from my GT-I9300 using Tapatalk 2