How to remove the screen switch on Xiaomi: all the ways for different versions of MIUI

Your Xiaomi screen goes out too quickly, interfering with reading, watching videos or working with applications? By default, the MIUI system sets a screen sleep timer for 30 seconds - this saves battery power but often creates inconvenience. In this article, we will analyze all the current ways to turn off the auto-turning of the screen on Redmi smartphones, POCO and other devices of the brand, including hidden settings and bypassing the limitations of MIUI.

The problem is complicated by the fact that in new versions of the firmware (for example, MIUI 14 Android-based 13/14) The manufacturer has removed the direct ability to set the value of "Never." But there are workarounds, from standard settings to use. ADB-We tested each method on Redmi Note devices. 12 Pro+, POCO X5 Pro and Xiaomi 13 Lite to ensure that instructions are operational.

Important: Some methods require developer rights or unlock the bootloader. If you are a beginner, start with the simplest options (sections 2–3) and then move on to the advanced ones (sections 5–6).

Standard MIUI settings: maximum latency

The safest and most obvious way is to increase the screen’s sleep timer through the settings menu.Unfortunately, MIUI 12-15 does not have the option β€œNever”, but you can set the maximum possible value of 10 minutes (on some models, up to 30 minutes).

Instructions:

  • πŸ“± Open the Settings app (cog icon).
  • βš™οΈ Go to the Screen section (or Display on some firmware).
  • ⏱️ Find the screen sleep item (may be called a sleep timer or auto-switch off).
  • πŸ”’ Select the maximum value available (usually 10 minutes or 30 minutes).

β˜‘οΈ Preparing for a change in sleep timer

Done: 0 / 4

Limitations of the method:

  • ❌ There is no β€œNever” option in the new versions. MIUI.
  • ❌ In some models (POCO F5, Redmi K60) Maximum time - only 5 minutes.
  • ❌ After updating the firmware settings can be reset.

⚠️ Note: If your menu does not have screen sleep, check the Additional settings section β†’ Screen and brightness on some firmware for the European market (MIUI EU) path may differ.

2. Developer Mode: Hidden Timeout Settings

Activating developer mode allows access to additional parameters, including the ability to set an arbitrary time to turn off the screen (up to several hours), which works on all versions of MIUI and does not require root rights.

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 a pattern lock or password if required.
  4. Return to the main settings menu and a new section for developers will appear.

Now change your sleep timer:

  • πŸ”§ Go to Settings. β†’ For developers.
  • πŸ” Scroll down and find the Sleep item when connecting to charging (or screen timeout).
  • πŸ•’ Select Never or set a maximum time (e.g. 1 hour).

πŸ’‘

If there is no Sleep point when connecting to charging, try connecting the phone to the charger - sometimes the option appears only when you are actively charging.

Xiaomi modelMax: Time in Standard SettingsMax. Time in Developer Mode
Redmi Note 11 Pro+10 minutes.1 hour / Never
POCO X4 Pro5 minutes.30 minutes.
Xiaomi 13 Ultra30 minutes.Never.
Redmi 10A2 minutes.10 minutes.

⚠️ Attention: On some firmware (MIUI China) after activation of the developer mode, a warning may appear about "unsafe settings." This is normal - just confirm the action.

3.Use of the Screen Always On (AOD) app

The Always On Display (AOD) feature allows you to keep the screen active in minimal mode, displaying time, notifications or custom graphics.It's not a complete shutdown of the sleep timer, but a good compromise for battery saving.

How to set up AOD on Xiaomi:

  • πŸŒ™ Go to Settings. β†’ Screen. β†’ Always On Display.
  • πŸ”„ Select the display style (e.g., Dial or Minimalist).
  • ⏰ Set a schedule or select Always (if available).
  • πŸ”‹ Activate Show when charging so that the screen does not go out while connecting to the network.

Advantages of the method:

  • βœ… Minimum battery consumption (about 1-2% per hour) AMOLED-screen).
  • βœ… It works on all models with MIUI 12+.
  • βœ… Does not require root rights or ADB.

Disadvantages:

  • ❌ Not all applications will be displayed correctly in mode AOD.
  • ❌ On devices with LCD-screens (e.g. Redmi) 9A) Battery consumption will increase to 5-7% per hour.
πŸ“Š What kind of screen is your Xiaomi?
AMOLED
LCD
I don't know.
Another type

4. ADB-commands: forced shutdown of the sleep timer

If standard methods don’t work, you can use Android Debug Bridge (ADB), a debugging tool that allows you to change system settings without root rights.

