How to completely turn off sleep on the Xiaomi phone: 5 working ways

Why Xiaomi’s Sleep Mode is Interfering with Users and When to Turn It Off

Sleep mode (or β€œsleep mode”) on Xiaomi smartphones is an energy-saving feature that automatically turns off the screen and pauses background processes when the device is inactive. In most cases, it is useful: saves battery power and prolongs battery life. However, there are situations when automatic switching off the screen becomes a problem.

For example, you watch a long video on YouTube or Twitch, you read an e-book in an app, or you use your phone as a navigator in your car, and the screen goes out after 30-60 seconds, interrupting the process. This is especially annoying on Redmi Note and POCO models, where aggressive power saving timeouts are installed by default. Another common reason to turn off is to test apps where you want the screen to stay on all the time.

In this article, we will analyze all available ways to turn off sleep mode on Xiaomi, including standard MIUI settings, hidden developer parameters, as well as advanced methods using ADB. Separately, we will dwell on the nuances for different versions of firmware (from MIUI 12 to MIUI 14) and models (Xiaomi 13, Redmi Note 12, POCO F5, etc.).

Method 1: Change the time of automatic screen shutdown

The easiest and safest method is to increase the interval before the screen is turned off, which will not completely turn off sleep mode, but will make it less intrusive, suitable for most users who only need a little more time before blocking.

Instructions:

  • πŸ“± Open the Settings. β†’ Screen.
  • ⏱️ Find the Sleep option after (or Automatically turn off the screen in new versions) MIUI).
  • πŸ”’ Choose the maximum value – usually 10 minutes or 30 minutes (depending on the model).
  • πŸ”’ On some devices (POCO X5, Redmi K60) You may need to confirm your password.

Please note: Xiaomi with AMOLED-screens (e.g. Xiaomi) 12T or Redmi K50) Long periods of inactivity with the display on can cause pixels to burn out. If you need to keep the screen on for more than 30 minutes, it's best to use alternative methods from this article.

πŸ“Š What Xiaomi model do you use?
Redmi Note 11/12
POCO X/F-series
Xiaomi 12/13/14
Black Shark
Another model

Method 2: Turn off sleep through "Developer settings"

If standard settings are not enough, you can use hidden options for developers, which allows you to completely disable automatic screen shutdown, but requires pre-activation of the developer mode.

How to turn on the developer parameters:

  1. Go to Settings. β†’ The phone.
  2. Find the MIUI version and tap it 7 times in a row (you will be notified "You became a developer!").
  3. Return to the main settings menu – there will be a new section for developers.

Now, turn off the dream:

  • πŸ› οΈ Go to Settings. β†’ For developers.
  • πŸ” Scroll down to the Debugging block.
  • πŸ”„ Find the option to β€œDo not turn off the screen” (or β€œRemain active in new versions”) and turn it on.
  • ⚠️ On some firmware (MIUI 14 for Xiaomi 13 Ultra) this option may not be available – then use Method 3.

⚠️ Warning: Activating Developer Mode opens up access to system settings that could disrupt the stability of your phone. Do not change other options on this menu unless you are sure of their purpose.

β˜‘οΈ Preparation for changing the developer’s settings

Done: 0 / 4

Method 3: Using apps to block sleep

If the system settings don’t work, you can use third-party utilities, which are especially useful for POCO and Black Shark, where the manufacturer often limits user settings for the sake of a β€œgame experience.”

Top.-3 tested applications:

AnnexFeaturesDownload link
Keep Screen OnA simple app with a widget for fast sleep blocker on/off, runs on MIUI 12-14 without root.Google Play
CaffeineAdds an icon to the notification panel to temporarily shut down sleep. Supports Xiaomi, Samsung, OnePlus.Google Play
Stay AliveAdvanced Settings: You can only turn off sleep for specific apps (like Google Maps or Waze).Google Play

How to set up Stay Alive (Like Redmi Note 11):

  1. Install the application and open it.
  2. Go to the Apps section and select those that you want to turn off sleep for (like YouTube or Google Chrome).
  3. Turn on the option to keep the screen on.
  4. In the application settings, activate Ignore Battery Optimization (important for MIUI!).

⚠️ Note: Some apps (e.g. Stay Alive) require permission to Overlay over other windows. β†’ Annexes β†’ Permits β†’ Special access β†’ Overlaying on top of other applications.

Method 4: Turn off sleep through ADB (for power users)

If previous methods have failed, you can use Android Debug Bridge (ADB), a tool for low-level device management, which is suitable for Xiaomi on MIUI 13/14, where the manufacturer often blocks user settings.

What you need:

  • πŸ–₯️ Computer with installed Xiaomi and ADB-tools drivers.
  • πŸ“± Included debugging by USB on the phone (Settings) β†’ For developers β†’ Debugging by USB).
  • πŸ”Œ USB-cable (preferably original).

