How to set a timer on a Xiaomi TV: turn off, sleep and auto-on

Xiaomi TVs based on Android TV PatchWall offers flexible timer settings, from simple time-offs to complex auto-only scenarios, but finding these features is not always intuitive, depending on the model. TV 4S, Mi TV Q1, Mi TV A Pro) and menu firmware versions may vary. In this article, we will discuss all ways to set the timer, from basic to hidden, including solutions for cases when the standard settings do not work.

Xiaomi TVs are a feature that combines the capabilities of Google TV (And in new models, we're going to show you how to avoid these kinds of conflicts and how to set things up properly, for example, the PatchWall sleep timer might conflict with the Android system shutdown timer. Also consider alternative methods – from voice commands Google Assistant to third-party apps from the Play Market.

What timers are available on Xiaomi TV

Xiaomi TVs support three types of timers, each of which solves its own tasks:

  • ⏱️ Shutdown timer – turns off the TV after a set period of time (10 minutes to 4 hours) useful for saving electricity or if you fall asleep while watching a movie.
  • πŸŒ™ Sleep timer – smoothly reduces brightness and sound before turning off. Available only in the PatchWall shell (on models for China and global with firmware) MIUI TV).
  • ⏰ Auto-on – starts the TV at a set time (for example, for alarm clock or broadcast recording) Requires a connection to a 220V network (does not work from the computer). USB-port).

It is important to understand that the sleep timer and auto-on may not be available on European versions of TVs due to certification restrictions, in which case a workaround through third-party apps or changing the region in settings will help (but this can lead to a loss of warranty).

Timer typeSupported modelsLimitationsDoes he need the Internet?
Timer of shutdownAll models (Mi) TV 4A, 4S, Q1, A Pro and others.)Maximum 4 hoursNo.
Sleep timerOnly with the shell PatchWall (China, global with the MIUI TV)Does not work with an active screensaverNo.
Auto-inclusionMi TV Q1/Q2, A Pro (supported) RTC-module)It requires a connection to the outlet, does not work from USBYes (for time synchronization)

⚠️ Attention: On Xiaomi TVs with Android firmware TV 11+ (Like Mi. TV Q2 2023) a standard shutdown timer can be reset after restarting.This is a system bug that is fixed by upgrading to version 1.8.62 and higher.

How to set a timer off through the settings menu

The most reliable way is to use the built-in Android feature TV. It works on all models, including the Mi. TV 4A (2018) and newer. Instructions:

  1. On the remote, press the Settings button (cogs) or go to Settings. β†’ All settings.
  2. Select the Device and Preferences section β†’ Standby and meals.
  3. Scroll to Timer off point and press OK.
  4. Set the time from 10 minutes to 4 hours in 10 minutes increments.
  5. Confirm the choice - the timer is activated immediately.

On PatchWall models (e.g. Mi) TV Q1E) path may differ:

Settings β†’ System β†’ Timers β†’ Timer off

If the item is not in the menu, check the firmware version in Settings β†’ On the old versions of TV (MIUI TV 1.4.x) Timer is hidden – it can be enabled through the developer mode (more on this below).

Check the firmware version (Settings β†’ About TV)

Connect the remote to the TV (if using Bluetooth remote)

Disable the "Energy Saving" mode (can reset the timer)

Make sure the TV is not in Showroom Mode)-->

Sleep timer in the shell PatchWall: features of the setting

The sleep timer feature is only available on PatchWall TVs (mainly Chinese and Indian versions) and not only turns off the screen, but also smoothly reduces brightness and sound 5 minutes before the shutdown, which is useful for a comfortable sleep.

To activate:

  • πŸ“Ί On the PatchWall home screen, scroll down to the Tools section.
  • πŸ” Find the dream timer widget (crescent icon) and select it.
  • ⏲️ Set a time from 15 minutes to 2 hours (step 15 minutes).
  • 🎡 Optional: Enable the function of Smooth attenuation of sound (available not on all models).

If the widget is missing, try:

  1. Update PatchWall through Settings β†’ On TV. β†’ PatchWall Update.
  2. Reset shell settings: Settings β†’ Annexes β†’ PatchWall β†’ Warehouse β†’ Clear the data.
  3. Install India or China in your system settings (but this can disrupt some services, such as Netflix).

⚠️ Warning: PatchWall sleep timer conflicts with Android system shutdown timer TV. If you activate both, the one that was set later will work.

Shutdown timer (Android) TV)

Sleep timer (PatchWall)

Auto-inclusion

I don't use timers.-->

Auto Turning on TV: How to set the alarm

Auto-on is useful for waking up to music, running morning news or recording live streams, but it doesn’t work on all Xiaomi models. RTC-The module (real time) that is in the Mi TV Q1/Q2 mi TV A Pro.

Instructions for models with support:

  • πŸ•’ Go to Settings. β†’ Smart home. β†’ Timers and reminders.
  • πŸ”” Select Add an alarm clock and set a time.
  • πŸ“» In the Action section, specify Turn on the TV.
  • πŸ”Š Optionally: Add an app launch (e.g. YouTube Music) or playlist.

On TVs without RTC-module (e.g. Mi) TV 4S) Automatic connection can be arranged through:

  • πŸ“± Smart socket with a timer (for example, Xiaomi Mi Smart Plug).
  • πŸ€– Google Assistant with a routine of β€œOK Google, turn on the TV at 7:00” (requires Wi-Fi connection).
  • πŸ’» Script in Python using ADB (for advanced users).
