How to make the screen Xiaomi does not go out: all the ways of 2026

Xiaomi’s smartphone screen, which constantly goes out at the most inopportune moment, is a familiar problem for many users: You read a long article, watch a recipe or follow a timer while you work out, and the display suddenly turns off, interrupting the process. Fortunately, the manufacturer has provided several ways to turn off auto-sweeping, from standard settings to hidden features for power users.

In this article, we'll look at all the current methods, including official and alternative ones, and learn how to increase screen time, completely cancel your sleep timer, or adjust exceptions for individual applications. We'll focus on Redmi and POCO models, where MIUI can be nuanced. And for those who aren't afraid of experimentation, we'll show you hidden settings through ADB and the engineering menu.

Before you start, consider that the constant operation of the screen reduces the battery life. If you want your phone to last longer without recharging, you better adjust the balance between convenience and power consumption. Now let's move on to the practice - choose the method depending on your model and level of training.

1. Standard method: adjusting the sleep timer in MIUI

The easiest method is to change the auto-sunsetting time through system settings. It is suitable for all modern Xiaomi smartphones, including the Redmi Note 12, POCO X5, Xiaomi 13 and other models on MIUI 14/15.

To find this parameter, follow the following steps:

  1. Open the Settings app** (the gear icon on the home screen).
  2. Go to the Display section (or the Screen on some firmware).
  3. Click on Sleep Mode (may be called Sleep Timer or Auto-Switch Off).
  4. Choose the maximum value offered (usually up to 30 minutes) or the option Never, if available.

On some models (e.g. POCO F5), the option is never hidden. In this case, select the maximum time of 30 minutes. Also note that after the MIUI update, the settings may reset - check them periodically.

πŸ’‘

If your phone does not have the β€œSleep Mode” item, try searching it through the search bar in the settings (the magnifier icon at the top).

  • πŸ“± Works for Redmi, POCO, Xiaomi and Black Shark

2. Developer Mode: Hidden Timeout Settings

If the standard 30 minutes are not enough, you can activate the developer mode and access advanced settings, this will increase the time to 1 hour or disable auto-smothering completely (on some firmware).

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 (you will receive a notification β€œYou became a developer”).
  3. Return to the main settings menu and open a new section β†’ For developers.

Now find the option Sleep mode when you connect to a charge or timeout screen. Here you can choose:

  • πŸ”‹ Never turn off when charging (good for navigators or reading)
  • ⏳ 1 hour (maximum value on most firmware)
  • πŸ”„ Use system settings (return to standard timer)

Activate the mode (7 taps according to MIUI)

Find "For Developers" in the settings

Select "Sleeping mode while charging"

Set "Never" or "1 hour"

Reboot your phone to apply changes-->

Important: Some models (e.g. Xiaomi 12T) may never have the option, even in developer mode, in which case use alternative methods from the following sections.

3. Applications to disable auto-extinguishing

If system settings don’t provide the flexibility needed, third-party utilities will come to the rescue, and they are especially useful when you need to turn off your sleep timer for specific applications (for example, YouTube or Google Maps).

Here's the top.-3 Proven applications for Xiaomi:

AnnexFunctionsNeed root?Link to Play Market
Keep Screen OnKeeps the screen on for selected applications, works in the background❌ No.Reference
CaffeineActivated by notification, supports MIUI 14+❌ No.Reference
Screen AliveIt works through Accessibility Service, supports Redmi and POCO.❌ No.Reference

How to set up Keep Screen On (example:)

  1. Install an app from the Play Market.
  2. Open it and grant permission for Special Opportunities (required for work).
  3. In the list of apps, mark those for which you want to turn off your sleep timer (such as Chrome or Waze).
  4. Activate the switch at the top of the screen.

Keep Screen On|Caffeine|Screen Alive|Other|I don't use it.-->

⚠️ Note: Applications that use the Accessibility Service may conflict with certain features MIUI, If you have lags after installation, try turning off other special features services in the settings.

4. ADB-Commands: Turn off sleep timer without root

