How to make the screen Xiaomi does not go out: all the ways for MIUI

The screen of Xiaomi's smartphone, which goes out after 30 seconds of inactivity, can seriously interfere - whether it's reading long articles, viewing recipes in the kitchen or using the phone as a navigator. MIUI They limit the maximum latency to 10 minutes, but even that is often not enough. Fortunately, there are at least 8 ways to get around this limitation: from hidden system features to using third-party apps and other systems. ADB-team.

In this article, we will discuss all the current methods for devices on MIUI 12, 13 and 14, including the Redmi, POCO and Black Shark models. Particular attention will be paid to solutions that work without root rights and do not require complex manipulations. You will learn how to increase the time before turning off the screen to 30 minutes, completely turn off timeout or configure exceptions for individual applications.

Important: some methods can affect battery consumption, and we'll note these cases separately and give you recommendations for optimization. AMOLED-Keep in mind that the constant lighting of pixels accelerates their wear (burn-in effect).

1. Standard MIUI settings: maximum 10 minutes

Let's start with the simplest of them, the built-in options, and even if they don't give you the 30 minutes you want, they're worth checking before you move on to more sophisticated methods.

Open Settings β†’ Display β†’ Sleep mode. Here you will see timeout options: 15 seconds to 10 minutes. Choose a maximum value of 10 minutes. On some firmware (for example, global versions of MIUI for Europe), this item may be called Screen timeout or Sleep.

Note that on devices with MIUI 14 and later, the path may be slightly different: Settings β†’ Screen β†’ Sleep Mode β†’ Screen timeout. If you don’t have Sleep Mode displayed, try searching by settings (the magnifier icon in the upper right corner).

  • βœ… Pros: does not require installation of applications or administrator rights
  • ❌ Cons: Maximum time is only 10 minutes
  • ⚠️ Nuance: After the update MIUI settings may reset
πŸ“Š What version? MIUI you use?
MIUI 12
MIUI 13
MIUI 14
Old MIUI 12.
I don't know.

2.Developer Mode: Hidden Menu with Extended Options

Activating developer mode opens up access to additional settings, including the ability to increase screen timeout to 30 minutes, a technique that works on most Xiaomi, Redmi and POCO devices.

First, turn on the developer mode:

  1. Go to 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 open a new section Additional β†’ For Developers (or Settings β†’ System β†’ For Developers on new versions).

Scroll down to the Debugging block and find the screen timeout option in standby mode (or Screen timeout while inactive). Here you can select values up to 30 minutes or Never (on some firmware).

πŸ’‘

If the screen timeout item is not in the developer menu, try to select any value in the standard settings (section 1), then return to developer mode - the option should appear.

⚠️ Attention: On devices with MIUI 14 and Android 13+ The option "Never" may not be available due to Google restrictions, in which case the maximum value is 30 minutes.

3.Stopor Apps: Keep Screen On and Analogs

If the system settings don't work, specialized utilities will come to the rescue, and they work on the principle of "deception" of the system - they simulate the user's activity so that the screen does not go out.

The most popular applications:

  • πŸ“± Keep Screen On – a minimalist utility with a widget for quick on / off
  • πŸ”„ Caffeine – Adds a button to the notification panel to temporarily turn off timeout
  • πŸ› οΈ Keep Screen On – No Root – Supports exceptions for individual apps
  • πŸ“Š Screen Alive – allows you to set the schedule of screen activity

All of them are available on Google Play and do not require root rights.

Let’s look at the example of Keep Screen On:

  1. Install the application and open it.
  2. Grant permission to Overlay over other windows (required for work)
  3. Turn on the Keep Screen on switch
  4. If necessary, add the application to boot (Battery section β†’ Autorun in MIUI settings)

AnnexMax time.Working in the backgroundExceptions
Keep Screen OnNo restrictions.Yes.No.
Caffeine30 minutesYes (through notice)No.
Keep Screen On - No RootNo restrictions.Yes.Yes (for applications)
Screen AliveTune in.Yes.Yes (scheduled)

⚠️ Warning: Stopper applications may conflict with energy saving features MIUI. After installation, add them to the exception list: Settings β†’ Battery β†’ Choice of applications β†’ [name] β†’ No restrictions.

4. ADB-Extended management without root

For users who are ready for more complex manipulations, there is a solution through Android Debug Bridge (ADB), which allows you to set any timeout value, including β€œNever”, even if such an option is not on the menu.

You'll need:

  • πŸ–₯️ Computer with installed Xiaomi and ADB-tools drivers
  • πŸ“± Included debugging by USB on the phone (section "For developers")
  • πŸ”Œ Cable USB (preferably original)

Instructions:

  1. Connect your phone to your PC and confirm your debugging permission
  2. Open the command line (Windows) or terminal (macOS/Linux) in the folder with ADB
  3. Enter the command to check the connection: Adb devices must appear serial number of your device.
  4. Set the right timeout value (in milliseconds). 30 min: adb shell settings put global screen_off_timeout 1800000 To turn off the timeout completely: adb shell settings put global screen_off_timeout 2147483647
  5. Reset the device

Install ADB-tools on PC|

Enable debugging over USB on your phone |

Connect the phone with the original cable |

Check the connection with the adb devices | command

Make a backup copy of the data-->

To return the standard settings, use the command:

adb shell settings delete global screen_off_timeout

Redmi

5. Set up exceptions for individual applications

If you want the screen to stay on the same page only in specific programs (such as a navigator or reader), use the built-in MIUI function or third-party utilities.