How to check for availability RTC-module?
Open the Settings. β†’ On TV. β†’ The kernel version, if there's a mention in the line rtc-pcf8563 or rtc-hym8563, The absence of the module indicates the absence of the "Alarm clock" item in the timer menu.

Resetting the timer and troubleshooting

Sometimes a timer on Xiaomi TV It doesn't work correctly, because the TV turns off early, ignores settings, or resets after it's restarted:

Problem.Possible causeDecision
The timer is reset after being turned offThere's no backup power. RTC-moduleConnect the TV to an Uninterruptible Power Supply (UPS)
Timer's not activated.Conflict with the β€œEnergy Saving” regimeTurn off mode in Settings β†’ Power supply
Sleep timer is not working.Screensaver or screensaver is activeTurn off the screensavers in Settings β†’ Display and sound β†’ Screensaver

If the timer stopped working after the firmware update:

  1. Reset the TV settings to factory settings (Settings) β†’ Device and preferences β†’ Reset).
  2. Reverse to the previous version of the software through the recovery mode (requires) USB-firmware).
  3. Contact Xiaomi with system logs (you can get them through Settings) β†’ On TV. β†’ Error report).

πŸ’‘

If the timer is triggered too early, check the Auto Sleep Switch settings in the Settings section. β†’ Display and sound. Sometimes the TV turns off because of inactivity, not the timer.

Alternative methods: applications and voice commands

If the built-in timers don't work, you can use third-party solutions.

  • ⏳ Sleep Timer app (available in Play Market for Android) TV). Allows you to set the shutdown time after the end of the film or through a set number of episodes.
  • 🎀 Google Assistant. Commands: "OK Google, turn off the TV in 30 minutes" "OK Google, set the alarm for 7:30 and turn on the TV" Requires you to connect your Google account and your remote microphone on the device.
  • πŸ“± The Mi Home app, for TVs connected to Xiaomi’s ecosystem, allows you to remotely control timers.

For applications from the Play Market, it is important:

  • Before installing, check compatibility with your TV model (as indicated in the application description).
  • Some applications require permission ADB background.
  • Avoid programs with suspicious permissions (such as accessing contacts or accessing a user’s account) SMS).

πŸ’‘

Voice commands via Google Assistant are the most versatile way, but require a stable Internet connection. Offline, only built-in timers work.

Advanced settings: ADB and developer mode

For power users who need flexible settings (e.g. 8-hour timer)+ hours or automatically enable a specific application, will fit the control through ADB (Android Debug Bridge requires activation of developer mode:

  1. Go to Settings. β†’ On TV.
  2. Find the Build Number and click on it 7 times in a row (the notification β€œYou became a developer” will appear).
  3. Go back to the main settings menu and open a new section for developers.
  4. Activate Debugging on ADB and Debugging over the network.

Examples of commands for managing a timer through ADB:

Set a shutdown timer for 60 minutes (3600 seconds)


adb shell am start -a android.intent.action.SHUTDOWN_TIMER -e delay 3600




Cancel off timer



adb shell am start -a android.intent.action.CANCEL_SHUTDOWN_TIMER




Turn on the TV at 7:00 (root required)



adb shell am start -a com.xiaomi.mitv.poweron -e time "07:00"

⚠️ Attention: Use ADB-commands to control power may cause system failure if the TV is in update or diagnostic mode.Do not apply commands during firmware or equipment testing.

You can create a Python script for automation, or use Tasker (if the TV is rooted), such as a script for turning on the TV at 18:00 a.m. every day:

import os


from datetime import datetime





target_time = "18:00"




while True:




if datetime.now().strftime("%H:%M") == target_time:




os.system("adb shell input keyevent KEYCODE_POWER")




break

FAQ: Frequent questions about timers on Xiaomi TV

Can I put a timer on the shutdown in 5 minutes? The standard menu only allows for 10 minutes.
Yes, but not through the standard settings. Install Sleep Timer for Android TV" Play Market – It supports intervals from 1 The alternative is to use the command. ADB: adb shell am start -a android.intent.action.SHUTDOWN_TIMER -e delay 300 where 300 β€” seconds (5 minute).
After the firmware update, the sleep timer was gone.
It's a well-known versioning problem. MIUI TV 3.0+. Solutions: Reverse to the previous firmware through the recaveri (instructions on the forum) 4PDA). Set the region of India in settings (Settings) β†’ Language and region, then restart the TV. Use the alternative, the Sleep as Android app (requires root or root). ADB).
Xiaomi TV doesn't turn on on the timer, although the function is activated. What's the matter?
The problem is typical for models without RTC-module (e.g. Mi) TV 4A). Check if the TV is connected to the outlet (not through the USB-Do you have the option to start quickly in Settings? β†’ Power: Is there a conflict with a smart socket (if used) if nothing helps, use an external timer (e.g. Xiaomi's smart socket with auto-on).
How to cancel the set shutdown timer?
Methods depending on the type of timer: Standard Android timer TV: Go to Settings. β†’ Standby and meals β†’ Shutdown timer and select Cancel.Sleeptimer PatchWall: Click on the timer widget on the home screen and select Cancel.Timer via ADB: Execute Adb shell am start command -a android.intent.action.CANCEL_SHUTDOWN_TIMER.
Can I set the timer to turn on a particular channel or application?
Yes, but with limitations: Google Assistant allows you to create a routine: "OK Google, turn on the TV and start Netflix at 20:00." On PatchWall models, the auto-enabled timer has the option to launch the app. The channels will require an app "TV Bro" or "TiviMate" with scheduler support. Please note that automatic application launch may not work if the TV is connected via a network. HDMI-CEC Other techniques (e.g., sound panels).