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.
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:
- Open the Settings app (cog icon).
- Go to the Screen โ Sleep and Lock screen section.
- Select the item Sleep in case of inaction.
- 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.
- Press the Settings button (cog) on the remote.
- Select All settings โ Personal settings โ Screen and sound.
- Find Sleep Mode or Sleep Timer (the name depends on the version of Android TV).
- 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 device | The Way to Sleep Settings | Maximum time. |
|---|---|---|
| Mi TV 4S/4A (Android TV 9) | Settings โ Screen and sound โ Sleeping mode | 4 hours |
| Mi Box S (Android TV 10) | Settings โ Device preferences โ Screen | 30 minutes. |
| Mi TV Q2/Q1E (Android TV 11+) | Settings โ System โ Energy saving | Shut down. |
| Mi TV Stick | Settings โ Display and sound โ Sleeping mode | 1 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:
- 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?
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:
- Install ADB Tools on your PC.
- Enable USB Debugging on your device (Settings โ Developer).
- 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
- 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 processor | Install a cooling stand or reduce the brightness to 70% |
| The battery is rapidly draining (smartphones) | The display consumes up to 40% of the charge | Use the option "Sleep when connecting to charging" |
| Screen blinks or artifacts | Long-term operation of AMOLED without disconnection | Enable the pixel shift in the screen settings |
| Apps are dyed | Lack of RAM due to background processes | Limit 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).