How to set up auto-disconnection of Xiaomi phone: 5 working ways

The ability to automatically turn off Xiaomi smartphone by timer is a useful feature that helps save battery power, limit the time of use of the device before bedtime or just remember to turn off the phone at the right time. Despite the fact that MIUI does not have a separate item β€œSwitch off” in the main menu, you can implement this option in several ways – both standard tools and third-party applications.

The feature of Xiaomi, Redmi and Poco smartphones is that the manufacturer regularly updates the firmware, changing the location of some functions. Therefore, the instructions for MIUI 12 may not be suitable for MIUI 14 or HyperOS. In this article, we will look at current methods for 2026, which work on most models – from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra.

Method 1: Using a full-time task scheduler in MIUI

The most reliable method is to use the built-in Planner tool, which has been in MIUI firmware since version 10, which allows you not only to turn off the device, but also to run applications, turn on/off Wi-Fi or mobile data on a schedule, the main advantage is that you do not need to install third-party programs.

To set up auto-disconnection through the scheduler:

  1. Open the Settings app (cog icon).
  2. Go to the section Additional β†’ Planner (on some versions the path can be System and Device β†’ Additional β†’ Planner).
  3. Click Add Task and select the Shutdown type.
  4. Specify the time of operation and days of the week (daily, on weekdays, etc.).
  5. Save the task and activate the slider Enable the scheduler.

Important: Some models (like the Poco X5 Pro) may call the scheduler Automation or Smart Features. If you don't find a section, search by settings (the magnifying glass icon in the upper right corner).

Update MIUI to the latest version

Make sure the battery is at least 20% charged.

Turn off the power saving mode for the Settings app

Check that the system time is synchronized with the network-->

⚠️ Warning: If the scheduler does not work after setting up, check if it is disabled in Settings. β†’ Annexes β†’ Autostart control: Some battery optimizers (e.g., Security) may block background operation of system services.

Method 2: Auto-disconnect via Do Not Disturb mode

A less obvious, but working, method is to use a time-based Do Not Disturb (DND) function, which is suitable if you need to not only turn off your phone, but also block notifications in advance, such as setting up a shutdown at 22:00 and a shutdown at 23:00.

Instructions:

  • πŸ“± Open the Settings. β†’ Sound and vibration β†’ Don't disturb.
  • πŸ•’ Select Schedule and set the time interval (for example, from 22:00 to 7:00).
  • βš™οΈ In additional settings, activate the option to turn off the device after the time has expired (if available in your version). MIUI).
  • πŸ”„ If there is no shutdown option, create a separate task in the scheduler (see Method 1) at 23:00.

The advantage of this method is that you can combine auto-disconnect with other activities: turning off mobile data, turning the phone into airplane mode or activating night lights. For example, on Xiaomi 13T you can set the chain: 22:00 - Do not disturb mode, 23:30 - turn off.

πŸ’‘

If your MIUI version does not have the option to turn off in DND mode, use the MacroDroid app (free version) to create a macro: "If time = 23:00 β†’ Turn off the device."

Method 3: Auto-disable applications (for advanced users)

If Xiaomi's regular tools don't suit you, you can use third-party utilities that offer more flexibility, such as turning off battery power, geolocation, or after charging is complete.-3 tested applications:

AnnexFunctionsDoes it require ROOT?Link (Google Play)
Shutdown TimerCountdown timer, schedule shutdown, widget❌ No.Download
Power OffTime/charge switching off, Tasker support❌ No.Download
MacroDroidCreating macros with triggers (time, charge, Wi-Fi connection)❌ No (but there are extended functions with the ROOT)Download

To install any applications from this list:

  1. Download APK or install from Google Play.
  2. Grant permissions for Special Access (in the security settings).
  3. Set the timer or macro according to the instructions in the application.
  4. Add the app to the AutoRun list and No battery restrictions.

⚠️ Note: Auto-disable applications may conflict with Google Play Protection if they request administrator rights.If a malware warning appears after installation, check the hash APK VirusTotal.

Shutdown Timer (simple and free)|Power Off (Tasker-enabled)|MacroDroid (maximum flexibility)|I won't use third-party apps-->

Method 4: Auto-Disconnection via ADB (for technical users)

If you're familiar with Android Debug Bridge (ADB), you can configure to turn off your phone via the command line, which is suitable for devices with an unlocked bootloader or for automation on multiple smartphones (for example, in the office), the advantage is that you don't need ROOT, but you need minimal knowledge of how to work with the console.

Step-by-step:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Return to Settings β†’ Additional β†’ For developers and enable USB debugging.
  3. Connect your phone to your PC, install ADB Tools, and execute the command: adb devices (you should display your device).
  4. Turning off the phone through 30 Please enter adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN --ez delay 1800 (where 1800 β€” time-in-second).

