I want to configure my tablets such that if the device is plugged into a charger and it is between, say, 7 am and 10pm, then the screen doesn't turn off, otherwise, it will. Is this possible?

Edit ------

enter image description here

  • You can add multiples triggers. See How to create a profile with multiple context in Tasker? Trigger one would be Time from 07:00-22:00 and the the action would be Display Timeout to maximum. Add another trigger by long pressing the first trigger, select + and set the trigger to State -> Power -> Power. Done! This results in AND logic.
    – Firelord
    Commented Oct 20, 2015 at 22:40
  • @Firelord I was writing up how to do that earlier this morning but, got caught up in stuff, now you managed to get ahead of me in supplying the info.
    – Matt07211
    Commented Oct 21, 2015 at 0:29

2 Answers 2


You can create a profile with the criteria that needs to be meet for it to work. E.g Time and Power.

  1. Create a Task
  2. Choose Display -> Display timeout
  3. set the timeout 59 Secs, 59 mins and 23 Hours or longer if you want

This is were the instructions differ from the above user

  1. Go to your profiles tab

  2. Create a new profile

  3. Chose the first Context/trigger as the time frame you desire, which is 7am to 10 pm

  4. Chose the wanted task

  5. Once the profile has been created click and hold on to the time setting context/trigger (The box within your profile that you created)

  6. After that you get shown with a list of items, click add > State > Power and then chose the desired choice (I left it as any - this includes AC, USB and Wireless charging)

  7. Click done. Now you have created a profile that activates only at a certin time while it is being supplied power

Hope I could help you get this working.


You can do it easily enough with Tasker. You can create a task that:

  • checks if the device is on charge (to do it you can either use the extended variable %myPOWER provided here or create your own global variable)
  • checks for the time of the day
  • sets the screen timeout to 'never'

Create a task with two actions. The first one:

  1. Choose Display -> Display timeout
  2. Set all sliders to the maximum, it means never power off the screen
  3. Add this 'if' condition (tap the plus sign at the bottom of the page): %myPOWER = ac (use 'Math: Equals' to set the field in the middle)

For the second task, set minutes to your normal timeout time and add the condition: %myPOWER = none.

Now create a profile:

  1. Choose 'Time' as the context for the profile
  2. Set from 7:00 to 22:00
  3. Enter the name of the task you created
  • Ok, i have Tasker. I clicked + to add action. Now what? Commented Oct 20, 2015 at 17:21
  • I edited my answer.
    – user127476
    Commented Oct 20, 2015 at 17:54
  • Should this be one task with 2 actions or 2 tasks? Commented Oct 20, 2015 at 19:36
  • One task with two actions will do.
    – user127476
    Commented Oct 20, 2015 at 19:49
  • Did that. Now how do I turn it on, so to speak? Do I have to create a profile? Commented Oct 20, 2015 at 19:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .