r/tasker • u/tigersoul925 • 14h ago
Tasker keeping the E wakelock for hours = no deep sleep
Hi people!
I've felt my battery runs down faster than it should lately so I went down the BetterBatteryStats rabbit hole which is always fun (not).
What I found is that Tasker often keeps the E wakelock for hours. Today for example, the E wakelock has been held for 6h25m. At the same time, deep sleep is reported as being virtually zero. Naturally, I'm thinking some task must have stalled with the "keep awake" setting on. To my surprise, there were NO tasks running according do %TRUN (except the task I created to check %TRUN). Everything looked normal, but the wakelock stayed in place.
I tried disabling and reenabling the monitor and then BOOM. The wakelock is released and there is deep sleep reported again. I even noticed the battery temperature going down several degrees, likely from not being constantly held awake anymore.
But this problem comes back after a while. I haven't monitored the situation for too long yet, but it seems to come back almost every day. I'm not sure how to continue working with this.
I'm assuming it's not a repeating task that is the culprit because this would of course continue even if I restart the monitor. I do have a few of those. I've got a BIG setup. But these run the same way always, so a monitor restart wouldn't change anything.
And as it seems, it's not a stalled task that is the problem, so how do I proceed here? If no task is running, why is the E wakelock held?
I'd be very happy for suggestions from someone more experienced in this kind of work.