Browse Your Files with Ease using MK Explorer

Google has made quite an effort in perfecting the powerful and multi-faceted OS that we know as … more

How to Fix the Nexus Available Storage Bug – XDA TV

Is your Nexus device only showing half of the available storage as it should? Many … more

Don’t Forget About Birthdays with Birthday Reminder

A person’s birthday is, without a doubt,one of the most important days in his … more

Don’t Fear Flashing with I Don’t Want You!

The XDA message boards are full of various modifications, with many of these helping … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Evelen

20th May 2014, 07:07 PM   |  #1  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
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:	52
Size:	31.8 KB
ID:	2754195   Click image for larger version

Name:	Screenshot_2014-05-20-18-50-05.png
Views:	51
Size:	45.3 KB
ID:	2754196  
Last edited by Evelen; 20th May 2014 at 11:59 PM.
20th May 2014, 09:45 PM   |  #2  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
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:	85
Size:	40.2 KB
ID:	2754473  
Last edited by Evelen; 20th May 2014 at 10:09 PM.
20th May 2014, 10:02 PM   |  #3  
Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
70 posts
Join Date:Joined: Aug 2010
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, 10:16 PM   |  #4  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
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:	57
Size:	40.2 KB
ID:	2754475  
The Following User Says Thank You to Evelen For This Useful Post: [ View ]
20th May 2014, 10:40 PM   |  #5  
Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
70 posts
Join Date:Joined: Aug 2010
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, 11:41 PM   |  #6  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
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, 11:45 PM   |  #7  
Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
70 posts
Join Date:Joined: Aug 2010
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, 11:55 PM   |  #8  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
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