How to turn off Xiaomi phone by timer: automation and settings

Modern smartphones, especially Xiaomi devices, are often a source of constant digital noise that interferes with rest or concentration. Many users wonder how to turn off Xiaomi phone on a timer to limit the time of use of the gadget or simply save battery power at night. This feature is especially relevant for those who watch their daily routine or want to protect their eyes from blue light before bed. Automatic shutdown is not just a convenience, but a way to extend the life of the battery.

MIUI and the new HyperOS have built-in power management mechanisms, but they are not always obvious at first glance. Standard settings allow you to set a specific time to complete work, but sometimes more flexible solutions are required. The native feature allows you to turn off the device only at a strictly specified time of day daily or on selected days of the week, which may not be suitable for scenarios where you need a countdown timer. In this article, we will discuss all available methods, from standard settings to advanced automation.

It is worth noting that the approach to solving the problem can vary depending on the firmware version and model of your smartphone. For example, on the Xiaomi Redmi Note 12, the interface may be slightly different from the flagship Mi 13 or Xiaomi 14. However, the logic of system services remains the same for the entire ecosystem park of the brand. Below we will take a detailed look at how to set up a schedule, what restrictions are there and how to circumvent them using third-party tools.

Standard function of the on and off schedule

The most reliable and secure way to complete a smartphone at a given time is to use the built-in system scheduler. This method does not require additional software installation and works at the kernel level. To access this option, you need to go to the settings menu. Usually the path is: Settings → Battery and Performance or Settings → Additional features, depending on the version of MIUI.

Inside the menu, you need to find a item that might be called "Tasks Schedule", "Off/Off" or "Out-Off" where the user can activate the switch and select a specific time, the system timer works even if the smartphone is in flight mode, because it is tied to the system clock real time, which ensures that the device will turn off exactly when you planned.

⚠️ Note: If you set a shutdown time, for example, at 23:00, and at 22:59 start a heavy game or boot process, the phone will forcibly terminate all processes and turn off.

It is important to understand the difference between turning off the countdown timer (for example, “after 1 hour”) and turning off on a schedule (for example, “every day at 23:00”). Xiaomi standard tools implemented the second option. The first option requires the use of third-party solutions, which will be discussed below. For most users who want to limit screen time, it is enough to set up a profile for weekdays.

📊 How often do you forget to turn off your phone at night?
Every night.
Only on weekends.
I rarely forget.
Never turn it off.

Step-by-step instruction for activating the timer

For those who are first-time users of MIUI, the setup process may seem obscure due to the abundance of ad units and additional options. Let's break down the algorithm in detail. First, open the Security app (green shield icon), which is pre-installed on all the brand's devices. In the lower right corner, find the battery icon or go straight to the settings through the main menu.

Follow the instructions:

  • 🔋 Find the Battery section and click on the three dots in the top right corner of the menu.
  • ⏰ Select the “Scheduled Tasks” option).
  • 📅 Activate the switch "On and off on schedule».
  • ⚙️ Set your desired shutdown time and select the days of the week to repeat.

After these actions are completed, the system will automatically initiate the shutdown procedure, so that the phone does not have to be completely discharged to function. If the battery is critically low, the system may ignore the command or shut down ahead of time in power saving mode. Also make sure that the alarm is set for a time after the planned turn on, if you want the phone to wake up in the morning.

☑️ Checking before setting up

Done: 0 / 1

Some users may notice that after switching off, the phone does not turn on itself in the morning, even if the function is activated. This is due to the peculiarities of the power modules on different models. On some devices, such as the Poco F5 or Redmi Note 13, you may need to activate the autostart function separately in the same menu.

Using the Digital Well-Being App

If your goal is not to shut down power completely, but to limit smartphone use to improve sleep or productivity, the Digital Wellbeing app is a better fit, allowing you to set up a “Sleep” or “Do Not Disturb” mode that effectively turns your phone into a “brick” for a given time, blocking notifications and restricting access to apps.

To set up, go to Settings → Digital Well-Being and Parental Control. Here you will find the Sleep Mode or Rest Time tool. Sleep mode doesn’t turn off the phone physically, but makes it meaningless: the screen turns black and white, all notifications are hidden, and calls can be banned (except for selected contacts).

