Why Xiaomiβs screen goes out on its own and how to fix it
Have you uploaded a long video to the Xiaomi Redmi Note 12, but the screen goes out after 30 seconds? Or are you reading an article in your browser and the display suddenly shuts down, interrupting the reading? Automatic screen dimming is one of the most annoying features of MIUI that the manufacturer stubbornly refuses to make flexible. The reason for this behavior lies in the energy saving policy: the forcedly system tries to extend battery life even when the device is connected to charging.
In this article, we will analyze all the current ways to disable auto-turn off the screen on Xiaomi, Redmi and smartphones. POCO β From basic settings to hidden developer settings and teams ADB. We will pay special attention to the nuances for different versions. MIUI (12, 13, 14) and models with AMOLED-displays where the problem is more common due to aggressive optimization.
β οΈ Important: Some methods require unlocking the bootloader or root rights. If you are not prepared for the risks (loss of warranty, possible bugs), use only the white-wash methods from the first three sections.
Method 1: Standard screen settings (without root)
The easiest method is to increase the timeout of the screen through the settings menu. It works on all Xiaomi devices regardless of the MIUI version, but has a limit: the maximum time is 30 minutes (on some models β 10 minutes).
How to change the timeout:
- Open the Settings β Display.
- Select the "Sleep" option after (or Auto-Switch off the screen in older versions).
- Set the maximum value of 30 minutes (or 10 minutes if there is no other option).
- Confirm the change.
β οΈ Attention: On devices with AMOLED-screens (for example, Xiaomi 13 Pro or Redmi) K60) Even if you choose 30 minutes, the screen may go out earlier because of the Adaptive Brightness feature. To avoid this, turn it off from the same Settings menu. β Display. β Adaptive brightness.
Make sure your smartphone is not in power saving mode | Turn off Adaptive Brightness |Check if the screen is blocking the case or proximity sensor |Update MIUI to the latest version-->
Method 2: Developer Mode and Hidden Parameters
If the standard 30 minutes donβt suit you, you can unlock the hidden developer menu and increase the timeout to 10 hours (maximum for most models), a method that doesnβt require root, but requires care β incorrect settings can lead to crashes.
Instructions for activation of the developer mode:
- Go to Settings. β The phone.
- Click 7 times in a row on the MIUI version (the notification βYou became a developerβ will appear).
- Return to the main settings menu and open a new section for developers (may be in Additional).
- Find the screen turn off (or sleep timeout) setting and set the value of 10 hours.
π Note: On certain firmware (e.g, MIUI 14 for global version) this parameter may not be available:
Settings β Display β Additional β Sleep Mode (hidden item)Redmi Note 10/11/12|POCO X3/X4/X5|Xiaomi 11/12/13 series|Redmi K40/K50/K60|Other-->
Method 3: Using applications to lock the screen
If the system settings don't work, third-party utilities will come to the rescue, and they're especially useful for POCO and Redmi with aggressive battery optimization, where the screen goes out even when you connect to charging. We tested 3 applications that actually work on MIUI:
- πΉ Keep Screen On is a simple utility with a widget for quick turn on/off of the function. Supports exceptions for individual applications (for example, only for YouTube or Google Maps).
- πΉ Caffeine β adds an icon to the notification panel, allowing one tap to turn off the screen dimming on the 5/15/30 Minutes or Forever (before rebooting).
- πΉ Screen Alive - Advanced settings including brightness control and sleep blocking when charging. Requires permission to Overlay over other windows.
β οΈ Note: Applications may conflict with MIUI Optimization is a built-in optimization service, if the screen goes out anyway:
- Open Settings β Applications β Application Management.
- Find your screen lock app and select Battery β Without restrictions.
- Enable AutoRun and Show notifications.
adb shell pm disable-user --user 0 com.miui.powerkeeperBut remember: this can impair the autonomy of the smartphone.-->
Method 4: ADB-commands to completely shut down sleep (for advanced ones)
This method is suitable for those who are willing to use ADB (Android Debug Bridge) for deep system tuning, it allows you to completely disable the dimming of the screen, but requires a connection to a PC and basic command line knowledge.
Step-by-step:
- Download and install Googleβs Platform Tools.
- Turn on USB debugging in the Developer Menu.
- Connect your smartphone to your PC and type in the command line:
adb devices(Your device should appear)
adb shell settings put global stay_on_while_plugged_in 3This command forces the screen to remain on only when connected to charging. To turn off sleep completely (including battery life), use:
adb shell settings put global stay_on_while_plugged_in 7| The importance of the team | The effect | Risks. |
|---|---|---|
| 3 | The screen does not go out only when charging. | Minimum (the charging speed may decrease) |
| 7 | The screen is always on (even on the battery) | Strong battery discharge, overheating |
| 0 | Return to standard behavior | No. |
β οΈ Attention: Use stay_on_while_plugged_in 7 device-wise AMOLED-screens (e.g. Xiaomi) 13 Ultra can cause pixels to burn out when static elements are displayed for a long time (e.g., navigation bars).
How to return the standard settings?
Method 5: Modification of system files (root only)
If none of the previous methods worked, the last option is editing system files, which requires an unlocked bootloader and root rights (for example, through Magisk), which we do not recommend for beginners, but if you are ready for experiments, follow the instructions:
Tools required:
- π§ Root access (installed by Magisk).
- π§ Root-access file manager (e.g., Root Explorer or Solid Explorer).
- π§ Backup of system files (required!).
Instructions:
- Open the file manager and follow the path:
/system/build.prop- Find ro.ril.disable.power.collapse=0 and replace 0 with 1.
- Add a new line:
pm.sleep_mode=0- Save the file, restart the device.
π Note: On some firmware (MIUI 14 for POCO F5) This method may not work because of dm-verity protection, which means disabling the system integrity check via Magisk).
π‘
Editing system files without a backup can lead to a device blink. Always back up before making changes!
Frequent problems and solutions
Even after applying all the methods, Xiaomiβs screen can continue to go out.
| Problem. | Possible cause | Decision |
|---|---|---|
| The screen goes out in 1-2 seconds. | The proximity sensor (for example, during a call) was activated | Wipe the sensor next to the front camera or turn it off in Settings β Special features β Approach sensor |
| Settings are not saved after restarting | Resetting due to MIUI Optimization | Turn off ADB optimization (see Method 4) or add the app to battery exceptions |
| The screen does not go out at all, even when blocked. | Error in the build.prop file after manual editing | Return the standard values or restore the backup |
| Screen locking apps don't work | MIUI kills background processes | Turn off background restriction for the application in battery settings |
π‘ Tip: If the problem only manifests itself in a particular app (like Google Maps or YouTube), check its settings. Many programs (like Waze) have a built-in "Do not turn off the screen" option that you can include in the app menu.