Method 1: Built-in MIUI exceptions (powers MIUI 13+):

  1. Open Settings β†’ Applications β†’ Permissions β†’ Autorun
  2. Find the desired application and enable the option to Allow to keep the screen on
  3. Also add it to battery exceptions: Settings β†’ Battery β†’ Application selection β†’ [app] β†’ No restrictions

Method 2: Tasker App (for advanced users):

  1. Install Tasker from Google Play
  2. Create a new task with Display β†’ Display Timeout
  3. Set the value 3.6 million (1 hour) or 2147483647 (no restrictions)
  4. Add a start condition to open the desired application

List of applications that often need exceptions
Google Maps / Yandex.Navigator Waze Kindle / Moon+ Reader YouTube / Netflix (in viewing mode), Termux (for long-term commands) AnyDesk / TeamViewer (with remote control)

On devices with MIUI 14 and Android 13+, the built-in exceptions may not work due to new power saving restrictions, in which case use the stoppage apps (Section 3) that support the whitelist of programs.

Problems with the proximity sensor and their solution

Sometimes the screen goes out not because of a timeout, but because the proximity sensor is not working properly, which manifests itself as a spontaneous shutdown of the display during calls or when you cover the top of the phone with your palm.

How to check and correct:

  • πŸ“ž Sensor test: Dial ##6484## (on some models ##0*##) and select Proximity Sensor. When you cover the sensor with your hand, the screen should turn black, when you remove it, return to the screen.
  • πŸ”§ Calibration: Go to Settings β†’ The phone. β†’ All specifications β†’ Sensors and calibrate the proximity sensor.
  • πŸ› οΈ Resetting: If the sensor is not working properly, reset the network settings: Settings β†’ System system β†’ Resetting settings β†’ Resetting network settings.

On the Redmi Note 10/11 and POCO X3/X4, a common problem is sensor contamination. Gently wipe the area around the front camera and the dynamics with a dry wipe. Avoid alcohol-containing liquids!

πŸ’‘

If the proximity sensor is faulty, the screen will go out regardless of the timeout settings, in which case a diagnosis is required at the service center.

7. Alternative methods for specific cases

Consider non-standard situations and solutions for them:

  • πŸ”‹ Energy saving: If the screen goes off too quickly despite settings, check the battery mode. β†’ Battery β†’ Battery mode select Performance instead of Energy saving.
  • πŸ“± MIUI Europe (EEA): These firmwares often don't have the "Never" option. ADB-Teams (section 4) or reflash the phone to the global version.
  • πŸ–₯️ DeX Mode: When you connect to a monitor via Mi Desktop Mode, the phone's screen may go out. Turn off this option in DeX settings.
  • πŸ”’ Application lock: Some programs (e.g. banking) force the screen to go out. Add them to the exceptions in the security settings MIUI.

For Black Shark devices, there is an option in Shark Space:

  1. Open Shark Space (Shark icon)
  2. Go to Settings β†’ Screen β†’ Screen timeout in the game
  3. Select Disable or set the desired value

This setting is only valid in game mode.

8. Frequent errors and their correction

Even after all the methods are used, the screen can continue to go out.

Problem.Possible causeDecision
The screen goes out in 15 seconds despite settingsActive mode of battery super-savingTurn it off in Settings β†’ Battery
ADB-commands are not appliedNo debugging authorization granted.Check the settings β†’ For developers β†’ Debugging by USB
The stop-app is not working.MIUI kills background processesAdd batteries and auto-start to exceptions
The screen flashes before shutting downConflict with the function "Raise to activate"Turn off the settings β†’ Display β†’ Raise for activation

If none of the methods helped, reset the settings to factory:

  1. Make a backup copy of the data
  2. Go to Settings β†’ About the phone β†’ Reset settings
  3. Select Reset all settings (not β€œErase all data!”)
  4. After the reboot, repeat the timeout setting

πŸ’‘

On devices with MIUI 14 and Android 13+, you may need to re-activate the developer mode after resetting.

FAQ: Answers to Frequent Questions

Can I turn off the screen timeout completely without root?
Yes, but with reservations. On most Xiaomi devices, it's possible through ADB-Adb shell settings put global screen_off_timeout 2147483647. But, MIUI 14 Android 13+ The system can ignore this value because of Google's limitations, in which case the maximum available time is available β€” 30 minute.
Why did the MIUI update reset the timeout settings?
This is standard system behavior in major updates (e.g., MIUI 13 to MIUI 14). Recommended after upgrade: Reactivate Developer Mode Check settings in For Developers β†’ Screen timeout Reinstall Stopping Apps (if used)
Is it safe to use? ADB-team?
Yes, if you follow the instructions and don't change other system settings. The commands to set the screen timeout don't affect system stability. However: Always check the device's connection (adb devices) Do not use commands from unreliable sources Create a backup before experiments After applying commands, restart the device.
How to prevent the screen from going off during charging?
To do this: Activate the developer mode (section) 2) Go to Settings. β†’ For developers, find the option to Stay awake while charging and turn it on On some firmware, this option may be called the Screen is always on when charging. If it's not, use it. ADB-Adb shell settings put global stay_on_while_plugged_in 3
Is there a difference in settings for AMOLED and LCD-screen?
Yes, and she's substantial: AMOLED (Most Xiaomi flagships: constant lighting accelerates the wear of the matrix (burn-in). It is not recommended to keep static elements (for example, the navigation panel) on for a long time. LCD (Budget models Redmi: less prone to burnout, but more consume the battery when constantly working. AMOLED-screens are better to use dynamic wallpaper or dark theme apps to reduce the load on pixels.