How to permanently disable automatic screen shutdown on Xiaomi: a step-by-step guide

The screen of your Xiaomi, Redmi or POCO Does it go out too quickly while reading, watching videos, or working with the navigator? MIUI They limit the maximum latency to 30 minutes, but there are ways around this limit, both legal and hidden. In this article, we'll look at all the methods you can use, from basic settings to use. ADB-commands and third-party utilities.

The problem is relevant for all devices on MIUI 12–15, including flagship models (Xiaomi 14, 13T Pro) and budget (Redmi Note 12, POCO X5). This is especially true for users who use their phones as GPS-navigator, read books on FBReader or watch long videos on YouTube. It is important to understand that completely turning off the screen timeout can reduce battery life by 15-30% - consider this when choosing a method.

Standard MIUI settings: maximum latency

The easiest way is to increase screen timeouts through the settings menu, and unfortunately, MIUI artificially limits the maximum value to 30 minutes, but even that is enough for most tasks.

Instructions:

  • πŸ“± Open the Settings. β†’ Screen (or Display on some firmware).
  • ⏱️ Find the Sleep item after inactivity (or screen timeout).
  • πŸ”’ Select the maximum value - 30 minutes.
  • πŸ”’ Confirm the changes if required.

On some models (Black Shark, POCO F5), this item may be in Settings β†’ Battery and Performance β†’ Power Management. If you don’t have a 30 minute option, then the firmware is modified – try other ways from this article.

πŸ’‘

On devices with AMOLED-With screens (such as the Xiaomi 13 Ultra), long-term display turn on can cause pixels to burn out.

2. Developer Mode: Hidden Timeout Settings

MIUI hides advanced screen management options in developer mode, and by activating it, you will have access to additional timeouts, including Never (on some firmware).

How to turn on the developer mode:

  1. Go to Settings. β†’ The phone.
  2. Find the MIUI version and tap it 7 times in a row.
  3. Enter the unlock password if necessary.
  4. Return to the main settings menu and a new section for developers will appear.

Now, look in this section for the option of Sleep when connected to charging or Timeout screen in developer mode. Here you can find values up to Never (depending on the model and version of MIUI).

What to do if there is no β€œNever” option?
On some firmware (MIUI 14 for global version) option Never missing. In this case, try using ADB-commands (section 4) or applications from section 5.

3. Applications for forced screen activation

If the system settings don't work, third-party utilities will come to the rescue. We tested 5 popular apps β€” the best ones support Xiaomi without root rights.

AnnexDemands a Root.Max time.Compatibility
Keep Screen On❌ No.⏳ No, no.MIUI 12–15, Android 10–14
Caffeine❌ No.⏳ 1-24 hoursAll models except the Black Shark
Screen Alive⚠️ Partially.⏳ No, no.Demands. ADB-permitting
Stay Alive❌ No.⏳ CustomizableSupports POCO and Redmi

Keep Screen On is the simplest and doesn't require any additional permissions.

  1. Launch the app.
  2. Activate the Keep Screen on switch.
  3. Select Always (always enabled) in the settings.
  4. Add the application to Auto Run (in MIUI settings).

⚠️ Note: Caffeine-type apps may conflict with battery optimization MIUI. After installation, add them to No Limits via Settings β†’ Annexes β†’ Battery management.

Keep Screen On|Caffeine|Screen Alive|Stay Alive|No, no, no, no enough system settings-->

4. ADB-commands: complete timeout shutdown (no root)

For advanced users, there is a way to permanently disable automatic screen shutdown via ADB (Android Debug Bridge), a method that works on all Xiaomi models with Android 8.0+ and does not require superuser rights.

Step-by-step:

Install Platform Tools on PC|Turn on Debugging. USB developer-setting|Connect your phone to the PC by USB (File transfer mode)|Open the command line in the folder with adb.exe-->

adb shell settings put global stay_on_while_plugged_in 3


adb shell settings put system screen_off_timeout 2147483647

