How to completely turn off sleep on Xiaomi devices: 5 proven ways

The sleep mode on Xiaomi devices is a useful feature to save energy, but sometimes it works too aggressively. users face situations where the screen goes out through the window. 10-30 Seconds of inactivity, interrupting video, reading or document processing, especially for Mi TVs. TV, Mi Box and Smartphones MIUI, Where sleep settings are hidden in different menu sections.

In this article, we will explore all possible ways to turn off sleep, from standard settings to hidden developer settings. You will learn how to increase the time to sleep, fully deactivate the function or bypass system limitations. Instructions are relevant for Xiaomi devices from 2020-2026, including models on Android TV 11/12 and MIUI 13/14.

Why does Xiaomiโ€™s device fall asleep too quickly?

The problem of premature screen shutdown is associated with the operation of several system mechanisms:

  • ๐Ÿ”„ Energy-saving algorithms โ€” MIUI Android TV Actively optimize battery/electricity consumption by reducing display activity time.
  • โšก Adaptive brightness โ€“ Light sensors may misinterpret conditions as โ€œinaction".
  • ๐Ÿ“ฑ Background restrictions โ€“ the system suspends inactive applications, which sometimes leads to the device falling asleep.
  • ๐Ÿ› ๏ธ Firmware from the manufacturer - in some regional versions of the software (for example, for China), sleep time is rigidly fixed.

On Xiaomi TVs, the problem often manifests itself while watching IPTV or streaming services (Netflix, YouTube), when the screen goes out after 5-10 minutes despite active playback, on smartphones - when reading books or viewing photos in the gallery.

๐Ÿ“Š What kind of Xiaomi device do you have?
Smartphone (Redmi/POCO/Mi)
Mi TV TV TV
The Mi Box/Google TV
Xiaomi tablet
Other

Method 1: Standard screen settings (for smartphones)

On Xiaomi smartphones with MIUI, the time to turn off the screen is adjusted in the display settings menu.This method works on all models from Redmi Note 8 to Xiaomi 14 Ultra:

  1. Open the Settings app (cog icon).
  2. Go to the Screen โ†’ Sleep and Lock screen section.
  3. Select the item Sleep in case of inaction.
  4. Set the maximum value of 30 minutes or Never (if available).

On some firmware (MIUI Global for Europe), the option may never be available. In this case, select 30 minutes, which is the maximum possible value.

Make sure the "Always on screen" mode is turned on" (AMOLED-model)|Turn off adaptive brightness in display settings|Check if Reading mode is activated (it resets the sleep timer)|Update. MIUI Up to the latest version (new firmware has more options)

-->

โš ๏ธ Attention: On devices with AMOLED-screens (Xiaomi) 12/13/14 The display can be permanently running and cause burn-in. Use the option Never only when necessary.

Method 2: Sleep settings for Mi TV and Mi Box TVs

On Xiaomi TVs and Mi Box consoles (including Mi Box S, Mi TV Stick models), the sleep mode is set differently, the main difficulty is the lack of a direct option to turn off sleep.

  1. Press the Settings button (cog) on the remote.
  2. Select All settings โ†’ Personal settings โ†’ Screen and sound.
  3. Find Sleep Mode or Sleep Timer (the name depends on the version of Android TV).
  4. Set the value to Turn off or Never.

If the option is not on the menu, try an alternative route:

Settings โ†’ Applications โ†’ System applications โ†’ Android System โ†’ Permissions โ†’ Disable โ€œBattery Optimizationโ€
Model of the deviceThe Way to Sleep SettingsMaximum time.
Mi TV 4S/4A (Android TV 9)Settings โ†’ Screen and sound โ†’ Sleeping mode4 hours
Mi Box S (Android TV 10)Settings โ†’ Device preferences โ†’ Screen30 minutes.
Mi TV Q2/Q1E (Android TV 11+)Settings โ†’ System โ†’ Energy savingShut down.
Mi TV StickSettings โ†’ Display and sound โ†’ Sleeping mode1 hour

๐Ÿ’ก

If the screen goes out while watching IPTV on Xiaomi TV, try the player settings (such as Loliplayer or OTT Player) to enable the option โ€œKeep the screen activeโ€ or โ€œDisable the screensaverโ€.

Method 3: Turn off sleep through developer parameters

For power users, there is a way to completely turn off sleep through the developer menu, which works on all Xiaomi devices, but requires caution:

  1. Activate Developer Mode: On Smartphone: Settings โ†’ About Phone โ†’ MIUI Version (click 7 times). On TV: Settings โ†’ About Device โ†’ Build Number (click 5 times).

Additional โ†’ For Developers

Sleep while connected to charging

Never.

Adaptive brightness

Automatic screen shutdown

