How to put a timer on Xiaomi: the complete guide

Many Xiaomi, Redmi and POCO users face the unfortunate situation of the standard task scheduler function disappearing from the menu, either after the MIUI shell updates or when they switch to the new HyperOS. Instead of the usual item in the settings, the only thing left is the ability to set an alarm clock, which does not solve the problem of automatically restarting or turning off the device at a given time.

In most cases, the power management tools are simply hidden from the average user, but remain accessible through system commands. Restoring access to these settings requires certain actions that can range from simple manipulations in the menu to using the ADB debugging bridge. Understanding how this mechanism works will allow you to regain control over the mode of operation of your gadget.

In this article, we will go into detail all known ways to activate a timer, we will look at both standard methods for global firmware versions, and more advanced solutions for cases where the interface does not offer the necessary options, and you will learn how to safely use system commands to enable hidden functions.

Search for standard function in MIUI and HyperOS settings

Before you resort to complex methods, you need to make sure that the function is really hidden in your region. In some localities, for example, in Russia or Ukraine, the "Planner" (or "Schedule Turning on and off") item may be in an unobvious place. Usually the path is: Settings β†’ Battery β†’ On and off on schedule. If you do not find this item, try searching by settings by typing "schedule".

It should be noted that in the latest versions of HyperOS, Xiaomi has begun actively hiding this feature in global firmware, leaving it only for the Chinese market, due to the optimization of power consumption and changing the logic of the background processes. If the search does not give results, and the Battery menu is empty, then access to the feature is software limited.

There is also a model-dependent feature. Xiaomi's flagship series often get interface updates before Redmi's budget lines, so menu layouts may vary. Check the "Special Features" section, as some older versions of MIUI have migrated the timer there as an experimental feature.

πŸ’‘

Before any changes to your system settings, make sure to back up your important data in the Mi Cloud or on your computer.

If you can't find a setup with standard tools, don't get upset. The lack of a visible switch doesn't mean you can't physically do the action. The Android system that the shell is based on keeps those capabilities at a deep level.

Activating Hidden Menus through Engineer Codes

One of the easiest ways to get a missing timer back is to use an engineering menu or code to check functionality. Type ##6484## into the dialer. This will open the CIT (Customer Interface Test) menu, where you can check the operation of various modules, but this method is not always suitable for accessing power settings.

More effective could be the use of code ##3646633##, which opens the MediaTek engineering menu (for devices running MediaTek processors), which will not help owners of devices based on Snapdragon, and in the engineering menu you need to be extremely careful, as changing unknown parameters can lead to unstable work.

πŸ“Š What a shell you have?
MIUI 12
MIUI 13
MIUI 14
HyperOS

Often users try to find code to activate "Developer Options" in hopes of finding a switch there, and turn on the developer mode by tapping the build number seven times in the About Phone section, although this won't add the timer directly, it's a necessary step for the next, more powerful method.

It’s important to understand that codes may not work on newer versions of Android for security reasons.Google and Xiaomi are gradually closing access to low-level settings through a new version of Android. USSD-So if a set of numbers does nothing or gives you an error, that's normal behavior for today's firmware.

Using ADB to turn on a timer (Basic Method)