Transcript of commands:

  • πŸ”Œ stay_on_while_plugged_in 3 β€” The screen is always on when connecting to charging.
  • ⏳ screen_off_timeout 2147483647 β€” The maximum possible time out (about) 68 years).

To return the standard settings, do:

adb shell settings delete system screen_off_timeout

⚠️ Attention: On some firmware (MIUI 15 for China region) these commands can be reset after the reboot. In this case, use Tasker to automatically apply settings when you start.

5. Automation with Tasker: Flexible Screen Control

Tasker is a powerful automation tool that allows you to create rules for turning on / off the screen depending on conditions (for example, only in certain applications or when connecting to a Bluetooth device).

Example of profiles for permanently turning on the screen in Google Maps:

  1. Create a new profile (+ β†’ App β†’ Select Google Maps).
  2. Add the task (+ β†’ Display β†’ Time-out display).
  3. Set the value 3600000 (1 hour -1 (limits).
  4. Save and activate the profile.

To work at MIUI, Tasker must:

  • πŸ”“ Allow auto-start in Settings β†’ Annexes β†’ Tasker β†’ Auto-start.
  • πŸ›‘οΈ Disable battery optimization for Tasker.
  • πŸ”„ Turn it on. ADB-permissions (if required).

πŸ’‘

Tasker is the only way to flexibly control the screen depending on the context (app, geolocation, time of day).

Alternative methods: from USB-customization

If none of the above methods worked, consider these options:

  • πŸ”§ Custom recovery (TWRP): Install a modified firmware (e.g. LineageOS) where restrictions are MIUI No, no, no, no. Requires unlocking the bootloader!
  • πŸ”„ USB-debugging + Write a script in Python using adb that will wake up the screen every minute with the adb shell input tap 100 100 command.
  • πŸ“± Kiosk Mode: Enable Kiosk Mode through Settings β†’ Special features – the screen will not turn off in the fixed application.
  • πŸ”‹ Power connection: On some models (Xiaomi Pad 6), the screen does not turn off when connected to charging if you activate Developer Mode. β†’ Sleep while connected to charging β†’ Never.

For POCO F4 GT or Black Shark 5 users, there is a unique Game Turbo feature that allows you to turn off screen timeouts in games.

Settings β†’ Special features β†’ Game Turbo β†’ Screen settings.

FAQ: Frequent Questions and Problems

❓ Why After Updating MIUI timeout settings have been dropped?
MIUI Resets some system settings after major updates. To avoid this: Write down current ones before updating ADB-Commands (section 4) Re-apply them after the update. Use Tasker to automatically restore settings.
❓ Can I turn off screen timeouts only for specific applications?
Yes, this is the right way to do it: Tasker (section 5) - create a profile for the desired application. Stay Alive - in the settings, select the Applications and add the desired ones. Kiosk mode (section 6) - secure the application.
❓ Why the screen still turns off despite the settings?
Possible causes: πŸ”‹ Optimizing the battery: MIUI Forced to turn off the screen to save. Turn off optimization for applications in Settings β†’ Annexes β†’ Battery management. πŸ›‘οΈ Safe Mode: Restart your phone - the restriction may be working. πŸ”„ Resetting settings: After the update MIUI Some parameters are reset (see section 4).
❓ How to return standard timeout settings?
Execute the command: adb shell settings delete system screen_off_timeout # Adb shell settings put global stay_on_while_plugged_in 0 # Turn off the screen always on when charging or reset the screen settings via Settings β†’ System system β†’ Resetting settings β†’ Reset the display settings.
❓ Does this work on Xiaomi tablets (Pad) 5/6)?
Yes, but with reservations: πŸ“± On the Xiaomi Pad. 6 Pad 6 Pro is available mode Always enabled in the developer settings. πŸ”Œ When connected to charging, the screen does not turn off automatically (if activated). stay_on_while_plugged_in through ADB). ⚠️ Nana MIUI For tablets, there may be no option to Never in standard settings.