For experienced users who are willing to work with ADB (Android Debug Bridge, there's a way to completely disable auto-sweeping. This method doesn't require root rights, but it requires a computer and a computer. USB-cable.

Instructions:

  1. Download and install ADB Tools on your PC (e.g. Google’s Platform Tools).
  2. Turn on USB debugging on your phone: Go to Settings β†’ Additional β†’ Developer. Activate USB debugging.

cmd

ADB

adb devices

The serial number of your device should appear.

adb shell settings put global stay_on_while_plugged_in 3

where 3 means "always on (both on the battery and when charging)".

Other values for the team:

  • 0 - offline
  • 1 – only when charging from the network
  • 2 – only when charging from USB
  • 3 – always (both on the battery and when charging) – this value can significantly reduce battery life!

⚠️ Note: After restarting the phone or updating MIUI setting ADB They can reset. To get them back, repeat the command. To have a permanent effect, you'll need to create an automatic execution script when you start the system (requires root).

5. Engineering menu: hidden screen parameters

Xiaomi smartphones have a hidden engineering menu where you can adjust display options that are not available in the standard interface, which is suitable for models on Qualcomm processors (for example, Redmi Note 11 Pro, POCO X4 Pro).

To get into the engineering menu:

  1. Open the Phone app and enter the code: ##4636###
  2. Slip on the top of the screen (where the charge level is displayed) 5 times in a row – the hidden menu of MTK Engineer Mode (for Mediatek) or Qualcomm Service Menu will open.

Carefully study the options available β€” you can not only turn off auto-extinguishing, but also adjust the brightness, color temperature and even test the display for broken pixels. However, do not change the parameters, the purpose of which you do not know β€” this can lead to malfunctions in the screen.

What to do if the engineering menu is not opened?
If the code ##4636### doesn’t work, try alternatives for your model: – For Mediatek: ##36446337## or ##8255## – For Qualcomm: ##7780## (setting reset) or ##0*# (display test) On some MIUI firmware, the engineering menu is blocked – in this case, only ADB or root access will help.

6. Set up exceptions for individual applications

If you want to keep the screen from going out only in certain apps (like Google Maps or Netflix), you can set up exceptions without third-party utilities. In MIUI 14/15, this feature is called Auto Rotation or Orientation Lock, but it can be adapted for our purposes.

How to do this:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Select the appropriate app (e.g. YouTube).
  3. Slip on Extra or Permits.
  4. Find the screen lock or battery exceptions and activate it.
  5. In some firmware, this option is hidden – then use the Keep Screen On app (see Section 3).

MIUI also has Read Mode, which automatically increases screen time when opening books or long articles, to activate:

  1. Go to Settings β†’ Display β†’ Reading Mode.
  2. Turn on the option and set up triggers (such as auto-enable in the Chrome app).

πŸ’‘

Customizing application exceptions is the most balanced way, and it keeps energy efficiency going, but it turns off auto-sweeping only where it's really needed.

7 Problems and Solutions: Why the Screen Is Still Going Out

Sometimes even after all the settings, the screen keeps turning off, and let's look at the typical causes and ways to fix them:

Problem.Possible causeDecision
The screen goes out in 10 seconds.Power saving mode activatedTurn it off in Settings β†’ Battery β†’ Power saving mode
Settings are reset after rebootingMisfunction of MIUI or firmware updateRepeat the setup via ADB or use Tasker to automatically apply commands
Screenholding apps don't workAccessibility Service or MIUI OptimizationTurn off optimization in Settings β†’ Additional β†’ Special features β†’ MIUI Optimization
The screen doesn’t go out at all, even when the phone is locked.Incorrect ADB-firmwareAdb shell settings put global settings stay_on_while_plugged_in 0 discharged

If none of the methods worked, check the phone for viruses or reset the settings to factory (be sure to back up!).In rare cases, the problem may be due to a malfunction of the proximity sensor or firmware - then only contacting the service center will help.

FAQ: Frequent questions about screen autosweeping on Xiaomi

Can I turn off the screen for always, even without charging?
Yes, but it will significantly reduce battery life. ADB-Adb shell settings put global stay_on_while_plugged_in 3. Or install the Keep Screen On app and activate it for all apps, and note that this mode can overheat your phone.
Why did the MIUI update reset the sleep timer settings?
This is standard MIUI behavior, after major updates, some custom settings are reset. To return the same settings: Reset manually through Settings β†’ Display β†’ Sleep mode. If you used ADB, run the command again. Use Tasker or MacroDroid to automatically restore the settings.
Is there a way to turn off autospotting just for YouTube?
Yes, there are a few options: Use the Keep Screen On app and add YouTube to the exclusion list. Enable Movie Mode in YouTube settings (on some firmware this cancels your sleep timer). Set up a setup. ADB-The command is only for a specific package (you need to know how to work with am.
Is it safe to use the engineering menu to change your screen settings?
Yes, if you only change the settings associated with Sleep or Timeout. However: Do not change the values that you do not know the purpose (for example, Display Color Temperature or Gamma Correction). Some parameters can lead to overheating of the screen or accelerated battery discharge. AMOLED-displays (for example, Xiaomi 13 Pro) incorrect settings can cause pixels to burn out. If after changes the screen started to flicker or display colors incorrectly, reset the display settings through the same engineering menu.
How to return the standard sleep timer settings if I break something?
To reset all changes related to screen auto-sweeping: ADB-The command is: adb shell settings put global stay_on_while_plugged_in 0 For the engineering menu, look for Restore Defaults or Reset in the Display section. For apps like Keep Screen On, just delete them or turn them off in the special features settings. If nothing helps, reset your phone to factory settings (Settings). β†’ Additionally. β†’ Resetting settings).