How to Keep Xiaomi’s Screen Not Out: The Complete Guide

You are tired of your Xiaomi or Redmi screen going out through the window. 15-30 This problem is particularly annoying when reading long articles, looking at photos, or using your phone as a navigator. MIUI There are several ways to increase screen time, from standard settings to hidden features for advanced users.

In this article, we will discuss 7 proven methods, including system settings, ADB commands, engineering menus and even firmware modifications. You will learn how to turn off the screen completely or set a personal timeout - from 1 minute to "never." All instructions are relevant for MIUI 12, 13 and 14 on models from Redmi Note 10 to Xiaomi 13 Ultra.

Important: Some methods require developer or unlocked bootloader rights, and if you're a beginner, start with the first three, which are safe and don't require deep technical knowledge.

1. Standard screen settings in MIUI

The easiest way to increase screen time is to use the built-in MIUI options, which works on all Xiaomi smartphones without any additional manipulation.

Open the Settings app and go to Screen β†’ Sleep After (or Screen Lock β†’ Sleep After in older versions of MIUI). Here you will see the timeout options:

  • πŸ”„ 15 seconds – minimum value (default on some models)
  • ⏳ 30 seconds is the standard value for most devices.
  • ⏰ 1, 2, 5 or 10 minutes – recommended for comfortable use
  • 🚫 The screen will always burn (not available on all models)

If the "Never" option is missing, it means that the manufacturer has limited it to the firmware level, in which case move on to the following methods.

πŸ’‘

On some models (e.g. POCO F5), the "Sleep After" option may be hidden in Settings β†’ Battery β†’ Sleep Mode. Check both places!

Note that even if you choose maximum time, the screen will still go out when the battery is low (less than 5-10%) or the device overheats.

2.Use of the Developer Mode

If standard options aren’t enough, activate developer mode, which will open up hidden settings, including forced-time-out screens.

How to turn on the developer mode:

  1. Open the Settings. β†’ The phone.
  2. Find the MIUI version and tap it 7 times in a row
  3. Enter your password/pattern lock if required.
  4. The message will be: β€œYou are a developer!”

Now go back to the main Settings menu and find a new section Additional β†’ For Developers (or System β†’ For Developers in newer versions of MIUI).

  • πŸ”§ Turn off the screen – completely blocks the auto-turndown (may be absent)
  • ⏱️ Screen timeout when charging - allows you to set a separate time to work from the network

πŸ’‘

In developer mode, you can set different timeouts for battery and charger, which is useful if you often use your phone as a media player or navigator in the car.

⚠️ Attention: some options on the developer menu can cause the battery to run faster or overheat, for example, if you set "Never" and leave the screen on in the sun, the phone may overheat!

3. ADB commands for advanced users

If the developer menu does not have the necessary options, you can change the system settings through Android Debug Bridge (ADB). This method requires a computer and USB-The cable gives you maximum control over the screen.

Step 1: Preparation

  • πŸ’» Install. ADB Tools on the computer
  • πŸ“± Turn on Debugging. USB developer-setting
  • πŸ”Œ Connect your phone to your PC and confirm your trust in your computer

Step 2: Follow the commands

Open the command line (Windows) or the terminal (Mac/Linux) and type:

adb shell settings put global stay_on_while_plugged_in 3

This command forces the screen to stay on only when charging. To turn off auto-turnoff completely, use:

adb shell settings put global screen_off_timeout 2147483647

2147483647

Install ADB Tools on PC| Enable USB debugging on your phone | Connect your phone with the original cable | Check the connection with the adb device-->

To return the standard settings, do:

adb shell settings put global screen_off_timeout 30000

(where 30,000 is time in milliseconds, for example 30 seconds = 30,000 ms).

4. Engineering menu (MTK/Qualcomm)

Xiaomi smartphones with MediaTek or Qualcomm processors can use an engineering menu to fine-tune the screen.This method is risky - wrong actions can lead to crashes!

How to open the engineering menu:

  1. Open the phone application
  2. Enter the code: ##3646633## (for MTK) or ##4636## (for Qualcomm)
  3. Choose Hardware Testing β†’ LCD

In the LCD menu, find the parameters:

  • πŸ“± Screen timeout – setting timeout in seconds
  • πŸ”‹ Stay awake while charging – the screen does not go out when charging
  • 🌑️ Temperature control – settings for overheating reactions

What to do if the engineering menu does not open?
On new Xiaomi models (such as the Xiaomi 13T), the engineering menu can be blocked, in which case only ADB or firmware modification will help. Do not use third-party applications to unlock - they may contain malicious code.

⚠️ Note: changes to the engineering menu are not saved after the reboot.To make them permanent, you will need to modify the system files, which may lead to loss of warranty.

