How to permanently turn off the screen fading on Xiaomi: all methods of 2026

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:

  1. Open the Settings β†’ Display.
  2. Select the "Sleep" option after (or Auto-Switch off the screen in older versions).
  3. Set the maximum value of 30 minutes (or 10 minutes if there is no other option).
  4. 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:

  1. Go to Settings. β†’ The phone.
  2. Click 7 times in a row on the MIUI version (the notification β€œYou became a developer” will appear).
  3. Return to the main settings menu and open a new section for developers (may be in Additional).
  4. 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:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find your screen lock app and select Battery β†’ Without restrictions.
  3. Enable AutoRun and Show notifications.
adb shell pm disable-user --user 0 com.miui.powerkeeper

But 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:

  1. Download and install Google’s Platform Tools.
  2. Turn on USB debugging in the Developer Menu.
  3. 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 3

This 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 teamThe effectRisks.
3The screen does not go out only when charging.Minimum (the charging speed may decrease)
7The screen is always on (even on the battery)Strong battery discharge, overheating
0Return to standard behaviorNo.

⚠️ 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?
To reverse the change, follow the command: adb shell settings put global. stay_on_while_plugged_in 0 After that, the screen will go out according to the system 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:

  1. Open the file manager and follow the path:
/system/build.prop
  1. Find ro.ril.disable.power.collapse=0 and replace 0 with 1.
  2. Add a new line:
pm.sleep_mode=0
  1. 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 causeDecision
The screen goes out in 1-2 seconds.The proximity sensor (for example, during a call) was activatedWipe the sensor next to the front camera or turn it off in Settings β†’ Special features β†’ Approach sensor
Settings are not saved after restartingResetting due to MIUI OptimizationTurn 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 editingReturn the standard values or restore the backup
Screen locking apps don't workMIUI kills background processesTurn 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.

Can I turn off the screen forever without root?
Yes, but with reservations. The maximum time in the standard settings is 30 minutes. To completely disable it will require either ADB (see Method 4) or third-party applications (Method 3). On some models (POCO X3 Pro) after upgrading to MIUI 14, the option β€œNever” appeared in the developer menu.
Why does the screen go off even when connected to charging?
This is a feature of MIUI Optimization, which ignores charging if the battery is more than 90% charged. Solutions: Turn off optimization via ADB (command in Method 4). Use the Keep Screen On app with the option "Only when charging." Turn on the Game mode (swipe down β†’ gamepad icon) - it blocks the sleep of the screen.
Is it safe to use? ADB-team?
Yes, if you follow the instructions. The commands in Method 4 only change the sleep time settings and do not affect critical system files. However: Do not interrupt the execution of commands (may cause a failure). Do not use unknown commands from the Internet. After the changes, check the sensors (gyroscope, proximity sensor).
How to turn off screen dimming for only one application?
There are two options: Through application settings: Some programs (like VLC or Google Maps) have a built-in "Do not turn off the screen" option. Search for it in the app menu. Through third-party utilities: In Keep Screen On or Caffeine, you can add apps to the "white list." For MIUI 14, a trick also works: launch the application, then swipe down and activate the Game mode (even if it is not a game).
After the MIUI update, the screen settings were reset.
Updates MIUI They often reset user settings, including screen timeouts. To avoid this: Write down your current settings before updating (take a screen picture). ADB-Check if permissions for blocking applications (e.g. Overlay over other windows) have reset. If the problem recurs after each update, consider disabling automatic updates to Settings. β†’ The phone. β†’ Updating the system β†’ Three points. β†’ Settings β†’ Auto-update.