You go to bed and forget to turn off your phone β and it keeps buzzing with notifications until morning? Or you want to limit your child's time to use it without manual control? The automatic shutdown feature on Xiaomi smartphones solves these problems, but not everyone knows where to look. In this article, we will examine all the available methods, from standard MIUI tools to hidden features and third-party applications.
It's important to understand that not all Xiaomi models support this feature out of the box. For example, in budget devices (Redmi 9A, Poco C31), the option may be missing, while flagships (Xiaomi 13 Ultra, Mix Fold 3) offer advanced settings. We tested all methods on current versions of MIUI 14/15 and highlighted those that work stably. If your phone does not support built-in auto-out, no problem: there are workarounds in the article.
1. Standard auto-shutdown via MIUI settings
The most obvious way is to use the built-in AutoSwitch-off feature in the MIUI menu, which is available on most models starting with the MIUI 12, but the path to it may vary depending on the firmware version.
- Open the settings (cog icon on the desktop).
- Go to the Special Features section (in some versions β Additional or System and Device).
- Choose Auto Shutdown or Sleep Timer (name varies).
- Activate the slider and set the time off.
If you donβt have AutoSwitch Off on your menu, try an alternative route:
- π Settings β Battery and productivity β Schedule
- π Settings β Screen. β Sleep timer (on some Redmi Notes)
- π Use the search by settings (laptop of the screen) and enter "Switch off".
π‘
If the feature is missing, upgrade to the latest version of MIUI. In older builds (up to MIUI 11), auto-turndown is often hidden.
Limitations of the method:
- β° It works only once a day β you can not set several time points.
- π After switching off, the phone will not turn on automatically (you need to press the power button).
- π΅ It does not work if the device is connected to charging (on some models).
2. Auto-switch off via Do Not Disturb mode
If your firmware doesnβt have a separate auto-switch option, you can emulate it with Do Not Disturb (DND) Mode and automatic screen shutdown, a technique that is suitable for Xiaomi models that lack a built-in sleep timer, such as the Redmi 8 or Poco X3 NFC.
Instructions:
- Set Do Not Disturb Mode on a schedule: Go to Settings β Sounds and Vibrations β Do Not Disturb. Select a schedule and set a time (e.g. 23:00 to 7:00). Activate the option to Turn off all sounds.
- In Settings β Screen β Screen timeout, select the minimum value (15 seconds).
- In Settings β Battery β Sleep mode turn on Deep Sleep.
π Check the Android version (some utilities don't work on Android 12)+)
π Disable battery optimization for the application (Settings) β Annexes β Permits β Optimizing the battery)
π Provide all permissions requested (especially "Device Administration")
π Test at short intervals (for example, after 5 minutes)
-->
Attention, auto-switching applications may conflict with MIUI protection, if the timer does not work:
- π‘οΈ Add the app to Battery Optimization Exceptions.
- π Disable Privacy Protection for the utility (in the security settings).
- π Restart the phone after installation.
4. Auto-switched off through ADB-Teams (for advanced teams)
If you are not afraid of the command line, you can configure auto-switch through ADB (Android Debug Bridge β This method works for all Xiaomi models, but requires a computer connection, and it works even on non-root and older versions. MIUI.
Instructions:
- Turn on Developer Mode: Go to Settings β About Phone. 7 times click on the MIUI Version until the notification βYou are a developerβ appears.
USB debugging
- Back to Settings β Additionally. β For developers.
- Turn on the debugging slider over USB.
- Connect your phone to your PC and execute the command: adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN To set a specific time, use: adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN --ez delay 3600 (where 3600 β time-off).
Critical detail: once the ADB command is executed, the phone will turn off without further confirmation.
Standard settings of MIUI
Party of annex
ADB-team
Do not disturb mode.
Another option-->
To automate the process, you can create a.bat file on a PC with the right command and run it on schedule through the Windows Task Planner.
@echo off
adb shell am broadcast -a android.intent.action.ACTION_SHUTDOWN --ez delay 7200
exitThis script will turn off the phone 2 hours (7200 seconds) after launch.
5. Hidden MIUI features: Auto-off-event
MIUI has little-known features that allow you to turn off your phone not only by time, but also by events, such as setting up automatic shutdowns when you:
- π Connection/disconnection of charging
- πΆ Loss of network (transition to "In the plane" mode")
- π΄ Achieving a critical battery level
How it works:
- Install the Automation app (built into MIUI or download from AppGallery).
- Create a new automation: Condition: Battery charge β€ 5%. Action: Turn off the device.
Save the rule and activate it.
Similarly, you can configure a shutdown when you connect to a specific Wi-Fi network (for example, when the phone connects to a home router at night).
- Condition: Connected to Wi-Fi [your network name].
- Action: Turn off the device in 30 minutes.
π‘
Automation through the built-in Automation app is the most reliable way, as it does not require third-party utilities and works even when optimizing the battery.
6.Switching off for children: parental controls
If you want to limit your child's phone use time, a standard auto-shutdown doesn't work -- it doesn't block the on, and that's where Child-friendly mode or specialty apps like Google Family Link can help.
How to set up through Family Link:
- Install Family Link on your phone and your childβs phone.
- Create a Google account for your child (if you donβt have one).
- In the application settings, select Time Management β Use limit.
- Set a schedule (for example, from 21:00 to 7:00 the phone will be locked).
- Activate the option to lock the device after the time has elapsed.
The alternative is the mode for children in MIUI:
- Go to Settings β Special Opportunities β Mode for children.
- Set up your password and time limits.
- Select the apps that will be available (for example, only "Calls" and "Clocks").
Attention! A child can bypass the lock by restarting the phone in safe mode or resetting the settings.
β οΈ Block access to Settings and Safe Mode: Set a password for Settings (in some firmware) MIUI There's an option. Turn off Safe Mode through ADB-Adb shell settings put global safe_mode_enabled 0 Hide the notification panel (so that the child can not turn off) Wi-Fi/Mobile data and resetting restrictions).
7. Frequent problems and their solutions
Even after setting it right, the auto-shutdown may not work.-5 causes and ways of eliminating them:
| Problem. | Reason. | Decision |
|---|---|---|
| Timer doesn't work. | Battery optimization blocks the application | Add utility to exceptions (Settings β Applications β Permissions β Battery Optimization) |
| The phone does not turn off when connected to charging | Default settings in MIUI | Turn off the option Do not turn off when charging in auto-off settings |
| After switching off the phone immediately switches on. | Auto-inclusion function is active (on some models) | Turn it off in Settings β System β Schedule |
| The app requires root | An outdated version of the utility | Update the app or use an alternative (e.g. MacroDroid) |
| ADB-team is not working | Not enabled debugging on USB or no drivers | Check the connection (adb devices) and install the Xiaomi drivers |
If none of these methods worked, try an alternative approach:
- π Use a smart timer outlet (such as Xiaomi Mi Smart Plug) β it will turn off the phone power at a given time.
- π± Buy a second. SIM-card with a limited tariff and set up automatic disconnection of the mobile network on the main SIM.
- β³ Set your alarm to turn off (some Xiaomi models support delayed shutdown via the standard Watch app").