{"id":2519,"date":"2011-12-14T02:19:39","date_gmt":"2011-12-14T06:19:39","guid":{"rendered":"http:\/\/www.psychocats.net\/ubuntucat\/?p=2519"},"modified":"2011-12-14T02:19:39","modified_gmt":"2011-12-14T06:19:39","slug":"my-juice-defender-tasker-profiles","status":"publish","type":"post","link":"https:\/\/www.psychocats.net\/ubuntucat\/my-juice-defender-tasker-profiles\/","title":{"rendered":"My &#8220;Juice Defender&#8221; Tasker Profiles"},"content":{"rendered":"<p>In response to <a href=\"http:\/\/www.psychocats.net\/ubuntucat\/my-favorite-android-app-tasker\/\">My Favorite Android App: Tasker<\/a>, one reader asked how I set up my battery conserving profiles. These are totally a work in progress (and if someone has suggestions for how to streamline them, I&#8217;m open to hearing people&#8217;s thoughts). <\/p>\n<p><h2>Terminology<\/h2>\n<p> <img decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskericons.png\" widht=\"404\" height=\"68\"><br \/> These are not official names for the icons. These are just what I&#8217;m calling them. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskercheck.png\" width=\"68\" height=\"71\"><br \/> This is what I&#8217;m calling <b>check<\/b>. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerx.png\" width=\"69\" height=\"68\"><br \/> This is what I&#8217;m calling <b>X<\/b>. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerplus.png\" width=\"84\" height=\"68\"><br \/> This is what I&#8217;m calling <b>plus<\/b>. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerbolt.png\" width=\"86\" height=\"72\"><br \/> This is what I&#8217;m calling <b>bolt<\/b>. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskertag.png\" width=\"84\" height=\"71\"><br \/> And this is what I&#8217;m calling <b>tag<\/b>. <\/p>\n<p> I&#8217;d also like to throw in a <u>disclaimer<\/u> here that I am not trying to replicate the exact behavior of Juice Defender. I just found with JD that the bulk of the savings was in turning off data when the screen is off, so this is a modification of that. <\/p>\n<p><h2>User-defined global variables<\/h2>\n<p> I&#8217;m not a programmer, but I do understand some basics of how to use variables, and I think the way I use these I actually had to define them. (You can find on the Tasker website <a href=\"http:\/\/tasker.dinglisch.net\/userguide\/ru\/variables.html\">a list of variables Tasker comes with<\/a>&mdash;that is, ones you don&#8217;t have to define yourself.) <\/p>\n<ul>\n<li>Click <b>tag<\/b> to bring up the <i>Global Variable Editor<\/i>.\n<li>Click <b>plus<\/b> and define a new variable as <b>%DATA<\/b>.\n<li>When prompted for a <i>Variable Value<\/i>, input <b>on<\/b> if your mobile data is on and <b>off<\/b> if your mobile data is off.\n<li>Click <b>check<\/b> to confirm.\n<li>Click <b>plus<\/b> again define another new variable as <b>%POWER<\/b>.\n<li>For the <i>Variable Value<\/i>, input <b>on<\/b> if your phone is plugged into a power source (either AC or USB) and <b>off<\/b> if your phone isn&#8217;t plugged in. <\/ul>\n<p><h2>Data on when screen is on<\/h2>\n<ul>\n<li>Click <b>plus<\/b> to add a <i>New Profile Name<\/i>. You can call it whatever you want. I called mine <b>Screen On Data On<\/b>.\n<li>When prompted for <i>First Context<\/i>, select <b>Event<\/b>.\n<li>Select <b>Display<\/b>.\n<li>Select <b>Display On<\/b>.\n<li>For <i>Task Selection<\/i>, select <b>New Task<\/b>.\n<li>For <i>New Task<\/i>, you can call it whatever you want. I uncreatively called it <b>Screen On Data On<\/b>.\n<li>Under <i>Task Edit<\/i>, you&#8217;ll see a blue <b>plus<\/b> above the <b>check<\/b>. Click that blue <b>plus<\/b>.\n<li>Select <b>Task<\/b> and then <b>If<\/b>.\n<li>Click <b>tag<\/b>.\n<li>Under <i>Variable Select<\/i>, select <b>%DATA<\/b> and after the tilda, type in <b>off<\/b>. Then click <b>check<\/b>.\n<li>Click blue <b>plus<\/b> and click <b>Variable<\/b> and <b>Variable Set<\/b>. Set <b>%DATA<\/b> to <b>on<\/b>.\n<li>Blue <b>plus<\/b> and then <b>Net<\/b>, <b>Mobile Data<\/b>, <b>On<\/b>.\n<li>Blue <b>plus<\/b>, <b>Net<\/b>, <b>Auto-Sync<\/b>, <b>On<\/b>.\n<li>Blue <b>plus<\/b>, <b>Task<\/b>, <b>End If<\/b>.\n<li>Click <b>check<\/b>.<\/ul>\n<p> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerscreenondataon.png\" width=\"350\" height=\"494\"> <!-- <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerscreenondataon.png\" width=\"467\" height=\"659\"> --> <\/p>\n<h2>Power Variable<\/h2>\n<p> Since there&#8217;s no built-in variable for whether power is connected or not, we&#8217;ve had to create one. So let&#8217;s make it work. <\/p>\n<ul>\n<li>Green <b>plus<\/b>.\n<li>Name <b>Power Variable<\/b>.\n<li>For <i>First Context<\/i>, <b>State<\/b>, <b>Power<\/b>, <b>Power<\/b>, source <b>Any<\/b>.\n<li>Under <i>Task Selection<\/i>, <b>New Task<\/b> called <b>Power Variable On<\/b>.\n<li><b>Task<\/b>, <b>If %POWER off<\/b>.\n<li><b>Variable<\/b> set <b>%POWER<\/b> to <b>on<\/b>.\n<li><b>Task<\/b>, <b>End If<\/b>.<\/ul>\n<p> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerpowervariableon.png\" width=\"351\" height=\"366\"> <!-- <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerpowervariableon.png\" width=\"468\" height=\"488\"> --><\/p>\n<ul>\n<li>Tap <b>Power Variable On<\/b> and then for <i>Task Options<\/i>, select <b>Add Exit Task<\/b>.\n<li>Call it <b>Power Variable Off<\/b>.\n<li><b>Task If %POWER on<\/b>.\n<li><b>Variable Set %POWER<\/b> to <b>off<\/b>.\n<li><b>Task<\/b>, <b>End If<\/b>.<\/ul>\n<p> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerpowervariableoff.png\" width=\"355\" height=\"369\"> <!-- <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerpowervariableoff.png\" width=\"473\" height=\"492\"> --> <\/p>\n<h2>Data off when screen is off<\/h2>\n<ul>\n<li>Green <b>plus<\/b>.\n<li>Name <b>Screen Off Data Off<\/b>.\n<li>For <i>First Context<\/i>, <b>Time<\/b>.\n<li>Check <b>Repeat<\/b> and set it for every <b>5 Minute(s)<\/b>.\n<li><b>Check<\/b>.<\/ul>\n<p> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskertime.png\" width=\"350\" height=\"466\"> <!-- <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskertime.png\" width=\"467\" height=\"622\"> --> <\/p>\n<ul>\n<li>Under <i>Task Selection<\/i>, <b>New Task<\/b> and then call it <b>Screen Off Data Off<\/b>.\n<li>Blue <b>plus<\/b>, <b>Task<\/b>, <b>If<\/b>, <b>%POWER<\/b>, <b>off<\/b>.\n<li><b>If %SCREEN off<\/b>.\n<li><b>If %DATA on<\/b>.\n<li><b>Auto-Sync Off<\/b>.\n<li>Variable Set <b>%DATA off<\/b>.\n<li><b>Mobile Data<\/b> set <b>Off<\/b>.\n<li><b>Task<\/b> and <b>End If<\/b>.\n<li>Another <b>End If<\/b>.\n<li>Another <b>End If<\/b>.<\/ul>\n<p> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerscreenoffdataoff.png\" width=\"333\" height=\"791\"> <!-- <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/taskerscreenoffdataoff.png\" width=\"444\" height=\"1054\"> --> <\/p>\n<h2>English translation<\/h2>\n<p> Basically what this does is say if you turn the display on, check to see if data is off. If it&#8217;s off, turn it on, and then turn on auto-sync. And then every five minutes, check to see if the phone is plugged in and if the display is off and the data is on. If it&#8217;s on, turn off auto-sync, and then turn off data. That&#8217;s it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In response to My Favorite Android App: Tasker, one reader asked how I set up my battery conserving profiles. These are totally a work in progress (and if someone has suggestions for how to streamline them, I&#8217;m open to hearing people&#8217;s thoughts). Terminology These are not official names for the icons. These are just what&hellip; <a class=\"more-link\" href=\"https:\/\/www.psychocats.net\/ubuntucat\/my-juice-defender-tasker-profiles\/\">Continue reading <span class=\"screen-reader-text\">My &#8220;Juice Defender&#8221; Tasker Profiles<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[817,818,796,816],"class_list":["post-2519","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-battery-life","tag-data","tag-juice-defender","tag-tasker","entry"],"_links":{"self":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/comments?post=2519"}],"version-history":[{"count":22,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2519\/revisions"}],"predecessor-version":[{"id":2541,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2519\/revisions\/2541"}],"wp:attachment":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/media?parent=2519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/categories?post=2519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/tags?post=2519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}