I want my phone to power off after being idle for some time (say, 15 minutes). This is a common feature in computers, but I couldn't find it on my Android settings, nor an app to help me out.

I don't want a scheduled shutdown, but a shutdown after inactivity.

Is that possible?

  • Android is designed for a smartphone which means it should by default stay awake all the time, thus they don't have power saving modes like suspend to RAM. Some manufacturers add time based power on/off functions.
    – Robert
    Mar 20, 2023 at 15:31

2 Answers 2


you need an automation app like MacroDroid or Tasker.

  1. Set a trigger that is related to inactivity, like screen off or no movement detected by the sensors
  2. Add timeout before executing the power off command
  3. The power off command

If your phone is rooted, it is a very easy thing to do. If your phone is not rooted you can use Shizuku.


Following theggputest55's response,

Using MacroDroid:

  1. Set trigger: screen off
  2. Set an action: wait before next action, set to 20 minutes
  3. Set an action: if clause, if screen off, i.e. Is the screen still off after 20 minutes?
  4. Set an action: reboot/power off (power off)
  • That answer has alreay been given.
    – Chenmunka
    Jul 12, 2023 at 13:57
  • I couldn't find Set trigger:screen off. I couldn't find wait before next action. I don't know how to use if clause, if screen off, i.e... I couldn't find action reboot/power off (power off). Please describe it completely. I'm not professional. Thanks anyway. . Dec 21, 2023 at 0:42

You must log in to answer this question.

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