The only way to set up auto-disconnection on schedule through ADB is to create a script on a PC that will send a command at the right time (for example, through the Windows task scheduler), which is relevant for administrators who manage the device fleet.

Example of a bat script for auto-disconnection on a schedule
@echo off adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN --ez delay 0 Save the file as exit shutdown.bat Add it to the Windows scheduler for the right time.

Method 5: Auto-disconnect via Bixby/Routine (for hybrid solutions)

If your Xiaomi supports Google Assistant or Mi AI, you can set up an automation routine that will turn off your phone by voice command or time, which is suitable for devices with MIUI 13+ and Google Assistant installed.

How to set up:

  • 🎀 Open Google Assistant and go to the Roots.
  • πŸ•°οΈ Create a new routine with a time trigger.
  • πŸ“± In actions, select Device Management β†’ Turn it off.
  • βœ… Keep and activate routine.

Limitation: Not all Xiaomi models handle the shutdown command correctly through the Assistant. If the feature doesn't work, try the alternative - create a routine that opens the shutdown menu (Open Power Panel command) and then the phone will manually shut down after a timeout.

Comparison of methods: which way to choose?

To determine the best option, we evaluate each method according to the key criteria:

CriteriaMIUI PlannerDo not disturb mode.Party of annexADBGoogle Routine
Reliability⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
Flexibility of settings⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
Does it require ROOT?❌ No.❌ No.❌ No (except for extended functions)❌ No.❌ No.
Suitable for beginnersβœ… Yes.βœ… Yes.⚠️ Partially.❌ No.βœ… Yes.

Selection recommendations:

  • πŸ† For most users, the planner MIUI (simple and secure).
  • πŸ”§ For geeks β€” ADB MacroDroid (maximum control).
  • πŸŒ™ For sleep mode - the combination "Do not disturb" + Planner.
  • πŸ€– For automation, Google Routine (if supported).

πŸ’‘

If you need to turn off your phone at one time every day, use a regular scheduler. If you need flexibility (such as turning off when you’re low charge or connecting to Wi-Fi), install MacroDroid.

Frequent problems and their solutions

Even after you set it up properly, auto-disconnection may not work, and let's look at the typical causes and ways to fix them:

  • ⚑ Phone does not turn off at the appointed time: Check if the scheduler is disabled in Settings β†’ Annexes β†’ Autostart control. Make sure the device is not in Power Saving mode (it can block background tasks).Reboot the phone - sometimes resetting time errors helps MIUI.
  • πŸ”‹ Auto-disconnect works, but the phone immediately turns on: Turn off Auto-Reboot in the developer settings. Check if the phone is connected to charging (some models turn on when the power is connected).
  • πŸ“± Auto-Switching App Not Working: Add It to Battery Optimization Exceptions (Settings) β†’ Battery β†’ Battery optimization: Provide all requested permits, including Special Access.

⚠️ Note: On devices with HyperOS (new firmware from Xiaomi), the layout of the scheduler may differ. If you do not find a section, update the firmware to the latest version or search for settings with the keyword β€œplanner".

Can you set up auto-disconnection on Xiaomi without installing apps?
Yes, MIUI has a built-in Task Planner that allows you to turn off your phone on a schedule, and you can also use time-referenced Do Not Disturb mode (see Method 2).
Why is the auto-disconnection not working on my Redmi Note 11?
On the Redmi Note 11 (and other models with MIUI 13), a common problem is locking the scheduler with the battery optimizer. Solution: Go to Settings β†’ Battery β†’ Battery Optimization. Find the Settings app (or Planner) and select No Limits. Restart the phone. If it doesn't work, upgrade your firmware to the latest version.
How to cancel the planned auto-disconnection?
To cancel the task: For MIUI Planner: go to Settings β†’ Additional β†’ Planner and delete or disable the task. For third-party applications: open the application and deactivate the timer. For ADB: if the command has already been sent, you can cancel it only by restarting the phone (the shutdown command is performed in the background).
Is there a risk of damaging your phone when using ADB to auto-disconnect?
No, team am broadcast. -a android.intent.action.ACTION_SHUTDOWN It just initiates a standard phone shutdown, as if you pressed the power button. USB When executing a command, do not use undocumented ADB-For some custom firmware, the command may not work because of the changed permissions. ADB Tools by Google.
Can I set up auto-disconnection according to the battery level?
Staffing resources MIUI β€” No. But you can do it with applications: MacroDroid: create a macro with a trigger called "Battery Charge Level." < X%" and "Switch off the device. Automate": use the "Battery level" block" + "Shutdown device". ⚠️ Attention: With a low charge (less than 15%), the phone may turn off spontaneously before the timer is triggered%.