5. Screen control applications

If you don't want to dig into the settings, you can use third-party apps, which offer flexible timeout settings, including separate profiles for different situations.

Top.-3 apps:

AnnexFeaturesCons
πŸ“± Keep Screen OnSimple timeout management, work in the backgroundAdvertising in the free version
⏱️ Screen AliveSeparate settings for each application, control gesturesFees paid
πŸ”§ TaskerMaximum automation (for example, the screen does not go out in the navigator)A complex interface for beginners

How to set up Keep Screen On:

  1. Install the app from Google Play
  2. Open and grant permission to Overlay over other windows
  3. Select the mode: "Always on" or "Only when charging"
  4. Add the app to the autoboot (to work after the restart)

⚠️ Note: some applications (e.g. Tasker) require special permissions to work with the screen. Without them, they will not be able to block auto-turnoff. ADB:

adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS

6. Modification of system files (for experienced)

If none of these methods worked, the last resort is editing system files, which requires an unlocked bootloader and root rights, so it is only suitable for advanced users.

What files are responsible for screen timeout:

  • πŸ“„ /system/build.prop β€” parameter ro.lge.proximity.delay=25 (proximity-delay)
  • πŸ“„ /system/usr/keylayout/Generic.kl β€” hardware-button settings
  • πŸ“„ /data/data/com.android.providers.settings/databases/settings.db β€” system settings database

To change the timeout:

  1. Get root access (for example, through Magisk)
  2. Install a file manager with root support (such as Root Explorer)
  3. Open the file. /system/build.prop and add a line: ro.screen_off_timeout=300000 (where 300000 β€” time in milliseconds, i.e. 5 minute)
  4. Save the file and restart the device

Standard settings MIUI|Developer mode|ADB-team|Third-party annexes|Engineering menu|Modification of system files-->

⚠️ Warning: Incorrect editing of system files can lead to a device blink (completely inoperable). Always backup before changes!

7. Alternative solutions for specific cases

Sometimes the screen doesn't go out because of a timeout, but for other reasons.

Challenges and solutions:

  • πŸ”‹ The screen goes out at low charge β†’ Turn off the Settings option. β†’ Battery β†’ Saving charge β†’ Turn off the screen earlier
  • πŸ“± Gasnet in certain applications β†’ Check the energy saving settings for this application (Settings) β†’ Annexes β†’ Permits β†’ Auto-start)
  • 🌑️ The screen is switched off from overheating β†’ Clean the case of dust, reduce brightness, close the background applications
  • πŸ› οΈ Problem after update MIUI β†’ Try resetting the screen settings (Settings) β†’ System system β†’ Resetting settings β†’ Reset the screen settings)

If the screen goes out immediately after unlocking, it may be due to a malfunction of the proximity sensor.

  1. Enter the code in the phone application: ##6484##
  2. Pass the proximity sensor test (cover the top of the phone with your hand)
  3. If the sensor does not respond, repair is required.

πŸ’‘

On some Xiaomi models (for example, Redmi Note 11) the screen may go out due to a bug in MIUI. In this case, only a rollback to the previous version of the firmware or waiting for an official patch will help.

FAQ: Frequent questions about screen timeout

❓ Why my Xiaomi doesn’t have a β€œNever” option in the screen settings?
The manufacturer has limited this feature to the firmware level to save battery life. ADB-commands or developer mode to circumvent the limitation. on some models (e.g, POCO X3) The option appears only when the charger is connected.
❓ Can I make sure the screen doesn’t go out during the call?
Yes, to do this, turn off the proximity sensor: Enable the developer mode (see section 2) Go to For Developers β†’ Disable the proximity sensor or use the Screen On During Call app from Google Play.
❓ Why After Updating MIUI The screen went out faster?
In newer versions of MIUI (especially 13 and 14), Xiaomi has tightened its energy saving policy. To return the previous settings: Reset the screen settings (Settings β†’ System β†’ Reset) Turn off Adaptive Brightness in the screen settings Check the battery settings for the System UI system application If it does not help – reset to factory settings (don’t forget to make a backup!).
❓ How to keep the screen from going out when watching YouTube?
Use one of the solutions: πŸŽ₯ In YouTube settings, turn off Autoturn and Save Traffic πŸ“± Install the Keep Screen On app and add YouTube to exceptions πŸ”§ Through ADB Adb shell settings put global settings screen_off_timeout 3600000 (1 hour)
❓ Is it safe to use? ADB time-out?
Yes, as long as you follow the instructions and don't change other system parameters, the commands in this article don't violate system integrity or cause warranty loss: ⚠️ Don't use the unknown. ADB-web-based ⚠️ Do not change the parameters, the purpose of which you do not understand. ⚠️ After the experiments, return the standard settings.