Step-by-step:

  1. Connect the phone to the PC and confirm the debugging permission on the device screen.
  2. Open the command prompt (or Terminal on Mac/Linux) and type:
adb devices

(Your device should appear on the list.)

  1. Run the command to turn off sleep:
adb shell settings put global stay_on_while_plugged_in 3

Where 3 means that the screen will always be on when connected to the charge and from the battery.

  • 0 - turned off (by default).
  • 1 – only when charging via USB.
  • 2 - only when charging from the network.

Once this command is executed, the sleep mode will be turned off at the system level, and it cannot be turned on back through the standard settings. To return everything as it was, use the same command with 0.

πŸ’‘

If, after the execution, ADB-When you have the commands, the screen will still go out, check the settings of the Security app on Xiaomi. Sometimes it will block changes made through the app. ADB. To do this, go to the Settings. β†’ Annexes β†’ Permit management β†’ Autostart and enable Autostart for Settings.

Method 5: Set up exceptions for individual applications

If you only need to turn off sleep for specific programs (like Google Maps or Netflix), you can use the built-in MIUI tools.

How to add an appendix to the exceptions:

  • πŸ“Œ Open the Settings. β†’ Annexes β†’ Application management.
  • πŸ” Find the right app (like Waze) and tap it.
  • πŸ”„ Select Permissions β†’ Other permits.
  • πŸ”’ Turn on the option to Display on top of other apps and Ignore battery optimization.

For MIUI 14 (on Xiaomi 13, Redmi K60 and newer), the path is a bit different:

  1. Go to Settings β†’ Battery and Performance.
  2. Select Battery Consumption Management for applications.
  3. Find the application and set a No Limits mode for it.

This method is especially useful for navigation applications (Yandex.Navigator, Google Maps), where it is important that the screen does not go out while moving. However, keep in mind that the constant operation of the screen at maximum brightness reduces battery life by 15-20%.

What to do if the app is still "sleeping"
Check battery saving and performance settings β†’ ultra-low mode. Sometimes MIUI will force background processes to be suspended even for applications with exceptions. Turn off this mode or add the app to the list of allowed ones.

Problem Solving: What to Do When Nothing Works

If none of these methods helped, the problem may lie in the following factors:

  • πŸ”‹ Aggressive battery optimization in MIUI (particularly POCO Redmi with firmware for gaming phones).
  • πŸ›‘οΈ Blocking system changes with Xiaomi Security antivirus.
  • πŸ“± Manufacturer restrictions on some models (Black Shark, Xiaomi Mix Fold).

Checklist for diagnosis:

β˜‘οΈ Diagnostics of problems with sleep regimen

Done: 0 / 9

If the problem persists, you can try alternative firmware (e.g. Xiaomi.EU or Pixel Experience) where the restrictions on shutting down sleep are less stringent, however, this requires unlocking the bootloader and may be unwarranted.

πŸ’‘

On Xiaomi phones with Snapdragon 8 Gen 2 processors (such as the Xiaomi 13 Pro or Redmi K60 Pro), a rollback to the previous MIUI version via Fastboot sometimes helps.

FAQ: Frequent questions about switching off sleep mode on Xiaomi

❓ Why After Updating to Update MIUI 14 Old ways to shut down sleep stop working?
Xiaomi has tightened its energy saving policies in newer versions of firmware. Now, to turn off sleep, you often need to use ADB or third-party apps with extended resolutions. Try the way with ADB from this article or install Stay Alive with Aggressive Doze mode enabled.
❓ Will the battery run out faster if you turn off sleep?
Yes, but not critically. In our tests on the Redmi Note 12 Pro+, running the screen at medium brightness increases battery consumption by ~10-15% per hour. If the phone is connected to charging, the impact is minimal. Use adaptive brightness and dark themes to save charge.
❓ Can sleep be turned off only for a specific application without root?
Yes, with the Stay Alive app or Don't Sleep. They let you create rules for individual programs (like YouTube or Twitch). Also check the battery optimization settings for this app in Settings β†’ Battery and Performance.
❓ Why not? POCO F5 There is no option β€œDo not turn off the screen” in the developer settings?
In some models POCO And Xiaomi's Black Shark removes this option from the developer menu. ADB-A command from Method 4 or third-party utilities, also check if the option is hidden under another name (e.g., Stay active).
❓ How to return standard sleep settings after use ADB?
Use the same command, but with a parameter. 0: adb shell settings put global stay_on_while_plugged_in 0 If it didn’t help, reset the Settings app settings (Settings). β†’ Annexes β†’ Settings β†’ Warehouse β†’ Drop it).