How to turn off sleep mode on Xiaomi phone: all ways

Sleep mode on Xiaomi smartphones is an energy-saving feature that automatically turns off the screen after a predetermined period of inactivity. For most users, it is useful, but there are situations when you need to completely deactivate the sleep of the screen – for example, when using the phone as a navigator, while watching long videos or debugging applications. In this article, we will discuss all possible ways to turn off sleep mode on Redmi, POCO and other Xiaomi devices running on MIUI 12-15.

It is important to understand that completely turning off the screen sleep increases battery consumption by 15-30% depending on the model, as confirmed by the tests on the Xiaomi 12 Pro and Redmi Note 11. If you need a temporary solution, you should use the Always On Screen (AOD) modes or the developer settings.

Why does Xiaomi phone fall asleep quickly?

By default, all Xiaomi smartphones have an automatic screen shutdown timer β€” usually 30 seconds or 1 minute β€” which is controlled by several systems:

  • πŸ”‹ Energy conservation MIUI β€” Limits background activity and screen time to save charge.
  • πŸ“± Display settings – here is the main sleep timer (from 15 seconds to 10 minutes).
  • πŸ”§ Developer modes – contain additional parameters, including forced sleep shutdown.
  • πŸ› οΈ Hidden settings MIUI β€” Deactivate sleep even when the device is blocked.

If your Xiaomi goes out too quickly, the problem may be:

  • πŸ”„ Active Ultra-Economic or Super-Battery (turns off the screen in 10-15 seconds).
  • πŸ“² Aggressive optimization applications (e.g. Clean Master or Built-in Security).
  • πŸ”§ Reset settings to factory (returns the sleep timer to the default value).
πŸ“Š Why you need to turn off sleep mode?
To navigate in the car
Keep the screen from going off while reading
To debug applications
Because of the MIUI bug.
Other

Method 1: Change the sleep timer in standard settings

The easiest method is to increase the time to automatically turn off the screen, which will not turn off sleep completely, but will allow you to set the maximum possible interval (up to 10 minutes on most models).

Instructions:

  1. Open the Settings β†’ Screen.
  2. Select Sleep Mode (or Sleep Timer on some firmware).
  3. Set the maximum value – usually 10 minutes or 30 minutes (depending on the model).
  4. Save the changes.

Check the battery level (recommended >50%)

Close all background applications

Connect the charger if you plan to use it for a long time.

Take a screenshot of the current settings (in case of rollbacks)

-->

Limitations of the method:

  • ❌ Does not turn off sleep completely - only increases the timeout.
  • ❌ In some models (for example, POCO F3) maximum value - only 5 minutes.
  • ❌ After locking the device, the screen will still go out.

πŸ’‘

If your settings don’t have the β€œSleep Mode” option, try searching through the search bar at the top of the β€œSettings” menu.

Method 2: Using the Developer Mode

To completely shut down the screen sleep, you’ll need to activate the developer mode and change hidden settings, a technique that works on all versions of MIUI, but requires caution – incorrect settings can cause crashes.

Steps to activate the developer mode:

  1. Go to Settings. β†’ The phone.
  2. Find the MIUI version and tap it 7 times in a row.
  3. Enter a password/pattern lock if required.
  4. You will be notified: You have become a developer.

Now turn off the sleep mode:

  1. Back to Settings β†’ Additionally. β†’ For developers.
  2. Find the option Do not turn off the screen (or Stay awake on English firmware).
  3. Activate it – now the screen will not go out when you connect to charging.
  4. To completely turn off sleep, find the screen timeout and set Never (if such an option is available).
