Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,953 Members 36,507 Now Online
XDA Developers Android and Mobile Development Forum

TASKER: Shutdown after 10min after power is disconnected, how to do this?

Tip us?
 
Evelen
Old
(Last edited by Evelen; 20th May 2014 at 10:59 PM.)
#1  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
Prompt TASKER: Shutdown after 10min after power is disconnected, how to do this?

Ok, I have a Nexus 7, and I have successfully managed to start Car Home Ultra, wifi and bt when the powercable is connected.

But what I don't manage are to do this:

- when power is disconnected wait 10 min and than shutdown the tablet.
- exception: If power is restored within this time, do not turn off the tablet

can someone tel me how to do this?
PS: step by step, I have never used tasker
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-20-18-49-52.png
Views:	12
Size:	31.8 KB
ID:	2754195   Click image for larger version

Name:	Screenshot_2014-05-20-18-50-05.png
Views:	12
Size:	45.3 KB
ID:	2754196  
 
Evelen
Old
(Last edited by Evelen; 20th May 2014 at 09:09 PM.)
#2  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
seems like this worked:

edit: *wrong screenshot, will edit

EDIT:
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-20-2kkkkkkkkkkkkkkkkkkkkkk1-29-51.png
Views:	19
Size:	40.2 KB
ID:	2754473  
 
furious84
Old
#3  
Member
Thanks Meter 5
Posts: 65
Join Date: Aug 2010
Location: spilimbergo (pn) italy
Hi, have u resolved?

Inviato dal mio Nexus 7 utilizzando Tapatalk

---------- Post added at 10:02 PM ---------- Previous post was at 10:01 PM ----------

Quote:
Originally Posted by Evelen View Post
seems like this worked:

edit: *wrong screenshot, will edit
Have u resolved?

Inviato dal mio Nexus 7 utilizzando Tapatalk
HTC HD MINI nsourm rom with CHT AND SPB 3.5 + android
 
Evelen
Old
#4  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
yepp:

This config worked (see screenshot)

task->Power->Any Off

1. Wait: 10 Min
2. Reboot: Shutdown If AIR (Airplanemode) is on


This works because I use Timur's Kernel, and that kernel will automatically turn on airplanemode when going to deepsleep (when powercable is disconnected)
Attached Thumbnails
Click image for larger version

Name:	ddd.png
Views:	17
Size:	40.2 KB
ID:	2754475  
The Following User Says Thank You to Evelen For This Useful Post: [ Click to Expand ]
 
furious84
Old
#5  
Member
Thanks Meter 5
Posts: 65
Join Date: Aug 2010
Location: spilimbergo (pn) italy
Yes i also have timur's rom But what happen If after 5 minutes u plug power? I mean :u go To take bread then u off car, And after 5 minutes u return To car and on car. The task go To block, or continue and after 10 minutes (started when u off car) shutdown tablet? I hope u understand what i mean

Inviato dal mio Nexus 7 utilizzando Tapatalk

---------- Post added at 10:40 PM ---------- Previous post was at 10:38 PM ----------

Right after 10 minutes check if airplane mode is on then shutdown or not...

Inviato dal mio Nexus 7 utilizzando Tapatalk
HTC HD MINI nsourm rom with CHT AND SPB 3.5 + android
 
Evelen
Old
#6  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
Quote:
Originally Posted by furious84 View Post
Yes i also have timur's rom But what happen If after 5 minutes u plug power? I mean :u go To take bread then u off car, And after 5 minutes u return To car and on car. The task go To block, or continue and after 10 minutes (started when u off car) shutdown tablet? I hope u understand what i mean

Inviato dal mio Nexus 7 utilizzando Tapatalk

---------- Post added at 10:40 PM ---------- Previous post was at 10:38 PM ----------

Right after 10 minutes check if airplane mode is on then shutdown or not...

Inviato dal mio Nexus 7 utilizzando Tapatalk
If I turn of the car for 5 min it will go to deepsleep and then wake up when I turn on the car, the tablet will then be on and don't shutdown after the 10 min.

So you can say ut "block" the shutdown countdown when the power is on, this is because tasker checks if the flightmode is on.

flightmode on after 10 mins: Shutdown
flightmode off after 10 mins: nothing happens

Also: If you want to do this like me you should also see my other thread about autostart og power: http://forum.xda-developers.com/show....php?t=2756771
The Following User Says Thank You to Evelen For This Useful Post: [ Click to Expand ]
 
furious84
Old
#7  
Member
Thanks Meter 5
Posts: 65
Join Date: Aug 2010
Location: spilimbergo (pn) italy
Thanks But for now i have not Fix installation so i no need The autostart mode, But i like that thing

Inviato dal mio Nexus 7 utilizzando Tapatalk
HTC HD MINI nsourm rom with CHT AND SPB 3.5 + android
 
Evelen
Old
#8  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
Me neither, I just don't like to click the button

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes