{"id":2566,"date":"2012-02-23T23:03:52","date_gmt":"2012-02-24T03:03:52","guid":{"rendered":"http:\/\/www.psychocats.net\/ubuntucat\/?p=2566"},"modified":"2012-02-23T23:03:52","modified_gmt":"2012-02-24T03:03:52","slug":"revised-juice-defender-like-tasker-profiles","status":"publish","type":"post","link":"https:\/\/www.psychocats.net\/ubuntucat\/revised-juice-defender-like-tasker-profiles\/","title":{"rendered":"Revised &#8220;Juice Defender&#8221;-like Tasker profiles"},"content":{"rendered":"<p>A couple of months ago, I posted up <a href=\"http:\/\/www.psychocats.net\/ubuntucat\/my-juice-defender-tasker-profiles\/\">My \u201cJuice Defender\u201d Tasker Profiles<\/a>. I&#8217;ve had a while to play around with different versions of those profiles, and this is what I&#8217;ve finally settled on. (I&#8217;m going with Tasker shorthand here and just showing you the final product&mdash;if you need handholding on how <i>in general<\/i> to build a profile, see <a href=\"http:\/\/www.psychocats.net\/ubuntucat\/my-juice-defender-tasker-profiles\/\">the prior blog post<\/a>, which walks you through step by step.) <\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/jdliketaskerthumb01.png\" width=\"288\" height=\"512\" border=\"0\"> <br \/> Under <i>Variables<\/i>, you&#8217;ll need to create two variables. I called them <b>%DATA<\/b> and <b>%SCREENOFFTEST<\/b>. <\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/jdliketaskerthumb02.png\" width=\"287\" height=\"190\" border=\"0\"><br \/> Under <i>Profiles<\/i>, create a profile called <b>Screen Off Data Off<\/b>. The triggers are the event <b>Display Off<\/b> and the state <b>Not Power Any<\/b>. Then create a <i>Task<\/i> called <b>Screen Off Data Off<\/b>.<\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/jdliketaskerthumb03.png\" width=\"281\" height=\"447\" border=\"0\"><br \/>You can see what I built here. The basic gist of it in plain English is that it turns on a temporary test to see if the screen stays off. Then it waits 15 minutes. If the test is still on, it turns the data off, turns auto-sync off, and then cancels the test. <\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/jdliketaskerthumb04.png\" width=\"251\" height=\"315\" border=\"0\"><br \/>\n<br \/> Tapping the wrench in the bottom-right corner brings up the <i>Task Properties<\/i>. Set the <i>Collision Handling<\/i> to <b>Abort Existing Task<\/b>. This means if you turn the screen off and then turn it on again and turn it off again within 15 minutes, the first instance of this task will be aborted in favor of the most recent time you turned the screen off.<\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/jdliketaskerthumb05.png\" width=\"288\" height=\"191\" border=\"0\"><br \/> The next <i>Profile<\/i> is called <b>Screen On Data On<\/b>. The triggers are an event of <b>Display Unlocked<\/b> and a state of <b>Not Airplane Mode<\/b>. Then you&#8217;ll also create a <i>Task<\/i> called <b>Screen On Data On<\/b>. <\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/jdliketaskerthumb06.png\" width=\"280\" height=\"488\" border=\"0\"> <br \/> For this profile, you can see the end product again. The gist is: if you wake up the screen, that test from earlier should be off. And then if data is off, you turn it back on again. <\/p>\n<p> I made the timeout 15 minutes so that the data isn&#8217;t constantly turning off and on again, but I still get the battery life savings. I also turned off auto-sync for good measure. It doesn&#8217;t really need to be off, though. If data is off, Android won&#8217;t look to auto-sync. Lastly, I made the trigger for screen on data on to be unlocking instead of just turning the display on. That&#8217;s because on my phone (the Galaxy Nexus) it can be sometimes easy to accidentally jostle the power button, so I don&#8217;t want to turn on data until I unlock the phone, which means I&#8217;m actually using it for something data-related. The data reconnects fairly quickly on the Galaxy Nexus (on my old phone&mdash;the MyTouch 4G&mdash;the reconnection time was much longer).<\/p>\n<p> I hope you found this helpful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of months ago, I posted up My \u201cJuice Defender\u201d Tasker Profiles. I&#8217;ve had a while to play around with different versions of those profiles, and this is what I&#8217;ve finally settled on. (I&#8217;m going with Tasker shorthand here and just showing you the final product&mdash;if you need handholding on how in general to&hellip; <a class=\"more-link\" href=\"https:\/\/www.psychocats.net\/ubuntucat\/revised-juice-defender-like-tasker-profiles\/\">Continue reading <span class=\"screen-reader-text\">Revised &#8220;Juice Defender&#8221;-like 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":[641,822,796,816],"class_list":["post-2566","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-android","tag-galaxy-nexus","tag-juice-defender","tag-tasker","entry"],"_links":{"self":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2566","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=2566"}],"version-history":[{"count":10,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2566\/revisions"}],"predecessor-version":[{"id":2576,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2566\/revisions\/2576"}],"wp:attachment":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/media?parent=2566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/categories?post=2566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/tags?post=2566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}