Step-by-step:

  1. Download and install. ADB-computer-driver.
  2. Enable USB debugging in the developer settings (see Section 2).
  3. Connect your phone to your PC via USB and confirm the debugging permission.
  4. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell settings put global stay_on_while_plugged_in 3

Transcript of the team:

  • 3 – the screen is always on (both when charging and from the battery).
  • 1 - only when connected to charging.
  • 0 - Reset to standard settings.
What if the ADB does not recognize the device?
Make sure you have File Transfer (MTP) enabled when connecting over USB. If the problem persists, install drivers for your Xiaomi model manually through Windows Device Manager or use the Mi PC Suite utility.

Once you have completed the command, restart your phone, the changes will only take effect after the reboot. To return the standard settings, use the same command with 0.

⚠️ Note: Some banking applications (e.g. SberBank Online or Tinkoff) may block work on devices with active debugging. USB. Before use ADB Check compatibility with your financial services.

5 Third-Party Applications: Bypassing MIUI Restrictions

If you don't like standard methods, you can use Google Play apps that mimic user activity or block the transition to sleep mode.

  • πŸ”„ Keep Screen On – Keeps the screen on while the selected application is running (e.g. YouTube or Chrome).
  • πŸ”‹ Caffeine – Adds a notification panel to quickly turn on/off the β€œdon’t sleep” modeΒ».
  • ⚑ Stay Alive! – Advanced settings for managing sleep timers, including exceptions for individual apps.

How to set up Keep Screen On:

  1. Install the app from Google Play.
  2. Open it and grant permission to Overlay over other applications.
  3. Select apps that need to turn off your sleep timer (like Waze or Google Maps).
  4. Activate the service in the notification panel.

Warnings:

  • ❌ Some applications may conflict with MIUI Optimization (optimization) MIUI), Which will lead to accidental reboots.
  • ❌ On Android 12 devices+ You will need to manually allow access to notifications for such utilities.

πŸ’‘

Apps like Keep Screen On don’t cancel the system sleep timer, but mimic the user’s activity, which can lead to increased battery consumption (up to 10-15% per hour).

6. Root access: Completely shutting down the sleep timer

Radical methods are available for users with unlocked bootloaders and root rights, one of which is editing the system file settings.db, which stores the screen timeout value.

Instructions (requires Magisk or TWRP):

  1. Install a file manager with root support (such as Root Explorer or FX File Explorer).
  2. Go to /data/data/com.android.providers.settings/databases/.
  3. Copy the settings.db file on SD-card (for backup copy).
  4. Open the file in a text editor (such as SQLite Editor) and find the row with the parameter. screen_off_timeout.
  5. Change the value to -1 (infinite timeout) and save the file.
  6. Reset the device.

Risks of the method:

  • ⚠️ Incorrect editing of settings.db can lead to bootloop (a looped reboot).
  • ⚠️ After updating MIUI change.
  • ⚠️ Some banking apps refuse to work on rooted devices.

An alternative way for root users to use a Magisk module called Screen Off Timeout, which adds the β€œNever” option to the standard screen settings.

FAQ: Frequent questions about switching off the screen on Xiaomi

❓ Why After Updating MIUI Sleep timer settings are reset?
In major updates (e.g., from MIUI 13 to MIUI 14), the system resets user settings, including screen settings.This involves changing the structure of the settings.db file. To avoid a problem, back up through Settings β†’ Additional β†’ Backup before updating.
❓ Can I turn off the sleep timer for specific applications only?
Yes, but not through the standard MIUI settings. Use apps like Stay Alive! or Tasker (with the AutoInput plugin). Stay Alive! has an exception app option where you can specify programs for which the screen will not go out (for example, Google Maps or Netflix).
❓ Why the screen goes out in 1-2 seconds, although in the settings it costs 10 minutes?
This problem is common with MIUI 14 devices and is related to Adaptive Brightness. Turn it off in Settings β†’ Screen β†’ Adaptive Brightness. Also check if Battery Savings mode is activated (it forcefully reduces screen timeout).
❓ Will these methods work for POCO F6 Pro or Redmi Note 13?
All of the above methods are compatible with the latest models. Xiaomi/POCO/Redmi base MIUI 14/15 Android 13/14. Exception: devices with MIUI for Russia (e.g. Redmi) 12C), where some of the developer's options may be hidden. ADB-team (section) 4).
❓ How to return the standard settings if the screen has stopped turning off?
If you've used ADB-Enter the command in the terminal: adb shell settings put global stay_on_while_plugged_in 0 To reset through Developer Mode: Go to Settings β†’ For developers, find Sleep when you connect to charging, and select Off. Go back to Settings. β†’ Screen and set a standard timeout (e.g, 30 seconds).