How to completely disable sleep mode on Xiaomi: 5 proven ways

Sleep mode on Xiaomi devices is an energy-saving feature that automatically locks the screen and pauses the background when inactivity. For most users, it is useful, but there are situations when it needs to be deactivated: during long downloads, when using the device as a monitor, for testing applications or when connecting to diagnostic equipment. In this article, we will discuss all the current ways to turn off sleep mode on Redmi, Poco and Mi smartphones and tablets running MIUI 12-14, including hidden settings and methods for advanced users.

It is important to understand that completely shutting down sleep mode can lead to accelerated battery drain and overheating of the device. We recommend using alternative solutions, such as temporarily increasing the screen timeout or activating the developer mode for fine-tuning. If you do decide to turn off the feature completely, follow the instructions below, taking into account your device model and firmware version.

1. Standard method: through screen settings

The simplest method is to change the lock timeout, which does not completely shut down sleep mode, but increases the time to activate it to a maximum of 30 minutes (on some models, up to 10 minutes), which is suitable for most users who need to temporarily prevent blocking.

Instructions:

  • ๐Ÿ“ฑ Open the Settings app (cog icon).
  • โš™๏ธ Go to the Screen section (or Display on some firmware).
  • โณ Select Sleep Mode (or Screen Timeout).
  • ๐Ÿ”ข Set the maximum value available โ€“ usually 30 minutes or 10 minutes.

Please note: on devices with AMOLED-screens (for example, Xiaomi 13 Pro or Redmi) K60) A long time out can cause pixels to burn out when a static image is displayed. If you need to keep the screen on for longer than 30 minutes, use the methods in the following sections.

๐Ÿ’ก

On some models (like the Poco F5), the maximum timeout is hidden. To unlock it, activate the developer mode (7 times click on the build number in Settings โ†’ About phone) and return to the screen settings - the option will appear 30 minutes.

2. Disconnect sleep mode through the developer mode

For experienced Xiaomi users, there are advanced settings to turn off sleep completely, which requires developer mode activation and works on all devices with MIUI 12 and later.

Steps:

  1. Activate the Developer Mode: ๐Ÿ”ง Go to Settings. โ†’ The phone. ๐Ÿ“ฑ Press 7 times in a row on the item Version MIUI (A notice will appear saying, โ€œYou have become a developer!").

For developers

Keep the screen down.

Stay awake

๐Ÿ”„ Restart the device to apply changes.

Once this option is activated, the screen will not lock when connected to the charger. On some models (such as the Redmi Note 12 Pro+), this feature only works when connected via the original Xiaomi cable. If the option is missing from your firmware, try the ADB method from the next section.

Developer mode activated |Device connected to charging |Data backup executed |Verified version of MIUI (12+)

-->

3.Use of ADB-commands to shut down completely

If standard methods donโ€™t work, you can turn off sleep mode via Android Debug Bridge (ADB), a method that works for all Xiaomi models, but requires a computer connection and basic command line knowledge.

Step-by-step:

  1. ๐Ÿ’ป Install. ADB-computer-driver (Windows/macOS/Linux).
  2. ๐Ÿ“ฑ On the phone, turn on the debugging. USB developer-setting.
  3. ๐Ÿ”Œ Connect the device to the PC and confirm the debugging permission.
  4. ๐Ÿ–ฅ๏ธ Open the command line (or Terminal) and enter:
adb shell settings put global stay_on_while_plugged_in 3

This command causes the device to remain active when connected to the charger.

  • 0 - offline
  • 1 โ€“ only when connected to a network (220V)
  • 3 โ€” charger (USB/network adapter)

To return the standard settings, use:

adb shell settings put global stay_on_while_plugged_in 0
What if the ADB does not recognize the device?
1. Make sure that the debugging is enabled by USB 2. check if the drivers are installed for your Xiaomi model (download from the official website). 3. Try another one. USB-cable (preferably original). 4. Restart your device and computer. 5. If you are using Windows, try running the command prompt on behalf of the administrator.

4. Applications for sleep control

If you don't want to mess with settings or ADB, you can use third-party apps from Google Play, which allow you to flexibly manage screen timeout and energy saving.

AnnexFunctionsCompatibilityFeatures
Keep Screen OnKeeps the screen on when you start selected applicationsMIUI 10โ€“14No rooting, it works through Accessibility Service.
CaffeineTemporary shutdown of sleep mode by timerAndroid 8.0+Minimalist interface, no advertising
Stay Alive!Advanced control of screen lock and batteryMIUI 12+Requires permission for special opportunities
TaskerAutomation of sleep-deactivation under conditions (for example, when connecting to a Bluetooth device)All versions.Complicated setup but maximum flexibility

Warning: Apps using the Accessibility Service may conflict with Xiaomi system features such as Security or Battery Optimization.If lags or spontaneous reboots occur after installation, uninstall the app and use alternative methods.

Standard settings|Developer mode|ADB-team|Party of annex|I'm not turning off sleep.-->

5. Hidden settings for specific Xiaomi models

Some Xiaomi devices have unique power management options that are not dokumented in the official instructions.

For the Redmi Note 11 Pro+/12 Pro+:

  • ๐Ÿ”‹ In battery settings (Settings) โ†’ Battery) has a hidden power saving point when locked, disable it to reduce the aggressiveness of sleep mode.
  • ๐Ÿ“Š B Settings โ†’ Special facilities โ†’ Waiting time can be set to 1 hour (hidden by default).

