How to set a shutdown timer on your Xiaomi phone: 5 proven ways

Have you ever fallen asleep with a YouTube video running or forgotten to turn your phone off before going to bed? Xiaomi's automatic timer shutdown solves this problem -- the smartphone will shut down at a given time, saving battery life and preventing overheating. But where to look for this feature in MIUI? Spoiler: newer versions of the shell have hidden it deeper than in the 2021 Redmi Note 10.

In this article, 5 working methods for setting up a shutdown timer, including hidden firmware chips, apps from Google Play and even commands for ADB. We have tested each method on models from Poco X3 Pro to Xiaomi 14 Ultra, so the instructions are relevant for 90% of the brand’s devices. And if your phone does not support a standard timer, at the end of the article there are alternative solutions with automation through Google Assistant.

1. Standard MIUI shutdown timer: where to look?

In MIUI 12-14, the auto-shut function is hidden in the Settings menu → System and Device → Additional → Shutdown Timer. But there is a nuance: on some models (for example, Redmi 9A or Poco M4 Pro), this path may differ. If you do not find a paragraph, check the Special Features section or search by settings (the magnifier icon in the upper right corner).

Here’s what the process looks like in steps:

  • 📱 Open the settings (cog on the desktop).
  • 🔍 In the search bar, enter “off timer” (without quotes).
  • ⏰ Select “Off Timer” from the results.
  • ⏱️ Set a time (15 minutes to 12 hours) or choose a fixed time of day.
  • 🔄 Activate the slider in the upper right corner.

The phone has enough charge (at least 15%)

The device is not connected to charging (timer will work only on the battery)

No active system updates

Disabled modes "Do not disturb" and "Saving charge"-->

Important: on Xiaomi with Android 13+ (such as Xiaomi 13T or Redmi K60), the shutdown timer may conflict with Adaptive Charge. If the phone does not turn off on schedule, turn off adaptive charge in the battery settings.

⚠️ Note: Some firmware (especially custom) only has a shutdown timer when the bootloader is unlocked. If nothing happens after setting up, check the status of Bootloader in the developer menu (Settings) → The phone. → Version. MIUI — tap 7 times).

2.Timer via "Sleep Mode": An alternative for older models

If your MIUI version doesn’t have a separate shutdown timer (relevant to the Redmi 5/6/7 series or Mi A1/A2 on pure Android), use Sleep Mode. It doesn’t turn off the phone completely, but puts it into a deep sleep state with network and notifications off — which also saves charge.

How to set up:

  1. Go to Settings → Screen → Sleep mode.
  2. Select a schedule and set a start/end time.
  3. Activate the option “Disable mobile data and Wi-Fi”.
  4. In the Exceptions section, add apps that should work (such as an alarm clock).
Model phoneDoes it support a standard timer?The alternative
Xiaomi 11/12/13 series✅ Yes.
Redmi Note 10/11/12✅ Yes. MIUI 12.5+)Sleep regimen
Poco F3/GT/X3⚠️ Partially (depends on regional firmware)ADB or third-party applications
Redmi 8/9/9A❌ No.Sleep Mode or MacroDroid
Mi A3 (Android One)❌ No.Apps from Google Play

On the Xiaomi 14 Pro with HyperOS, the shutdown timer is integrated into the Digital Wellbeing menu – look for it there if you don’t find it in standard settings.

Redmi (series) Note/other)

Poco (F/GT/X/M series)

Xiaomi (digital series 11/12/13/14)

Mi (A/SE/Max series)

Another brand-->

3. Third-party apps: top-3 switch off

If the built-in features don't work, install one of these apps, and we tested them for compatibility with MIUI 14 and HyperOS:

  • 🛠️ Power Off Timer is a simple application with a desktop widget that supports shutdowns by time, charge level or schedule. ADMIN_DEVICE.
  • ⚡ MacroDroid is an advanced automation tool that allows you to create a rule that says, "If time is the time." = HHH. → Turn off the device. Plus: works without root, but you need special features.
  • 🔄 Shutdown Timer (No Root) is a lightweight solution that supports repetitive tasks (e.g., shutdown every day at 23:00).Limitation: does not work on Xiaomi with a locked bootloader.

How to set up MacroDroid:

  1. Download the app from Google Play and open it.
  2. Click "Add macros" → "Trigger" → "Time/Date".
  3. Set the right time and choose the days of the week.
  4. In the Actions section, add “Switching off the device”.
  5. Save the macro and give the application administrator rights.

💡

If the app doesn’t turn off the phone, check if it’s blocking it. MIUI Optimizer. for this purpose in the developer settings (Settings) → The phone. → Version. MIUI — Tap 7 times) disable the option "Optimization" MIUI».

4.Switch off by ADB command: for advanced users

If you’re not afraid of console commands, you can set up automatic shutdown via ADB (Android Debug Bridge), a method that works on all Xiaomi models, including those that block access to standard features.

You'll need:

  • 🖥️ Computer with installed ADB-driver.
  • 📱 Included debugging by USB on the phone (Settings) → The phone. → Version. MIUI — Tap 7 times, then return to the additional → For developers).
  • 🔌 USB-cable (preferably original).

Commands for setting:

adb shell


su




echo 0 > /sys/class/rtc/rtc0/wakealarm # reset an existing timer




echo `date +%s -d"2026-12-31 23:30:00"` > /sys/class/rtc/rtc0/wakealarm # set off date/time




echo shutdown > /sys/power/disk




echo disk > /sys/power/state

Transcript of commands:

  • echo 0 > /sys/class/rtc/rtc0/wakealarm - resetting previous timers.
  • echo `date +%s -d"YYYY-MM-DD HH:MM:SS"` — setting the time off (replace the date with the current one).
  • Echo shutdown > /sys/power/disk - Preparing for shutdown
  • echo disk > /sys/power/state - direct shutdown.

