My name is Aaron Tinsley

An eclectic collection of thoughts and projects on a variety of (mostly) tech topics.

[How To] Tasker Battery Saver Mode on Android Lollipop

Stretch your phone's battery with your Tasker Battery Saver Mode!

Above photo of Nokia phone by twicepix / Foter / CC BY-SA.  I know this post has nothing to do with Windows Phone, but it’s a great picture!


Today, I’m going to show you how to toggle Android Lollipop’s built-in Battery Saver mode to create a “Tasker Battery Saver Mode” that can be toggled on and off at will.  I’m also going to pair it with a cool app called Power Toggles to create a custom widget in the notification shade.

Power Toggles custom notification shade widget
Power Toggles can put a custom widget into your Notification Shade. The battery icon on the far right is a toggle for Android Lollipop’s Battery Saver mode. Read the rest of the post to find out how to do it on your phone!

This method requires your phone to be rooted.  It’s very difficult to accomplish this kind of task without root.


In order to set up our Tasker Battery Saver mode, you need to first install Tasker if you haven’t already.  We also need to install Power Toggles.  Your phone needs to be rooted!  This task will NOT work without root!

In addition, you’ll need to go into Preferences in Tasker.  Under the Misc tab, check the “Allow External Access” box.

Tasker Battery Saver Mode Task

The first thing we want to do is create our task in Tasker.  I’ll start by showing a screenshot of my task and then I’ll explain it.

Tasker Battery Saver Mode
Click to enlarge.

As you can see, this is a pretty short task!  Only 7 actions needed! When we toggle our Tasker Battery Saver mode on using Power toggles, actions 5 and 6 are executed.  When we toggle it off, actions 2 and 3 are executed.

There are a few important things to keep in mind here! First, on Action 1 (the If statement), the condition you want to set is “%state Isn’t Set”. Second, we need to make sure both “Run Shell” actions are run as root. To do that, just check the “Use Root” checkbox when you’re setting each action up. Third, you’ll find the “Modify PowerToggle state” action underneath Plugin > Power Toggles when adding the action.

Okay, now that we’ve got the Tasker task set up, we can move on to the next step.

Set up Power Toggles

Launch the Power Toggles app and select Notification.  You’ll want to turn on the notification shade widget by turning the toggle on in the top right corner.  You can then select Customize.  On this screen, click the Add Toggle button.  Select the Custom tab and then click “Tasker toggle”.

At this point, you’ll want to select your Tasker battery saver mode task.  Leave the type as “Single icon”.  As long as you select a nice built-in battery icon (like the one I have in my below screenshot), the icon will automatically darken when the battery saver mode is toggled on.

Power Toggles Battery Saver Toggle
Change the icon by clicking on your Battery Saver mode toggle and then selecting “Change Icon”.  I selected this battery icon by going to “Application icons”.  The icon will automatically be darkened or dimmed depending on whether the Tasker Battery Saver mode is on or off.

That’s really all there is to it! Hit Done and then pull down your Notification shade!  Toggle your battery saver mode on and off with ease!  You can apply the concepts learned here to create toggles for any Tasker task you can dream up!


  1. Thank you! It’s working perfectly! I changed it a little bit.

    When my battery power is lower than 50% and if it is not charging, then the battery saver go on!

  2. thank you very very very very very very much!!!!!!!!!!!!!!!!!!!!!!!!!!!
    you just made my day . i was looking for sucha thing for years

Leave a Reply

Your email address will not be published. Required fields are marked *