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:
- Go to Settings → Screen → Sleep mode.
- Select a schedule and set a start/end time.
- Activate the option “Disable mobile data and Wi-Fi”.
- In the Exceptions section, add apps that should work (such as an alarm clock).
| Model phone | Does 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:
- Download the app from Google Play and open it.
- Click "Add macros" → "Trigger" → "Time/Date".
- Set the right time and choose the days of the week.
- In the Actions section, add “Switching off the device”.
- 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/stateTranscript 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?
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:
- Activate Google Assistant (hold the Home button or say “OK, Google”).
- Say, "Remind me to turn off my phone at 23:30."
- When the reminder goes off, click on it and select “Switch off the device.”
- 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:
- Open the phone app and dial the code: ##4636##
- In the menu that appears, select “Battery Information”.
- Slip on the three dots in the top right corner and select Scheduled Power On/Off.
- Set the time off and on (optional).
- Save the settings and restart the phone.
Important: This feature may conflict with the Adaptive Battery, if the phone doesn't turn off:
- Go to Settings → Battery → Adaptive battery.
- Turn off the option “Optimize off”.
- 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 rebooting | MIUI restrictions on background activity | Add the timer app to Settings → Battery → Without restrictions |
| The phone does not turn off at a given time. | Conflict with Adaptive Battery | Turn off optimization for the timer app in the battery settings |
| Function is not available in the settings | Regional firmware or custom software | Update MIUI to the latest version or use ADB |
| The timer only works on charging. | Default settings in some firmware | In the timer settings, turn off the option “Only when charging” |
| The timer application is not authorized | MIUI security restrictions | Provide device administrator rights in Settings → Passwords and security |
If nothing helps, try resetting to factory settings:
- Go to Settings → About the phone → Reset settings.
- Select “Reset all settings” (without deleting data).
- 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.