For Xiaomi 13/13 Pro/14:

  • ๐Ÿ”„ B Settings โ†’ Display. โ†’ Advanced settings are Adaptive locking, and turning it off makes timeouts fixed.
  • ๐Ÿ”‹ B Settings โ†’ Battery โ†’ Battery settings can be turned off Deep energy saving, which will reduce the aggressiveness of sleep mode.

For Poco F4/F5:

  • ๐ŸŽฎ B Settings โ†’ Special facilities โ†’ Turbo mode can be enabled with the option Do not block the screen in games, which works for other applications.
  • โšก B Settings โ†’ Battery โ†’ High Performance Mode activates maximum performance mode, which indirectly affects sleep mode.

These settings may vary depending on the regional firmware. If you don't find the specified items, check the MIUI version in Settings โ†’ About Phone and upgrade your device to the latest stable version.

๐Ÿ’ก

On devices with a Snapdragon 8 Gen 2 processor (such as the Xiaomi 13 Ultra), sleep mode is controlled by a separate efficiency core.Switching it off completely can overheat โ€“ use this method only when absolutely necessary.

6.Potential problems and their solutions

Turning off sleep mode can have unexpected consequences, and here are the most common problems and ways to fix them:

โš ๏ธ Attention: On devices with MIUI 14 and newer when completely disconnecting the sleep mode through ADB Mi Protect can work, which will return the standard settings after rebooting. ADB Turn off automatic system updates in settings.

Problem.Reason.Decision
The screen does not turn off even after disconnecting from charging.ADB-team stay_on_while_plugged_in lostAdb shell settings put global settings stay_on_while_plugged_in 0
The device is overheating.Constant operation of the processor without "rest"Install a temperature control app (such as CPU Monitor)
Fast battery dischargeLack of energy saving in sleep modeUse the Adaptive Battery in the Power Settings
Applications are not updated in the backgroundConflict with MIUI optimization settingsAdd apps to No restrictions in battery settings

If the device starts to work unstable after the sleep mode is turned off (hangs, spontaneous reboots), reset to factory settings (Settings โ†’ About the phone โ†’ Resetting). Before that, be sure to back up the data through Settings โ†’ Additional โ†’ Backup and Reset.

7. Alternative solutions: when to turn off sleep mode is not necessary

In most cases, safer alternatives can be used instead of completely shutting down sleep mode:

  • ๐Ÿ”„ Adaptive lock: Include it in Settings โ†’ Display. โ†’ Adaptive lock: The device will stay active longer if detects movement or touch.
  • ๐Ÿ”‹ Mode "Always on screen" (AOD): Nana AMOLED-devices (Xiaomi 13, Redmi) K50) You can enable a minimum display of time and notifications without fully activating the screen.
  • โšก Game mode: In Settings โ†’ Special facilities โ†’ Game turbo mode can disable screen lock for specific applications.
  • ๐Ÿ“ฑ Screen is always on for charging: On some models (Poco) X5 Pro) in the developer settings there is an option Screen is always on when charging.

These methods allow you to maintain the main benefits of sleep mode (charge savings, screen protection from burnout) with minimal inconvenience, AOD-panel AMOLED-The displays consume less than 1% charge per hour, making them an ideal alternative to completely disabling locks.

FAQ: Frequent questions about shutting down sleep mode

โ“ Why after the sleep mode is turned off ADB settings are reset?
This is due to the Mi Protect feature, which restores the standard security settings when you restart. ADB-commands disable automatic system updates in Settings โ†’ The phone. โ†’ Update the system and restart the device manually.
โ“ Can I turn off sleep mode without connecting to charging?
On most Xiaomi devices, this is impossible without root rights. The most you can do is increase the timeout to 30 minutes or use applications like Caffeine that mimic user activity. Completely disconnecting without charging leads to a critical battery drain in 2-3 hours.
โ“ Why my Redmi Note 10 Pro doesnโ€™t have the โ€œDo Not Turn Offโ€ option in the developer settings?
This option only appeared in MIUI 12.5 and later. Update your firmware to the latest version via Settings โ†’ About Phone โ†’ System Update. If there are no updates, try switching to global or European firmware via the Mi Flash Tool (unlocked bootloader required).
โ“ How to turn off sleep mode only for specific applications?
Use the Stay Alive! or Tasker app: In Stay Alive!, go to the Apps section and add the programs you need to the exception list. In Tasker, create a profile with the condition Application is running and the action Disable screen lock. Xiaomi also has an integrated feature: Settings โ†’ Battery โ†’ Application Selection โ†’ Select Applications โ†’ Set for the desired application No Limits mode.
โ“ Is it safe to keep the screen on? 24/7?
No, it brings a few risks: ๐Ÿ”ฅ Overheating: Constant processor and screen backlighting increases the temperature, which reduces battery life. ๐Ÿ“‰ Burnout AMOLED: Static elements (navigation panels, icons) can be imprinted into the matrix. ๐Ÿ”‹ Battery degradation: When you constantly charge/discharge, the battery capacity decreases by 20โ€“30% in 6โ€“12 months. AOD-regimen AMOLED) or reduce the brightness to a minimum.