1. Download our Official Android App: Forums for Android!

Strange and "unobvious" battey drain

Discussion in 'Android Apps & Games' started by ministry, Nov 14, 2014.

  1. ministry

    ministry Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Nov 14, 2014

    Nov 14, 2014
    1
    0
    5
    Hello, I'd like to save my battery so I'm trying to set up Tasker "as Juicedefender": I mean, when display is off data syncronization must be scheduled every 15 minutes or something similar. This should reduce battery using.
    So, I've created three profiles:
    - EVENT display off: data and autosync are switched OFF
    - EVENT display on: data and autosync are switched ON
    - TIME EVERY 15 MINUTES: if display is "on" stop script; otherwise turn data and autosync ON for 1 minute, then turn them OFF again

    This works, but instead of saving my battery, it increases it's consumption! (from 3% to 6% per hour)

    My phone: Samsung Galaxy S2, Jelly Bean 4.1.2, rooted

    Is there something I'm missing?
     

    Advertisement

  2. WarriusZero

    WarriusZero Guest
    Rank:
    None
    Posts:
    0
    Joined:

    One first suggestion would be adding the "If Display is off" condition to the profile that's triggered every 15 min, rather than doing the test inside the task. That way, if the display is on, the profile is not triggered every 15 min. I know, it's a very small thing and won't make much of a difference.

    Another thing you can do is tie your 2 tasks to the same profile, for example the "data and autosync are switched ON" task to be an exit task of the event 'Display Off'. Yet again, another small improvement that probably won't make too much of a difference. Worth a try, and making some measurements, though, if you feel bored. :)

    The problem here is that the 1 min of forced syncing every 15 min may as well drain your battery more than keeping your connection on. I've definitely noticed on Lollipop that it's much better to leave the OS alone to deal with this, for example.

    Something you can try is changing the 15 min delay to 10, 20 and 30, for example, and compare your findings.
     
    codesplice likes this.
  3. codesplice

    codesplice Elite Recognized Moderator
    Moderator
    Rank:
     #14
    Points:
    1,563
    Posts:
    8,804
    Joined:
    Oct 29, 2013

    Oct 29, 2013
    8,804
    10,192
    1,563
    Male
    SysAdmin
    Huntsville, AL
    This. Apps (and the OS in general) are getting better and better at scheduling their background data syncs. As WarriusZero mentioned, manually toggling Sync like that is essentially forcing SYNC ALL THE THINGS!; you end up with a lot of things syncing/refreshing WAAY more frequently than they would if left to their own devices.

    Honestly, I'm not sure that a profile like yours makes much sense anymore - and this is coming from a guy who previously spent many months experimenting with JuiceDefender and others, as well as tinkering with various Tasker setups to accomplish the same.

    If you're having sub-par battery life, your time would probably be better spent diagnosing what might be causing that instead of taking a shotgun approach via Tasker.
     
    WarriusZero likes this.

Share This Page

Loading...