How to set up automatic shutdown of Xiaomi phone at night: the complete guide

Are you tired of the late-night notifications that wake you up in the middle of your sleep? Or want to save battery power by turning off your smartphone during non-working hours? Xiaomi has a built-in automatic shutdown feature on a schedule — but it’s not easy to find. In this article, we’ll look at all the ways to set up automatic shutdowns on Redmi, POCO and Mi phones (including the 2026 models), and also explain how to bypass the limitations of MIUI if the standard method doesn’t work.

Controlling the battery life is not just a matter of convenience, but also a matter of extending the battery life. Studies show that regularly turning off a smartphone for 6-8 hours a day reduces battery degradation by 15-20% per year, and protects against nighttime spam, accidental tapping (such as when the phone is lying next to the pillow), and even potential hacker attacks through vulnerabilities in the background.

Important: Auto-Switch Off is not available on all versions of MIUI. If you don’t have the right item on your menu, don’t worry: we’ll provide alternative methods, including using third-party apps and hidden commands for power users.

Method 1: Standard settings through MIUI's "Sleep Mode"

Starting with MIUI 12 (and all subsequent versions up to MIUI 14), Xiaomi has a built-in tool for managing device time, Sleep Mode, which not only turns off the phone, but can also limit notifications, darken the screen and block access to applications at specified hours.

  1. Open Settings → Screen → Sleep mode (on some models, the path may differ: Settings → Display → Sleep schedule).
  2. Activate the switch "Enable sleep mode".
  3. Click Schedule Setting and select “Device Shutdown” (if no option is available, see alternative methods).
  4. Specify the time of the beginning and end of sleep (for example, from 23:00 to 07:00).
  5. Save the changes and restart the phone to apply the settings.

⚠️ Note: Some firmware (especially global versions) MIUI Europe: The option to turn off the device may be hidden, in which case, try changing the region in your phone settings to India or China (see How to unlock hidden features»).

Make sure your phone is at least 30% charged.

Disable VPN (can block system settings)

Check the version of MIUI in Settings → About the phone

Backup important data (in case of failure)-->

If the phone does not turn off automatically after setting up, check:

  • 🔄 System Updates: Go to Settings → The phone. → Update MIUI and install the latest patches.
  • 🛠️ Conflicting applications: Some programs (such as Greenify or Tasker) may block system processes.
  • ⚡ Energy saving: Turn off the settings → Battery → Supersaving if it is active.

Method 2: Alternative methods for older versions of MIUI

If your Xiaomi is running MIUI 11 or earlier, there may not be a standard “Sleep Mode” in which case, use one of the following methods:

Method A: Appendix "Automatic Shutdown"

Download the "Auto Shutdown" or "Power Off" app from Google Play (proven options for Xiaomi), which require ADB or root rights, but work consistently.

  1. Install the application and open it.
  2. Select Schedule Power Off and specify the time.
  3. Confirm permission for special access in Android settings (Settings → Applications → Special Access → Automatic Shutdown).
  4. Reboot the phone.

Method B: Commands through ADB (for Advanced)

If you're familiar with Android Debug Bridge (ADB), you can schedule a shutdown through your console. Connect your phone to your PC and do:

adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN --ez no_confirm true --ei delay 0

To automate the process, create a.bat file with the command and set it up to run on schedule through the Windows Task Planner.

MIUI 14 (2023-2026)

MIUI 12/13 (2021-2022)

MIUI 11 or older

I don't know.

Other firmware (LineageOS, Pixel Experience, etc.)-->

⚠️ Attention: Use ADB or root may cause you to lose warranty on Xiaomi devices.Before experimenting, make a backup through Settings → Additionally. → Backup and reset.

Method 3: Unlocking Hidden Functions Through Region Shifting

In some regional versions of MIUI (e.g. Europe or Russia), the automatic shutdown function is hidden, and to activate it, you can temporarily change the region of the system:

  1. Go to Settings → Additional → Language and Region.
  2. Select India region (this version of MIUI has more system tools).
  3. Reboot the phone.
  4. Check the availability of the item “Schedule Shutdown” in Settings → Screen.

After setting up, you can return the previous region - the function will remain active.

MIUI RegionIs the shutdown function available?Notes
India✅ Yes.Maximum of system tools
China✅ Yes, but you need rights)Requires a Mi Account with a Chinese number
Europe/Russia❌ No (or hidden)You can unlock it through ADB.
Global (Global)⚠️ Partially.Depends on the model (on POCO there is usually a POCO).

💡