FunctionTotal shutdownSleeping (Digital Wellbeing)Countdown timer
Energy consumption0% (phone off)Low (screen goes out)Depends on the action.
Calling abilityNo.Yes (if not in DND)Yes.
The alarm clock's workOnly if there's an auto-onYes.Yes.
Difficulty setting upMediumLow.Tall.

Using software constraints is often perceived by users as a less radical but more useful step: You can set it up automatically by geolocation (when you get home) or by time, which creates a psychological barrier to distraction from the gadget without losing touch with the outside world in case of an emergency.

Automation through MacroDroid application

For users who need a countdown timer feature (like “turn off after 30 minutes”), Xiaomi’s standard tools are not enough. Automation apps like MacroDroid or Tasker come to the rescue. These tools allow you to create complex scenarios that go beyond the manufacturer’s standard logic. MacroDroid is considered more beginner friendly due to its user-friendly interface.

To create a shutdown scenario:

  • 📲 Download and install MacroDroid from Google Play Store.
  • ➕ Click on Add Macros and select a trigger (e.g., Countdown Timer»).
  • ⚡ In action, select "Device» → «Turn off the device».
  • ✅ Save the macro and provide the necessary access rights (ADB rat).

⚠️ Note: To execute a shutdown command without user confirmation, the application may need extended permissions (ADB), Without root rights, the system can request confirmation before turning off, which would negate the effect of "automation».

The advantage of this method is flexibility. You can set up to turn off your phone when the charge level drops below a certain percentage, or when you connect to a specific Wi-Fi network. However, it is worth considering that aggressive battery optimization in MIUI can kill the automation process. To avoid this, find the MacroDroid application in the list of running processes, click on the lock (lock) and allow auto-start in the battery settings.

Do you need Root rights to automatically shut down?
Yes, completely seamless shutdowns without confirmation pop-ups often require root rights or use. ADB-Without them, the Android security system will ask the user every time he really wants to turn off the device.

Features of work in different versions of MIUI and HyperOS

The interface of the MIUI shell is constantly changing, and the location of features can vary. In older versions (MIUI 11, 12), the scheduler function was often hidden in the Battery section. In newer versions, including HyperOS, Xiaomi is striving for unification, but sometimes hides the good old features deeper. If you can't find the "Planned Tasks", try searching by settings.

Type the phrase “timer” or “timer” into your settings search bar, and the system will prompt you to go to the desired section, which works faster than wandering through the menu, and it is worth considering that on global versions of firmware (Global ROM), some functions may be missing or called differently than in the Chinese versions (CN ROM).

Owners of HyperOS devices should look for new widgets. The updated interface has smart widgets that can display the status of timers or allow you to quickly activate sleep modes, although direct control of power out via the widget is not yet implemented.

💡

Use a Settings Search (a magnifier at the top of the Settings screen) by entering “off” or “scheduling” to instantly find the item you want, regardless of your firmware version.

Problems and solutions

Despite the simplicity of the function, users can face a number of problems, the most common is that the phone does not turn off at a given time, most often because the phone is busy with some process at the time of the turn off time, or there is an open dialog box that requires attention, and the system cannot complete the work until it receives a response from the user or application.

Another common problem is that the phone turns off but doesn't turn on in the morning, which can be caused by an RTC (real-time hours) failure or battery drain below critical level during downtime, and check if you have an "Ultra-Energy Saving Mode" installed that can block background tasks, including the scheduler.

If nothing works, try resetting your date and time settings or upgrading to the latest available version, and in rare cases, cleaning the Settings app cache through the Recovery Mode menu helps, but this requires caution.

💡

The stable operation of the shutdown timer depends not only on the settings of the software, but also on the state of the battery and the absence of blocking processes at the time of operation.

Can I turn off the Xiaomi phone with a voice command?
You can't directly do "Switch off the phone" with a standard Google Assistant or Xiao AI, for security reasons, but you can create a script in an automation application that will be triggered by a voice command, "OK Google, it's time to sleep," and that script will initiate a shutdown.
Does the timer shutdown affect the alarm clock?
If the phone is completely off programmatically, the standard alarm will not work unless the automatic activation function is configured. Make sure that the on/off schedule menu activates the on time that is ahead of the alarm clock.
Is it safe to turn off your smartphone on a schedule?
Yes, it is safe for modern smartphones. On the contrary, it can be useful for resetting RAM and stopping background processes that could “hang”. However, frequent full reboot (every day) puts a load on (memory), so it is optimal to do this 2-3 times a week or as needed.