The screen of Xiaomi smartphone is not only a window into the digital world, but also one of the main โeatersโ of battery power. 15-30% day and day, and also to protect AMOLED-But many users have problems: the screen goes out too quickly, does not respond to the tap on the display, or, conversely, remains on in your pocket, draining the battery.
In this article, we will analyze all ways to control the sleep screen on Xiaomi, Redmi devices, POCO Black Shark โ from basic settings MIUI You'll learn how to customize your timer to your tasks, turn off auto-switching for individual applications, and even control the screen through ADB-And also, why do you sometimes reset after you update and how do you fix it.
If your smartphone is discharged in half a day and the screen is turned on in your pocket from accidental touches, this guide will help solve both problems. Letโs start with the simple and move on to advanced methods that are not described even in the official documentation of Xiaomi.
1. Standard setting of screen switch-off time
The most obvious way is to change the sleep timer in the system settings, which works on all devices running MIUI (including the Redmi Note 12, POCO X5, Xiaomi 13T and other models from 2020-2026).
To set up automatic screen switching off:
- Open the Settings app (cog icon).
- Go to the Screen section (or Display on some firmware).
- Select โScreen Dreamโ (or Sleep Timer).
- Set the desired time: from 15 seconds to 30 minutes.
On most devices, the following options are available:
- ๐ 15 seconds โ minimum value, suitable for saving charge in standby mode.
- โณ 30 seconds โ optimal balance for everyday use.
- ๐ฑ 1/2/5/10 minutes โ convenient for reading or watching videos.
- ๐ซ Never โ the screen will remain on until manually turned off (not recommended!).
An important nuance: on some models (for example, Xiaomi 12 Pro or Redmi K60) when choosing Never, the system still locks the screen after 30 minutes for security reasons. This restriction can only be circumvented through ADB (for this, see section 5).
2. Separate settings for locking and turning off the screen
Many people confuse two different processes:
- Turn off the screen โ the display goes off, but the device remains active (music plays, notifications come).
- Screen locking โ requires unlocking (PIN, fingerprint, Face ID).
In MIUI, these functions are set up separately to change the time before locking:
- Go to Settings โ Lock and Protection โ Automatic Lock.
- Select the interval: From Immediately to 30 minutes.
Critical: If you set Auto Lock to Immediate and Screen Sleep to 1 minute, the smartphone will immediately lock after the display is damped, which can create problems when using Google Pay or other services that require unlocking.
๐ก
If you use contactless payments often, set Auto Lock for 5-10 seconds and Screen Sleep for 30 seconds, so the screen will go out later, but you will not need to unlock immediately.
MIUI 14+ also has a "Raise to Activate" feature (Settings โ Screen โ Raise to Activate) if it's on, the screen will light up when the device is lifted, but this can accidentally unlock the phone in your pocket, and we recommend turning it off if you notice spontaneous activation.
3. Application exceptions: how to undo the screen shutdown
Sometimes you need to keep your screen up while a particular app is running โ like navigating Google Maps or reading a book in Moon+ Reader. MIUI has a built-in Sleep Exceptions feature, but it's hidden in the depth of settings.
To add an annex to the exceptions:
- Open Settings โ Special Options โ Exceptions for Sleep.
- Turn on the โAllow applications to remain activeโ switch.
- Select apps from the list (e.g. YouTube, Waze, Twitch).
If the application is not in the list:
- ๐ Check if it supports the background (some applications are blocked by the system).
- ๐ฑ Try to turn on โAutostartโ for it in Settings. โ Annexes โ Application management โ Auto-start.
- ๐ง Some applications (such as Termux) will require manual permission through the ADB.
Restriction: Sleep Exclusions donโt work on all models; some devices (like POCO F4) may not, and Google Playโs Keep Screen On app will help.
The app is updated to the latest version
Auto-start for the application is enabled
Power saving mode for the application is disabled
Compatibility with the MIUI-->
4. Hidden MIUI settings: Always on Display (AOD) mode
On devices with AMOLED-screens (for example, Xiaomi 13 Ultra, Redmi) K50 Pro is available in Always-On Display mode (AOD), It shows the time, notifications and other data when the screen is off, and it doesn't cancel the screen's sleep, but it allows you to see key information without fully turning on the display.
To set up the AOD:
- Go to Settings โ Screen โ Always-On Display.
- Select the display style (dial, calendar, notifications).
- Set up a schedule or leave the mode Always.
Possible AOD styles in MIUI 14:
| Style. | Description | Energy consumption |
|---|---|---|
| ๐ Digital watches | Time and date only. | Low (~1-2% per hour) |
| ๐ Calendar | Hours + date + day of the week | Average (~2-3% per hour) |
| ๐ Notifications | Watch + Notification icons | High (~3-5% per hour) |
| ๐จ Customized | User background + widgets | Very high (~5-7% per hour) |
Important: AOD mode significantly increases battery consumption. On tests Xiaomi 12S Ultra with active AOD discharge per night was up to 12%, while without it โ only 2-3%. If you are critical autonomy, use AOD only on schedule (for example, from 8:00 to 22:00).
How to turn off AOD if you donโt need it?
5. Advanced methods: ADB-commands and hidden parameters
If standard settings are not enough, you can control the screenโs sleep time through ADB (Android Debug Bridge), a method that is suitable for power users and allows you to bypass the limitations of MIUI.
To start, turn on โDebugging by USBโ:
- Go to Settings โ About Phone โ MIUI version and tap 7 times on this item to activate Developer Mode.
- Return to Settings โ Additional โ For developers and enable USB debugging.
Now connect your smartphone to your PC and execute commands in the terminal (Windows: cmd, macOS/Linux: Terminal):
1. Viewing the current sleep time:
adb shell settings get system screen_off_timeoutThe result will be in milliseconds, 30000 = 30 seconds.
2. setting a new time (example - 5 minutes = 300,000 ms):
adb shell settings put system screen_off_timeout 3000003. turn off automatic sleep (the screen will always burn):
adb shell settings put global stay_on_while_plugged_in 3After this command, the screen will not go out while the device is connected to the charge.
โ ๏ธ Attention: Team stay_on_while_plugged_in 3 It only works when you connect to the power source. If you turn off the charging, the settings will reset. To permanently turn off sleep, you will need to modify the system files (root rights).
If your ADB settings are reset after you use it, check if Xiaomiโs Security app resets them. In this case, add your ADB app to the battery optimisation exclusion.
6.Why settings are reset and how to fix it
Many users complain that after updating MIUI or rebooting the device, the screen sleep time is reset to a standard 30 seconds, due to Xiaomiโs energy saving policy, which resets โnon-optimalโ settings.
Main causes of discharge:
- ๐ Update MIUI โ The system returns the "recommended" parameters.
- ๐ Energy saving mode โ forcibly shortens sleep time.
- ๐ก๏ธ Security app โ blocks changes made through ADB.
- ๐ฑ Resetting to factory settings is an obvious reason, but sometimes happens by accident.
To record the settings:
- Turn off the โAdaptive Batteryโ in Settings โ Battery โ Battery settings.
- Add the application you changed your settings through (such as Termux or ADB AppControl) to optimise:
ADB
adb shell dumpsys deviceidle force-idleโ ๏ธ Warning: Disabling battery optimization can increase charge consumption 10-15%. Use this method only if you really need to save your screen sleep settings.
If the problem persists, try using the MacroDroid app to automatically apply settings after the reboot. Build a macro with Screen Timeout action and a Device Boot trigger.
7. Alternative methods: applications and automation
If integrated functions MIUI They don't, you can use third-party utilities.-3 Checked screen control applications:
| Annex | Functions | Pluses | Cons |
|---|---|---|---|
| Keep Screen On | Cancels screen sleep for selected applications | Simple interface, does not require root | Shows a notification in the status bar |
| Caffeine | Temporary sleep shutdown (timer or before switching off) | It works on all versions of Android | No flexible settings for individual applications |
| Tasker | Full automation (e.g., turning off sleep when connected to a Bluetooth device) | Maximum flexibility | Complicated interface, requires customization |
To use Tasker, create a task:
- Add the Display action โ Display Timeout.
- Set the right time (in seconds).
- Set up a trigger (for example, when connecting to Wi-Fi or when running an application).
Example of automatic scenario:
- ๐ฑ Condition: Connection to Android Auto.
- โณ Action: Set screen sleep time for 10 minutes.
- ๐ Recovery: Return settings after disconnection.
โ ๏ธ Note: Some screen control apps (such as Keep Screen On) may conflict with features MIUI, If you notice lags or spontaneous reboots, turn off one of the apps.
๐ก
For maximum autonomy, use the combination: a standard sleep timer of 30 seconds + exceptions for navigation applications + turning off AOD at night.