FORUMS

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and … more

Android 5.1.1 Omni ROM For Motorola Xoom

Back in Feb 2011, the Motorola Xoom became the first device to be sold with Android 3.0 … more

CleanSlate Brings Fingerprint Scanner Mod to HTC One M9+

Work of XDA Recognized Developer tbalden, CleanSlate custom kernel for the HTC … more

Sunday Debate: Which Factors Caused HTC’s Woes?

Join us in a fun Sunday Debate on HTC’s situation. Come with your … more

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

41 posts
Thanks Meter: 2
 
By Evelen, Member on 20th May 2014, 06:07 PM
Post Reply Subscribe to Thread Email Thread
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:	118
Size:	31.8 KB
ID:	2754195   Click image for larger version

Name:	Screenshot_2014-05-20-18-50-05.png
Views:	119
Size:	45.3 KB
ID:	2754196  
Last edited by Evelen; 20th May 2014 at 10:59 PM.
 
 
20th May 2014, 08:45 PM |#2  
OP Member
Thanks Meter: 2
 
More
Thumbs up
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:	213
Size:	40.2 KB
ID:	2754473  
Last edited by Evelen; 20th May 2014 at 09:09 PM.
20th May 2014, 09:02 PM |#3  
Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
More
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

seems like this worked:

edit: *wrong screenshot, will edit

Have u resolved?

Inviato dal mio Nexus 7 utilizzando Tapatalk
20th May 2014, 09:16 PM |#4  
OP Member
Thanks Meter: 2
 
More
Wink
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:	113
Size:	40.2 KB
ID:	2754475  
The Following User Says Thank You to Evelen For This Useful Post: [ View ]
20th May 2014, 09:40 PM |#5  
Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
More
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
20th May 2014, 10:41 PM |#6  
OP Member
Thanks Meter: 2
 
More
Tablet
Quote:
Originally Posted by furious84

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: [ View ]
20th May 2014, 10:45 PM |#7  
Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
More
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
20th May 2014, 10:55 PM |#8  
OP Member
Thanks Meter: 2
 
More
Service
Me neither, I just don't like to click the button
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes