How to completely disable sleep mode on Xiaomi phone: a step-by-step guide

Why Xiaomi Phone Goes Sleepy and How to Fix It

Have you noticed that your Xiaomi, Redmi or POCO screen goes out too quickly? Or do apps fall asleep in the background, interrupting downloads and notifications? Sleep mode is a standard power saving feature, but sometimes it works too aggressively. In this article, we will discuss all the ways to turn it off, from basic settings to hidden settings for power users.

The manufacturer adjusts the screen timeouts and background activity by default to save battery power. However, on MIUI 12-14 (and even on new versions of HyperOS), these settings can be flexibly adjusted. It is important to understand that completely turning off sleep mode will increase battery consumption by 15-30% depending on the model, which is a point that owners of devices with a small battery (for example, Xiaomi 12 Lite or Redmi Note 10).

We tested all the methods on the current firmware in 2026. If your phone runs on Android 10-14, the instructions below will fit with a 95% probability. For older models (for example, Redmi 5 on MIUI 9), some points may be missing - in which case, use alternative methods from the last section of the article.

πŸ“Š What kind of Xiaomi model do you have?
Redmi Note 12/13
POCO X5/F5
Xiaomi 13/14
Redmi 10/9
Another model

Method 1: Change the screen shutdown time

The easiest way is to increase the screen backlight timeout, which doesn't completely shut down sleep mode, but makes it less visible, and is suitable for most tasks, like reading, watching videos, or working with documents.

Instructions:

  1. Open the Settings β†’ Screen.
  2. Select the "Sleep" option after (or screen timeout on new versions).
  3. Set the maximum value of 30 minutes or Never (if available).
  4. Confirm the changes by clicking Ready.

On some models (e.g. POCO F4), this item may be in Settings β†’ Display β†’ Additional. If the option is Never missing, it means that the manufacturer has blocked it for your firmware, move to the next method.

Make sure your phone is over 20% charged.

Close all background applications

Turn off the power saving mode

Check the version. MIUI customized-->

Method 2: Disabling Battery Optimization for Applications

MIUI aggressively lulls apps into the background to save power, leading to notification problems (e.g., no messages on Telegram or WhatsApp) or interruption of downloads, and adding the right programs to the exclusion list.

How to do this:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select the app you want (like Viber or Google Chrome).
  3. Tapping on Battery Optimization (or Auto Run on older versions).
  4. Choose Unlimited or Allow Auto Start.
  5. Go back and turn on the Block option in the background (if any).

For mass optimisation disabling:

  • πŸ”§ Use the settings. β†’ Battery β†’ Battery mode β†’ Select Performance (increases charge consumption!).
  • πŸ“± Install a third-party app like Greenify (requires root rights for full control).
  • βš™οΈ Activate Developer Mode (instruction below) for advanced settings.

πŸ’‘

If notifications still don't come after the changes, check your Google account sync settings, and sometimes the problem is with the background data for Google Play services that is disabled.

Method 3: Using Developer Mode (for experienced)

Android’s hidden settings allow you to turn off sleep mode at the system level, a technique that requires you to activate Developer Mode, but gives you maximum control over power consumption.

Step 1: Activate the Developer Mode:

  1. Open the Settings. β†’ The phone.
  2. Find the MIUI version and tap it 7 times in a row.
  3. Enter the screen unlock password (if requested).
  4. You will be notified that you have become a developer.

Step 2: Turn off sleep mode:

  1. Return to the main Settings menu β†’ Additionally. β†’ For developers.
  2. Find the option Do not turn off the screen (or Sleep in English firmware) and turn it on.
  3. To disable background optimization, find Background Process Limitation and set Without Limits.
  4. Restart your phone to apply the changes.

⚠️ Warning: Activating the Do Not Turn Off screen will keep the display running even when you lock it, and it can cause the matrix to overheat. AMOLED-Use screens (e.g. Xiaomi 13 Ultra) and shorten its lifespan. Use this mode only when connected to charging.

ParameterRecommended valueEffects of consequences
Keep the screen down.On.The screen is always on (the risk of overheating)
Limitation of background processesNo restrictions.Apps don’t fall asleep, but battery consumption increases
USB debuggingIncluded (optional)Need to. ADB-commands (see method 4)
Window animationOff. (0.5x)Accelerates the system.
What to do if there is no "Do not turn off the screen" item?
Some of the majors (e.g., global) MIUI For Redmi Note 11 this item may not be available. Alternative: 1. ADB-Install a third-party launcher (e.g., Nova Launcher) with a permanent screen option. 3. Connect your phone to charging - on many models, the screen does not go out when charging.

Method 4: Disabling Sleep Mode via ADB (Advanced)

For users who are ready to work with Android Debug Bridge (ADB), there is a way to turn off sleep at the system level, which is the most reliable method, but requires a computer and basic command-line skills.

Step-by-step:

  1. Download and install ADB Tools on PC.
  2. Enable USB debugging in the developer settings (see Method 3).
  3. Connect your phone to your computer via USB (select File Transfer mode).
  4. Open the command prompt (Windows) or terminal (Mac/Linux) in the folder with ADB.
  5. Enter the command to check the connection: Adb devices should appear serial number of your device.
  6. Switch to the command to disable sleep mode: adb shell settings put global stay_on_while_plugged_in 3 This command will keep the screen on while charging and from the battery.

To return the standard settings, use:

adb shell settings put global stay_on_while_plugged_in 0

⚠️ Note: Some banking applications (e.g. SberBank Online or Tinkoff) may block work on devices with debugging enabled USB. Before using this method, check the programs critical to you.

πŸ’‘

ADB-Teams can circumvent limitations MIUI, But you need to be careful, because the wrong commands can disrupt the system!

Frequent problems and their solutions

Even after you turn off sleep, you're going to have a nuanced experience, and you're going to look at the typical situations and how you can fix them.

Problem 1: The screen doesn’t go out, but the apps do.

  • πŸ”„ Check the Battery Optimization settings for each application separately.
  • πŸ“΅ Turn off the energy saving mode in the notification curtain.
  • πŸ”§ In Developer Mode, find Do Not Save Actions and disable this option.

Problem 2: After the MIUI update, the settings reset.

  • πŸ”„ Repeat the steps from the ways 1-3 β€” Updates often reset user settings.
  • πŸ“± Check the firmware version in Settings β†’ On HyperOS, the path to settings may be different.
  • βš™οΈ If you use ADB, Reissue commands again – they are reset by the primajor updates.

Problem 3: The phone overheats after the sleep mode is turned off.

  • 🌑️ Install a temperature monitoring app (for example, CPU Monitor).
  • ⚑ Connect your phone to charge – this will reduce the load on the battery.
  • πŸ”„ Return Battery Optimization Settings to Standard for Unnecessary Applications.

Alternative methods for older Xiaomi models

If your phone is running MIUI 8-11 or Android 7-9, some of the current settings may not be available.

For MIUI 8-9:

  • πŸ”§ Use the app. MIUI Battery Saver (available in the UK) MIUI Store) for fine-tuning power consumption.
  • πŸ“± Install a third-party launcher (such as Apex Launcher) with a permanent backlight option.
  • βš™οΈ Activate Developer Mode and manually configure Background Process Limitation.

For Android 7-8:

  • πŸ”„ Use the Keep Screen On app from Google Play – it emulates taps to keep the screen from going out.
  • πŸ“΅ Turn off all energy saving modes in Settings β†’ Battery.
  • πŸ”§ Check the settings for Special Opportunities β†’ Waiting time (sometimes there are hidden additional options).

Extremely old models (such as Redmi 3S or Mi 4) may require custom Recovery firmware (such as TWRP) and a modified firmware like LineageOS. This is a risky process that requires unlocking the bootloader – look for detailed instructions on the 4PDA or XDA Developers forums.

Can I turn off sleep mode only for individual applications?
Yes, but not on all versions of MIUI. In MIUI 12+, go to Settings β†’ Applications β†’ Application Management, select the right one and enable Background Lock + Auto Run. For older versions, use the Greenify app (requires root).
Why did the phone become more efficient after the sleep mode was turned off?
Sleeping mode saves up to 30% The charge is caused by the background and screen being turned off, and the processor, the Wi-Fi modules, after it's turned off, 4G) And the display is running all the time. To reduce the cost: Turn off Constant Network Search in the settings. SIM-Reduce the brightness of the screen to 50-60%. Turn on the Dark Theme (on) AMOLED-screens, it reduces consumption).
Is it safe to use ADB to turn off sleep?
Yes, if you follow the instructions and don't change other system settings. However: Always check the commands before entering. ADB If you have a backup, you can restart the device after the changes. ADB-commands the phone began to work unstable, reset the settings through Settings β†’ System system β†’ Resetting settings.
How to return the standard sleep settings?
To roll back all changes: Return screen timeout to Settings β†’ Screen. β†’ Sleep after (set up) 1-2 Turn off the screen in the developer settings. ADB The command is: adb shell settings put global. stay_on_while_plugged_in 0 Reset the battery optimization settings for all applications. If the problem persists, reset the settings via Settings β†’ System system β†’ Resetting settings β†’ Reset all settings (app data will not be deleted).
Does this work on POCO and Black Shark?
Yes, all instructions are relevant for POCO and Black Shark, as they run on MIUI or HyperOS. Exceptions: Black Shark may not have Sleep after β€” use the developer settings. POCO F1/F2 path to energy saving: Settings β†’ Battery and performance. For gaming phones (Black Shark 5) it is recommended not to turn off sleep completely β€” this will reduce FPS in games.