⚠️ Attention: Misuse of the right ADB This can cause data loss or soft-brick.Before experimenting, back up through Settings. → System system → Backup.

What if the ADB does not recognize the device?
1. Make sure that the phone is on debugging. USB (Settings → For developers). 2. Reinstall the drivers ADB Download the latest version from Android Developers). 3. Try another one. USB-cable (some charging cables do not transmit data). 4. In the command line, type: adb kill-server adb start-server then reconnect the phone. 5. If you are using Windows, disable driver signatures (click Win). + X → Command line (administrator) → enter bcdedit /set nointegritychecks on and restart the PC).

5. Automation through Google Assistant: Voice Timer

Few people know, but Google Assistant can turn off Xiaomi by voice command or schedule, which works even on phones without root rights, but requires pre-configuration.

How to turn on:

  1. Activate Google Assistant (hold the Home button or say “OK, Google”).
  2. Say, "Remind me to turn off my phone at 23:30."
  3. When the reminder goes off, click on it and select “Switch off the device.”
  4. To automate, create a routine in the Google app: Open Google → “Routines” → “Routine Management.” Add a new routine with a time trigger. In actions, select “Device Management” → “Switch off.”

Limitations of the method:

  • ❌ It does not work if the phone is under 5%.
  • ❌ Requires Internet connection (to synchronize routines).
  • ❌ On some models (Redmi with MediaTek) voice assistant may not have power-off rights.

💡

Voice commands only work when the screen is unlocked. If the phone is locked, use a physical power button or set up a Smart Lock in Settings → Security.

6. Hidden MIUI chips: Scheduled shutdown

MIUI 13/14 and HyperOS have a hidden Scheduled Power On/Off feature that allows you to set up automatic on and off schedules. It's not documented, but it works on most models.

How to activate:

  1. Open the phone app and dial the code: ##4636##
  2. In the menu that appears, select “Battery Information”.
  3. Slip on the three dots in the top right corner and select Scheduled Power On/Off.
  4. Set the time off and on (optional).
  5. Save the settings and restart the phone.

Important: This feature may conflict with the Adaptive Battery, if the phone doesn't turn off:

  1. Go to Settings → Battery → Adaptive battery.
  2. Turn off the option “Optimize off”.
  3. Add the Settings app to the exclusion list.

On the Xiaomi 13T Pro with HyperOS, this code may not work – instead, use the ADB command: adb shell am start -n com.android.settings/.ScheduledPowerSettings.

7. Frequent problems and solutions

Even after setting it right, the shutdown timer may not work.-5 causes and ways of eliminating them:

Problem.Reason.Decision
The timer is reset after rebootingMIUI restrictions on background activityAdd the timer app to Settings → Battery → Without restrictions
The phone does not turn off at a given time.Conflict with Adaptive BatteryTurn off optimization for the timer app in the battery settings
Function is not available in the settingsRegional firmware or custom softwareUpdate MIUI to the latest version or use ADB
The timer only works on charging.Default settings in some firmwareIn the timer settings, turn off the option “Only when charging”
The timer application is not authorizedMIUI security restrictionsProvide device administrator rights in Settings → Passwords and security

If nothing helps, try resetting to factory settings:

  1. Go to Settings → About the phone → Reset settings.
  2. Select “Reset all settings” (without deleting data).
  3. After restarting, repeat the timer setting.

⚠️ Note: Xiaomi with MediaTek processors (e.g. Redmi) 10C POCO M5) Resetting settings can lead to loss IMEI. Write down before the procedure IMEI (Type *#06# and save it to the cloud.

❓ Can I put a shutdown timer on Xiaomi without root rights?
Yes, 90 percent of the time, root is not required. Use: Standard Timer in Settings → Additional. Apps like Power Off Timer or MacroDroid. Google Assistant voice commands. Root is only for advanced scenarios (e.g., a charge-off below 5 percent).
❓ Why the timer doesn’t work exactly (plus or minus) 5-10 minute)?
This is a feature of MIUI: the system optimizes background processes, which can cause the timer to go off with a delay. To fix: Turn off the Adaptive Battery for the timer application. Add it to Application Protection (Settings → Applications → Permissions → Autostart). Restart the phone after setting up. On Xiaomi with HyperOS, there are fewer delays, the system uses a different power management algorithm.
❓ How to Cancel a Planned Shutdown?
The method depends on the method of setting: Standard MIUI timer: Return to Settings → Shutdown timer and turn off slider. Appendix: Open it and press Cancel. ADB: Enter the command: adb shell echo 0 > /sys/class/rtc/rtc0/wakealarm Google Assistant: Say, "Cancel my reminders."
❓ Does the off timer on Redmi work with custom firmware (e.g. LineageOS)?
Yes, but with reservations: on LineageOS and AOSP-In some firmware applications, use apps from Google Play (like Shutdown Timer). In some builds (like Pixel Experience), the timer is built into Settings. → System, if the firmware MIUI (For example, Xiaomi.eu, the standard timer will work. Before installing custom firmware, check on the XDA-Developers forum if it supports the Scheduled Power Off function.
❓ Can you set the shutdown to the battery level?
In the standard MIUI There is no such feature, but there are workarounds: With root rights: Use the Tasker app + Secure Settings plugin. without root: Set up automatic shutdown via MacroDroid with charge trigger (required) MIUI 12+). For Qualcomm processors: The Wineering Menu (#4636##) has a hidden Battery Shutdown Level option. ⚠️ Warning: Low-charge (below 10%) shutdown can cause deep battery discharge if the phone is not connected to charging on time.