If after changing the region the phone began to “glutch” (for example, some applications disappeared), return the previous settings and clear the cache through Settings → Storage → Clear the cache.

Frequent mistakes and how to fix them

Even after you set it right, the automatic shutdown may not work, and here are the most common reasons and solutions.

  • 🔋 Low battery charge: If the charge level is below 15%, MIUI Solution: Connect your phone to charge or turn off the restriction in Settings. → Battery → Battery settings.
  • 📱 Active processes: If you download files, update or call when you turn off, the system will cancel the command. Solution: check background tasks in Settings → Annexes → Launched.
  • 🔒 Device Administrator Blocking: Some applications (e.g., Find My Device or Enterprise Device) MDM) Solution: temporarily disable admin rights for these programs.

If the phone turns off but doesn’t turn back on schedule, check:

  • ⏰ Alarm Settings: They May Conflict with the Shutdown Schedule.
  • 🔌 Power supply: If the phone was connected to charging, it could go to Charge Off mode (turn off this option in Settings). → Battery).
What to do if the phone is stuck when you turn off?
If Xiaomi does not respond to the power button after automatically turning off, perform a forced reboot: 1. Press the Power Button + Volume Up for 10-15 seconds. 2. If it does not help, plug in to charge and try again. 3. In extreme cases, use Fastboot (fastboot reboot via PC). After rebooting, check the error logs in Settings → About Phone → Error Log.

How do you check if the shutdown will work?

To make sure that the setting is applied correctly, perform the test:

  1. Set the time off 1-2 minutes later than the current one.
  2. Close all applications and leave your phone idle.
  3. Wait until the time is set. If the screen is gone and the phone is not responding to the presses, the function works.

If the test fails:

  • 📱 Check the event log through the Logcat app (available on Google Play).Look for errors with the PowerManager tag.
  • 🔧 Reset the settings to factory (Settings) → Additionally. → Reset settings), but save data beforehand.

💡

On POCO F5, Redmi Note 12 and later, the automatic shutdown function is the most stable – thanks to the optimized firmware HyperOS (the successor to MIUI).

Security: What to Know Before Setup

Automatic shutdown is a useful feature, but it has nuances:

⚠️ Warning: If you use your phone as an alarm clock, make sure it gets on before you wake up. On some Xiaomi models, the alarm clock may not work after you turn off on schedule. Set a third-party alarm app (e.g. Sleep as Android) with the “Wake up device” function».

Also consider:

  • 📡 Updates by air (OTA): If the phone is turned off at the time of the update release, it will install only after manually turning on.
  • 🔒 Two-factor authentication: If you are using SMS To confirm logins (e.g., to a bank), make sure the phone is turned on before critical messages can arrive.
  • 📱 Background tasks: Some apps (like Google Fit or Mi Band) can interrupt sleep to synchronize data.

For maximum reliability, combine automatic shutdown with Do Not Disturb mode (Settings → Sounds and Vibrations → Do Not Disturb) to turn off notifications without completely shutting down the device.

Can I set up an automatic Xiaomi phone?
The standard MIUI is not. However, some models (like the Redmi Note 10 Pro or the POCO X3 Pro) can use third-party apps like AutoStart (requires root), the alternative is a smart socket with a timer that will physically turn on/off the phone's power.
Why does Xiaomi’s phone not turn off on schedule when it’s connected to charging?
This is a feature of MIUI: when connected to a charger, the system thinks that the user is actively using the phone (for example, for overnight charging). Solution: Turn off the Settings → Battery → Charging off. Use wireless charging - this restriction does not apply to it.
How to cancel the automatic shutdown if the phone is already turned off?
If the phone is off on schedule, just turn it on with the power button — the next shutdown will only happen at a given time. To completely turn off the function: Go to Settings → Screen → Sleep Mode. Turn off the Scheduled Shutdown switch. For third-party applications (such as Auto Shutdown), delete them or unenlist Settings → Apps → Special Access.
Does automatic shutdown work on custom firmware (LineageOS, Pixel Experience)?
On most custom firmware, the built-in Xiaomi feature doesn’t work, but it can be replaced: 📱 Use the Tasker app with the Secure Settings plugin (requires root). 🔧 Configure the cron task via Termux (team: echo "shutdown") -h +1" | at 23:00). On Android-based firmware 12+ You may need to disable battery optimization for the utilities used.
Can I set different schedules for weekdays and weekends?
Yes, but only through third-party apps (like Auto Shutdown or MacroDroid) that are not available in standard MIUI Sleep Mode, the alternative being to create two separate rules in Tasker with day-of-week conditions.