What to do if there is no β€œDo not turn off the screen” item?
On some firmware (for example, MIUI 14 For the European region, this parameter may not be available: 1. Change the firmware region to "India" or "Global" via Settings β†’ Additionally. β†’ Region. 2. Use it. ADB-Adb shell settings put global stay_on_while_plugged_in 3 (requires a connection to the PC and enabled debugging USB).

Warnings:

⚠️ Warning: Activating the Do Not Turn Off screen will result in a quick battery drain (up to 1-2% per hour in standby mode.

Method 3: Hidden Settings (MIUI)

If standard methods do not help, you can use the hidden menu MIUI Hidden Settings, which allows you to turn off sleep mode even when you lock the device, but requires the installation of an additional application.

Instructions:

  1. Download the MIUI Hidden Settings app from Google Play.
  2. Open it and provide all the necessary permissions (including access to system settings).
  3. Go to the Display β†’ Sleep section.
  4. Select Never from the sleep timer drop-down menu.
  5. Save the changes and restart the device.

Features of the method:

AdvantagesDeficiencies
Complete sleep blackout, including blockingRequires third-party software installation
It works on all versions of MIUI.It may be reset after system updates
Doesn't require root rightsThe application may conflict with some optimizers

⚠️ Attention: After use MIUI Hidden Settings check the proximity sensor. On some models (Redmi Note 10 Pro) this can cause false positives during calls.

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

If you need to completely and permanently disable sleep mode, including locking the screen, you can use ADB commands. This method is suitable for advanced users and requires connecting the phone to a computer.

Step-by-step:

  1. Install ADB Tools on your PC.
  2. Activate debugging over USB in the developer settings.
  3. Connect your phone to your PC and execute the command: Adb devices (you should display your device).
  4. Enter the command to turn off sleep: adb shell settings put global stay_on_while_plugged_in 3 (This will turn off sleep when connected to charging).
  5. To completely shut down (including battery life) use: adb shell settings put system screen_off_timeout -1

To return the standard settings, do:

adb shell settings put system screen_off_timeout 30000

(where 30,000 is time in milliseconds, for example 30 seconds).

πŸ’‘

ADB commands are reset after resetting settings or updating MIUI. To keep the changes, create a script to automatically execute commands when booting.

Method 5: Applications for Forced Wake-Up

If you need to temporarily turn off sleep (for example, to read or watch a presentation), you can use specialized applications. They do not require root rights and are easily removed.

Top.-3 apps:

  • πŸ“± Keep Screen On: Keeps the screen on while the app is active.
  • πŸ”„ Caffeine – Adds a button to the notification panel for a quick wake switch.
  • πŸ› οΈ Stay Alive – allows you to configure exceptions for individual applications (for example, do not turn off the screen only in Google Maps).

How to set up Stay Alive:

  1. Install the app from Google Play.
  2. Open it and give permission to change system settings.
  3. Go to the Applications section and select those for which you need to turn off sleep mode.
  4. Activate the option to keep the screen on.

Advantages of this method:

  • βœ… No changes to system settings are required.
  • βœ… You can flexibly adjust for individual applications.
  • βœ… Easy to disable if necessary.

What to do if the sleep mode does not turn off?

If none of these methods worked, the problem may be related to:

  • πŸ”§ Firmware limitations - on some versions MIUI Hidden settings blocked for the European region.
  • πŸ“± Broken proximity sensor – if the phone thinks it’s near the ear, it will turn off the screen.
  • πŸ”‹ Active Saving Mode – Check the battery settings in Settings β†’ Battery.
  • πŸ› οΈ System failure – try resetting to factory settings (but back up first!).

Diagnostic algorithm:

  1. Check the proximity sensor with the test: ##6484## (dial in the dialer).
  2. Turn off all battery optimizers in Settings β†’ Battery β†’ Battery Optimization.
  3. Try changing your energy profile to productivity.
  4. If the problem remains, run the phone through the Mi Flash Tool (requires unlocking the bootloader).
How to check the proximity sensor without a code?
1. Open the Phone app and dial any number. 2. Hold your hand to the top of the screen (where the speaker is located). 3. If the screen goes out, the sensor works. If not, repair or replacement of the plume is required.

FAQ: Frequent questions about sleep mode on Xiaomi

Can I turn off sleep without root rights?
Yes, all of the methods described in this article (except ADB) work without root, but MIUI Hidden Settings or third-party applications may be required to completely shut down sleep when blocked.
Why did the MIUI update turn on sleep again?
Updates reset some settings, including ADB settings and hidden options, and after the update you will have to re-use commands or configure applications.
Is it safe to use ADB to shut down your sleep?
Yes, if you follow the instructions and don't change other system settings, but it's not recommended to turn off sleep forever, because it reduces battery life.
How to turn off sleep mode only for a specific application?
Use the Stay Alive or Tasker app, and you can create rules for individual programs, such as keeping the screen from going out while Google Maps or Waze is running.
Which is better: increase your sleep timer or turn it off completely?
Depending on the task: For navigation or video, it is better to turn off completely (via ADB or Hidden Settings). For everyday use, you can increase the timer to 5-10 minutes. Completely shutting down the battery strongly, so use it only when necessary.