On Xiaomi TVs with Android TV 12+, the developer menu has the option โ€œDisable screensaver when playingโ€, which solves the problem of black screen while watching movies.

โš ๏ธ Attention: Changing the developer settings can cause the device to work in an unstable way. Do not activate options that you do not know the purpose of. For example, turning off background restrictions will increase battery consumption. 20-30%.

What to do if the developer menu does not open?
On some firmware (for example, MIUI China Stable) access to the developer menu is blocked: 1. Install an alternative launcher (e.g. Nova Launcher). 2. Through ADB Adb shell settings put global settings development_settings_enabled 1 3. Reset the device.

Method 4: Using Third-Party Applications

If the system settings do not allow you to turn off sleep, you can use third-party utilities. For Android smartphones, you can use:

  • ๐Ÿ“ฑ Keep Screen On โ€“ Keeps the screen on while the app is active.
  • โšก Caffeine โ€“ Adds a notification panel for quick sleep control.
  • ๐Ÿ”ง Tasker โ€“ allows you to create automatic rules (for example, turn off sleep when running specific applications).

For Xiaomi and Mi Box TVs, TV Stay Awake (available on Google Play for Android TV) is a good app that mimics user activity by sending signals to the system every 30 seconds.

Installation via ADB (if the app is not available in your area):

adb install tv.stay.awake.apk


adb shell pm grant tv.stay.awake android.permission.WRITE_SECURE_SETTINGS

๐Ÿ’ก

Screen retention apps consume additional resources. On weak devices (such as the Mi Box S with 2GB of RAM), this can cause lags when playing 4K-content.

Method 5: Bypassing restrictions through ADB (advanced method)

Android Debug Bridge (ADB) is suitable for all Xiaomi devices, but requires a computer connection.

Instructions:

  1. Install ADB Tools on your PC.
  2. Enable USB Debugging on your device (Settings โ†’ Developer).
  3. Connect the device to your computer and execute the commands: adb shell settings put global stay_on_while_plugged_in 3 adb shell settings put system screen_off_timeout 2147483647
  4. Adb shell settings put global settings sleep_timeout -1

The first command causes the device to remain on when connected to the power, the second sets the maximum time before turning off the screen (about 24 days).

adb shell settings delete global stay_on_while_plugged_in


adb shell settings delete system screen_off_timeout

โš ๏ธ Attention: Misuse of the right ADB This can cause soft-brick damage to your device. Before executing commands, back up your data using adb backup.

Solving problems after switching off sleep

After deactivating your sleep, you may experience side effects, and here's how to eliminate them:

Problem.Reason.Decision
The device is overheating.Constant screen operation increases the load on the processorInstall a cooling stand or reduce the brightness to 70%
The battery is rapidly draining (smartphones)The display consumes up to 40% of the chargeUse the option "Sleep when connecting to charging"
Screen blinks or artifactsLong-term operation of AMOLED without disconnectionEnable the pixel shift in the screen settings
Apps are dyedLack of RAM due to background processesLimit background activity in Settings โ†’ Apps

If after the sleep shutdown, the Xiaomi TV began to spontaneously restart, check:

  • ๐Ÿ”Œ Quality of power (use the original power supply).
  • ๐ŸŒก๏ธ Body temperature (norm - up to 60)ยฐC).
  • ๐Ÿ“ฆ Free space in memory (less than 1 GB can cause crashes).

FAQ: Frequent questions about sleep on Xiaomi

Can sleep be turned off only for specific applications?
Yes, on Xiaomi smartphones, it does this through Settings โ†’ Apps โ†’ [Select App] โ†’ Battery โ†’ No restrictions. On TVs, there is no such option - use third-party utilities like TV Stay Awake.
Why did the MIUI update reset your sleep settings?
This is standard system behavior. After major upgrades (e.g., from MIUI 13 to MIUI 14), all power saving parameters are reset. Check the settings again according to the instructions above.
How to turn off sleep on Xiaomi without root rights?
All of the methods described in this article (except ADB) work without root. Magisk and the Disable Flag Secure module can be used to fully control energy saving, but this requires unlocking the bootloader.
The screen goes out during a video call - how to fix it?
The problem is optimizing MIUI for voice calls. Open Settings โ†’ Apps โ†’ Phone โ†’ Battery and select Unlimited. Also check the settings of a specific messenger (WhatsApp, Telegram).
On Mi TV, the screen goes out in 5 minutes, despite the settings.
This is a well-known problem of firmware based on Android TV 10. Solutions: Update your TV to the latest version of the software. Install Set Edit via ADB And manually change the setting. sleep_timeout. Use it. HDMI-CEC Control of sleep through external devices (e.g, NVIDIA Shield).