The most reliable and versatile way to activate a shutdown timer on any Xiaomi is to use a tool. ADB (Android Debug Bridge. This method does not require superuser rights (Root) and is safe if you run the instructions exactly as instructed. You will need a computer (Windows, macOS or Linux) and USB-cable.

First, you need to prepare your smartphone. Go to Settings β†’ About Phone and click on MIUI Version or OS Version seven times to activate Developer Mode. Then go to Settings β†’ Additional Settings β†’ For Developers and turn on β€œDebugging by USB.” When you connect to your computer, confirm permission to access.

β˜‘οΈ Preparation for work with ADB

Done: 0 / 4

Once connected, open the command prompt or terminal on your computer in the folder with the ADB installed. Enter the command to check the connection:

adb devices

If you have a device that has device status on the list, you have the connection, and you have to type in a command that forces the hidden scheduler component to be activated, and the command is as follows:

adb shell am start -n com.android.settings/.Settings$PowerUsageSummaryActivity

However, a more specific command to enable the schedule function is to change the system flag.

adb shell settings put global scheduler_power_on_off 1

In some cases, you need to activate a specific action in the settings database. If previous commands did not open the menu immediately, try finding the Planner app through ADB Shell and running it directly. After completing the commands, restart your smartphone and check again the Battery or Special Opportunities section.

πŸ’‘

Using ADB is the only guaranteed way to return the timer on HyperOS global firmware, where the interface is completely trimmed.

Alternative solutions: Third-party applications

If you don't want to mess with the command line, there are alternatives in the form of apps from Google Play. Programs like Auto Scheduler or Tasker can emulate the behavior of the system timer. They don't turn off the phone hardware (which is impossible without root rights for third-party software), but they can perform actions that simulate turning off or waking the device.

Scheduling applications often require broad permissions. They can request access to power management, which in modern Android versions requires confirmation via ADB for each new session.

adb shell pm grant com.example.scheduler android.permission.REBOOT

The advantage of third-party solutions is flexibility, you can customize scenarios like turning off Wi-Fi and Bluetooth at night, turning on air mode, but leaving the alarm clock running, and this saves battery power almost as effectively as turning off completely.

⚠️ Warning: Third-party apps can't completely shut down the device the way the system timer does.The screen will go out, but background processes may remain active, causing the battery to drain overnight.

One popular solution is to use macros in MacroDroid, which allows you to create chains of action, like 23:00, do not disturb, reduce the brightness to 0%, and start the screensaver, and although the phone is formally turned on, it behaves as if it is turned off to the user.

Setup of repetitive tasks and one-time shutdown

Once you activate a function through ADB or search the menu, you'll see the scheduler interface, and you'll see that you'll have to set the settings right so that the device behaves predictably, and you can create both single tasks and repetitive cycles.

For daily use, such as for a night restart, select Repeat mode. Set shutdown times (such as 02:00 a.m.) and turn-on times (07:00 a.m.). Periodic restarts are useful for cleaning RAM and resetting suspended services.

If you need to turn off your phone once (for example, so it doesn't bother you during a movie), use "Once" mode. Remember to turn off the task after that, otherwise the phone will turn off the next day at the same time.

ParameterDescriptionRecommendation
Time offThe moment the screen goes out and the system is finishedBet on the time when you are exactly asleep
Time of inclusionThe moment of automatic start-up of the systemMake sure the battery is at least 10-15% charged.
Repeat.Days of the week to complete the taskSelect β€œDaily” for regular reboot
The sound of the alarm clockAudio signal on activationChoose a loud melody to wake up.

Pay attention to the sound settings when you turn on. If the phone is lying far away or in another room, a quiet melody may not wake you up, but you'd better choose a standard loud ringtone or vibration of maximum intensity.

Problems with the alarm clock when the phone is turned off

One of the most common questions is, "Will the alarm clock work if the phone is turned off?" On Xiaomi devices with the Mi Clock system app installed, the answer is often positive. The phone is able to turn on itself a minute before the call to make a sound.

But there are nuances: If you use a third-party alarm from Google Play, it probably won't work when the power is off. Only the system app has priority over accessing the hardware when it's off. Make sure the alarm settings have "Alarm clock with your phone off."

What to do if the alarm clock doesn’t ring?
Check if the phone is in Do Not Disturb mode with the alarm clock completely ignored, and make sure the alarm clock volume is not turned to zero, sometimes reinstalling the Clock app updates helps.

There is a risk that at a critically low battery charge, the phone will not be able to turn on the timer. Lithium-ion batteries have deep discharge protection. If the charge has fallen below 3-5%, the system can block the turn on even on schedule.

Also, consider that after updating the firmware, the timer settings may get lost. Periodically check active tasks in the scheduler, especially after major security updates or the Android version.

⚠️ Warning: Don't rely on your phone as your only alarm clock in important situations (travel, interview) and electronics can crash and your battery can run out faster than you expect.

Frequently Asked Questions (FAQ)

Why did the shutdown timer disappear after the MIUI update?
Xiaomi periodically changes the location of features or hides them depending on the region. In new versions of HyperOS, this item is often hidden and requires activation via ADB or changing the region to China (which is not recommended due to loss of functionality).
Is it safe to use ADB commands?
Yes, the commands in this article are safe. They just change the visibility flags of system functions or run standard applications. They don't delete data or make changes to the system files of the firmware.
Can I adjust the shutdown to the charge level?
Xiaomi has no such feature. To automatically shut down when a certain percentage of charge (for example, 80% or 90%) you need to use third-party automating applications such as MacroDroid or Tasker.
Does the timer work if the phone is completely discharged?
No. To have a power timer, the phone has to have a minimum charge, so if the battery is zero, the phone won't turn on itself until you put it on charge and press the power button manually.
Do you need Root rights to set up a timer?
No, ROOT-No rights required. Standard user rights and access through ADB (for hidden functions) is sufficient to manage the on and off schedule.