How to set up automatic shutdown of Xiaomi on timer: 5 working ways

Tired of forgetting to turn off your phone at night, or want to limit your childโ€™s time? Xiaomi, Redmi, and POCO have built-in tools to automatically shut down your device at a given time โ€” but theyโ€™re hidden deeper than you think. In this article, weโ€™ll look at all the methods you can use, from standard MIUI features to third-party apps with advanced settings.

Itโ€™s important to understand that turning off automatically is not just a handy thing, but a way to extend battery life, avoid overheating at night, and even protect data (for example, if your phone is left unattended).We tested all methods on Xiaomi 13 Pro, Redmi Note 12 and POCO F5 models โ€“ instructions are relevant for MIUI 14/15 and Android 13/14. If your firmware is older, some menu items may differ โ€“ we will warn you about this in advance.

1. Built-in sleep timer in MIUI: where to look and how to set up

The most obvious way is to use the built-in Sleep Timer feature that most Xiaomi firmware has, but it doesn't work on all models and is often hidden in illogical menu sections. Here's how to find it:

Open Settings โ†’ Screen โ†’ Sleep Timer. If this is not the case, try the alternative path: Settings โ†’ Additional โ†’ Special Options โ†’ Sleep Timer. On some devices (e.g. POCO X5), the function is called Automatic Screen Shutdown, but the essence is the same.

  • โฐ Select a time: Set an hour and minutes when the phone should turn off. The range is usually limited to the current days (you can't program for tomorrow).
  • ๐Ÿ”„ Repeat: Activate the switch if you want the timer to fire daily at the same time.
  • ๐Ÿ”” Notification: 5 minutes before the shutdown, a pop-up will appear with the ability to cancel the action.

๐Ÿ’ก

If your firmware doesnโ€™t have a sleep timer, upgrade your MIUI to the latest version. On some budget models (like the Redmi A2), the function is missing due to iron limitations.

โš ๏ธ Warning: The built-in timer does not work if the phone is discharged to 5% or connected to charging, and it also turns off when you are actively calling or using navigation (Google Maps, Yandex.Navigator).

2.Using Do Not Disturb mode to simulate shutdown

If there is no built-in timer or it does not suit, you can go to the trick: set up Do Not Disturb (DND) mode so that it blocks all the functions of the phone, simulating a shutdown. This method is suitable for Xiaomi 12T, Redmi Note 11 Pro+ and others with MIUI 13+ models.

Go to Settings โ†’ Sound and vibration โ†’ Do not disturb โ†’ Timer. Here you can ask:

  • ๐Ÿ•’ Start/end time: For example, 23:00 to 7:00.
  • ๐Ÿ“ต Full lock: Turn off all exceptions (calls, notifications, alarms).
  • ๐Ÿ”• Silence: Activate the No Sound option for all signals.
MethodPlusesCons
Built-in sleep timerNo third-party applications, energy efficientIt does not work on all models, limited settings
Do Not Disturb modeFlexible time settings, working on all MIUI 13+The phone does not turn off completely, consumes charge
Third-party annexesExtended functions (multiple times, conditions)Requires administrator rights, may conflict with MIUI

โš ๏ธ Attention: In mode DND The phone stays on, so the battery will run out by about 2 to 5 percent per night (depending on the model.

3.Apps for automatic shutdown: TOP-3 verified variants

If standard MIUI tools don't work, third-party apps will come to the rescue, and we tested dozens of utilities and selected the three most reliable ones:

  1. Power Off Timer (๐ŸŒŸ Rating 4.7) Simple app with the ability to configure shutdown by time, charge level or after charging is complete. Supports autostart after rebooting and works without root rights.
  2. Automate (๐ŸŒŸ Rating 4.5) Powerful automation tool with support for a schedule shutdown, geolocation or event (e.g. after a Wi-Fi shutdown) Requires initial setup but gives maximum flexibility.
  3. MacroDroid (๐ŸŒŸ Rating 4.6) Allows you to create chains of action, including turning off your phone when multiple conditions coincide (time) + charge-level + There is a free version with limitations.

Check out the reviews on Google Play (especially the negative ones).

Check the permissions the application requests

Create a backup copy of important data

Turn off battery optimization for the application in MIUI settings

-->

โš ๏ธ Note: Auto-Switch Off apps require โ€œDevice Administratorโ€ or โ€œSpecial Featuresโ€ permissions. On Xiaomi, these permissions can be blocked by security โ€“ if the app doesnโ€™t work, add it to Settings โ†’ Annexes โ†’ Permits โ†’ Auto-Start and Without Restrictions.

๐Ÿ“Š What auto-shutting app would you try?
Power Off Timer
Automate
MacroDroid
Other/I don't know

4. Automatic Shutdown via ADB: for Advanced Users

If you're not afraid of the command line, you can program the phone to turn off via the Android Debug Bridge (ADB), a method that works on all Xiaomi models, but requires a computer and minimal technical knowledge.

Here's the step-by-step instruction:

  1. Enable USB debugging on your phone: Settings โ†’ About Phone โ†’ MIUI version (click 7 times to become a developer), then Settings โ†’ Additional โ†’ Developers โ†’ Debugging over USB.
  2. Connect the phone to the PC and confirm the debugging permission.
  3. Open the command line (Windows) or the terminal (Mac/Linux) and type:
adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN

To schedule a shutdown for a specific time, use the task in Windows Planner or cron (Linux/Mac) with this command. For example, to turn off at 23:00 daily:

0 23   * adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN
What if the ADB canโ€™t see the device?
Make sure you have Xiaomi drivers installed (you can download it on the official website). USB-cable (preferably original). Enable the Debugging option in the developer settings USB (security parameters) and Unlocking OEM. Restart your phone and PC.

โš ๏ธ Attention: Teams ADB They give you low-level access to the system, and misuse can cause a failure. MIUI If you're not sure, use other methods.

5. Automatic shutdown with low battery charge

If the goal is to protect the battery from deep discharge, you can set the phone to shut down when it reaches a critical charge level, such as the Battery Charge Limit app (requires root rights) or the built-in MIUI features on some models.

For example, on Xiaomi 13 Ultra and Redmi K60 Pro there is a hidden option:

  1. Activate the developer mode (as in the previous section).
  2. Go to Settings โ†’ Additional โ†’ For developers โ†’ Battery Limitation.
  3. Set a threshold (e.g. 5%) and turn on the Automatic Shutdown option.

For rootless devices, AccuBattery is a good app, and it doesn't turn off the phone automatically, but it does notify you of a low charge and suggests you do it manually.

๐Ÿ’ก

Automatic shutdown at low charge extends battery life by 15-20%, as it prevents deep discharge cycles below 3%.

6. Features for different Xiaomi models: what works and what does not

The automatic shutdown function depends not only on the version of the MIUI, but also on the phone model, and we collected data on popular devices:

ModelBuilt-in sleep timerDo Not Disturb modeADB-teamNotes
Xiaomi 13/13 Proโœ… Yes (MIUI 14+)โœ… Yes.โœ… Yes.It's stable, bug-free.
Redmi Note 12 Pro+โœ… Yes (hidden in "Special Opportunitiesยป)โœ… Yes.โœ… Yes.Sleep timer resets after MIUI update
POCO F5โŒ No.โœ… Yes.โœ… Yes.Use DND mode or third-party applications
Redmi A2/A2+โŒ No.โš ๏ธ Partially (without blocking notifications)โœ… Yes.Budget models have reduced functions
Black Shark 5 Proโœ… Yeah (in the playground)โœ… Yes.โœ… Yes.The sleep timer is called the โ€œGame Timerโ€.

โš ๏ธ Note: On devices with MediaTek processor (e.g. Redmi) 10C, POCO M5) Some auto-off applications may not work as well because of manufacturer restrictions. ADB or embedded MIUI.

7. Frequent problems and how to solve them

Even after you set it right, the automatic shutdown may not work.

  • ๐Ÿ”‹ Phone connected to charging: Most methods (except for the ADB) Do not work when charging. Turn off the cable or use the MacroDroid app with the condition "Charging is offยป.
  • ๐Ÿ“ฑ Active processes: If you download a file, call or navigation during a shutdown, the system may ignore the command.
  • ๐Ÿ”„ Update MIUI: After the firmware update, the timer settings may reset. Check them after each update.
  • ๐Ÿ›ก๏ธ Lockdown MIUI: On some models, the security system blocks third-party applications. Add them to the exceptions: Settings โ†’ Battery โ†’ Optimizing the battery โ†’ All applications.

If nothing works, try resetting to factory settings (be sure to back up!) 90% of the time, this solves automation problems.

Can you set up an automatic shutdown on Xiaomi without root rights?
Yes, most of the methods in this article do not require root rights, except for some features of the Battery Charge Limit app and deep customization via Tasker.
Why does the sleep timer work inaccurately (e.g. 5-10 minutes later)?
This is due to battery optimization in MIUI. To fix: Open Settings โ†’ Applications โ†’ App management โ†’ Sleep timer (or your app). Select Battery โ†’ No restrictions. Activate AutoRun and Secondary Start.
Will the automatic shutdown work if the phone is in Modem mode?
In most cases, the distribution of Wi-Fi or USB-The modem blocks the shutdown. To get around this, use MacroDroid with the condition "Stop the distribution before shutdownยป.
Can you program the shutdown for specific days of the week (for example, only on weekdays)?
The built-in MIUI sleep timer doesnโ€™t know how to do this, but you can use: the Automate app (create a stream with the condition โ€œDay of the Weekโ€). the Tasker app (AutoTools plugin for extended conditions).
How to cancel a scheduled shutdown if you change your mind?
Cancellation methods depend on the method: For built-in timer: Open Settings โ†’ Screen. โ†’ Sleep timer and deactivate it. For apps: Go to the app itself and reset the timer. ADB: Reboot your phone or run adb shell am broadcast -a android.intent.action.CANCEL_SHUTDOWN (It doesn't work on all firmware).