How to permanently disable automatic screen shutdown on Xiaomi: official and hidden methods

The screen of your Xiaomi, Redmi or POCO Is it going out too quickly, interrupting reading, watching videos, or navigating? MIUI They limit the maximum latency to 30 minutes, but there are ways to get around that limit. In this article, we'll look at all the possible methods, from basic settings to hidden features and the most basic ones. ADB-Teams that work even on the latest versions MIUI 14 and Android 14.

The problem of prematurely turning off the screen is relevant not only for older models like the Redmi Note 8 Pro or Mi 9T, but also for the flagships of 2023-2026: Xiaomi 13 Ultra, POCO F5 Pro or Redmi K60. The manufacturer artificially limits the display time โ€œto save batteryโ€, but this prevents with:

  • ๐Ÿ“– Reading books on Google Play Books or Moon+ Reader
  • ๐Ÿš— Using your phone as a navigator in Yandex.Navigator or Google Maps
  • ๐ŸŽฎ Playing games with passive phases (e.g, AFK Arena or Raid: Shadow Legends)
  • ๐Ÿ“บ Watch long videos on YouTube or Twitch without interaction
  • ๐Ÿ”ง Debugging applications through ADB or screencasting

We tested all the methods on Xiaomiโ€™s 15+ models (from the budget Redmi A2 to the top-end Xiaomi 14 Pro) and identified those that work. Importantly, some methods require unlocking the bootloader or superuser rights โ€” we noted them separately.

๐Ÿ“Š Why you need to turn off the screen sleep timer?
Reading books/mangas
Navigation in the car
Passive phase games
Watching videos/streams
Application development/debugging
Other

1. Standard method: MIUI settings (maximum 30 minutes)

The easiest method is to use the built-in options, which is suitable for most users, but has a strict limit: the maximum time of inactivity is 30 minutes.

  1. Open the Settings app (cog icon).
  2. Go to the Display section (on some models โ€“ Screen).
  3. Select the screen sleep (or screen timeout).
  4. Set the maximum value of 30 minutes.

On some firmware (e.g. MIUI Global for the European region), this item may be called Sleep or Screen timeout. If you don't have one on your menu, check:

  • ๐Ÿ” Update your firmware to the latest version (path: Settings) โ†’ The phone. โ†’ Updating the system).
  • ๐ŸŒ Change region to India or Russia (in some localizations, options are hidden).
  • ๐Ÿ“ฑ Restart the device โ€“ sometimes settings are reset after updates.

โš ๏ธ Attention: On models with AMOLED-screens (e.g. Xiaomi) 12T pro POCO F4 GT) If you need to keep the screen on for longer than 30 minutes, use the methods in the following sections.

โ˜‘๏ธ Check before changing the settings

Done: 0 / 4

2. Developer Mode: Hidden time increase to 10 minutes (no root)

If 30 minutes isn't enough, but you don't want to risk system stability, turn on developer mode, which allows you to increase the timeout to 10 minutes (on some firmware - up to 30 minutes) in the Stay awake menu.

Activate the developer mode as follows:

  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. Return to the main settings menu and a new section for developers will appear.

Now turn on the option to not turn off the screen (Stay awake):

  • ๐Ÿ“ฑ Go to Settings. โ†’ For developers.
  • ๐Ÿ” Find the option โ€œDo not turn off the screenโ€ (or โ€œStay awake while charging).
  • โšก Activate it โ€“ now the screen will not go out when connected to charging.

Limitations of the method:

ParameterDescription
Does it work without charging?โŒ No (only when connected to the network)
Maximum time.โณ 10-30 minutes (depending on firmware)
Do you need to unlock the bootloader?โŒ No.
Reset after updateโš ๏ธ Yes (Developer settings may reset)

On the firmware MIUI 13+ For the European region, the option of Stay awake may not be available. ADB-method (Section 4) or annexes from Section 3.

3. Third-party applications: circumventing restrictions without root

If you need to keep the screen on for longer than 30 minutes, but you don't want to unlock the bootloader, use specialized utilities. We tested 5 popular apps and selected those that run on MIUI 14 without bugs:

  • ๐Ÿ“ฑ Keep Screen On is a simple utility with a widget for quick on/off. Works through the Accessibility Service (no root required.
  • ๐Ÿ”„ Caffeine adds a button to the notification bar to temporarily turn off the screen sleep. Supports automatic turn on for selected applications. Download to Google Play.
  • ๐Ÿ› ๏ธ Stay Alive! โ€“ Advanced settings for screen control, including ignoring the proximity sensor and working in the background. Download to Google Play.

How to set up Keep Screen On (Step-by-step):

  1. Install the application and open it.
  2. Click Enable Service and allow access to Accessibility.
  3. Turn on the Hold Screen On switch.
  4. (Optional) Add the widget to the home screen for quick control.

โš ๏ธ Note: Apps that use Accessibility Service may conflict with antivirus software (such as Avast or Kaspersky). If the screen goes out anyway, add the utility to the security exceptions.

๐Ÿ’ก

If the application doesnโ€™t work, check your battery optimization settings: go to Settings โ†’ Applications โ†’ Application Management โ†’ [Utility Name] โ†’ Battery Optimization and select Without Limits.

4. ADB-commands: complete timeout shutdown (for advanced)

If you need to completely remove the time limit (for example, for round-the-clock kiosk operation or testing), use ADB-This method does not require root rights, but it does require unlocking the bootloader (on some models).

Connect your phone to your PC and follow the following steps:

  1. Download Platform Tools from the official Android website: link.
  2. Unpack the archive and open the cmd (or Terminal on Mac/Linux) in this folder.
  3. Connect your phone via USB and enable debugging via USB (Settings โ†’ Developers โ†’ Debugging via USB).
  4. Enter the command to check the connection: Adb devices must appear serial number of your device.
  5. Use the command to turn off timeout: adb shell settings put global stay_on_while_plugged_in 3 where 3 It means โ€œalways onโ€ (alternatives: 1 โ€” only when charged, 0 โ€” switched off).

To return the standard settings, use:

adb shell settings put global stay_on_while_plugged_in 0

Advantages of the method:

  • โœ… It works on all versions. MIUI (including MIUI 14).
  • โœ… Doesn't require root rights.
  • โœ… You can set different modes for charging and autonomous operation.

โš ๏ธ Note: On some models (Xiaomi) 13, POCO X5 Pro) after restarting, the settings are reset. To record the changes, use the command: adb shell cmd settings put global settings stay_on_while_plugged_in 3 (The additional cmd parameter increases the priority of the team).

What if the ADB canโ€™t see the device?
1. Make sure that the debugging is enabled USB (Settings โ†’ For developers). 2. Install Xiaomi drivers USB Drivers (you can download it on the official website). 3. Try another one. USB-cable (preferably original). 4. Restart your phone and PC. 5. If you are using Windows, disable the driver signature: in cmd, execute bcdedit /set nointegritychecks on and restart the PC.

5 Modification of system files (root only)

If you have root rights (like Magisk), you can change the system settings that control screen timeouts, which is the most reliable, but also the riskiest method, because doing the wrong thing can lead to a bootloop.

Instructions for experienced users:

  1. Install a file manager with root access (such as Root Explorer or Solid Explorer).
  2. Go to /system/build.prop and open the file in the text editor.
  3. Add the following lines to the end of the file: ro.lge.proximity.delay=2500 pm.sleep_mode=0 ro.ril.power_collapse=0
  4. Save the changes and restart the device.

Alternatively, through Magisk:

  • ๐Ÿ“ฑ Install Screen Off Timeout from Magisk repository.
  • ๐Ÿ”ง In the module settings, select Never (Never turn off).
  • ๐Ÿ”„ Reboot the phone.

Risks of the method:

Problem.Effects of consequencesDecision
Incorrect editing of build.propCyclical reboot (bootloop)Restore via Fastboot or Fastboot
Conflict with Magisk modulesSystem freeze or errorDisable conflicting modules
Reset after MIUI updateReturn of standard settingsRe-application of amendments

โš ๏ธ Note: On devices with Dynamic RAM Expansion (e.g. Xiaomi) 12S Ultra) changing the build.prop settings can lead to memory leaks. Before editing, disable this feature in the performance settings.

๐Ÿ’ก

If you are not sure about your root skills, use it. ADB-Method (Section 4) or third-party applications (Section 3) The risk of system damage when editing system files is extremely high.

6. Alternative solutions: when nothing helps

If none of the above methods worked (for example, on Xiaomi with custom firmware or corporate devices), try workarounds:

  • ๐Ÿ”Œ Continuous charging with limited current: use USB-current-restricted splitter (e.g, USB Condom, so that the phone doesn't overheat, but stays connected to the network, and then the option to stay awake while charging will work.
  • ๐Ÿค– Automation with Tasker: Create a task that simulates touching the screen every 29 minutes. Profile example: Profile: Screen on โ†’ Task: โ€œAutoInputโ€ โ†’ Simulate Touchโ€ (coordinates 500,500)
  • ๐Ÿ–ฅ๏ธ Remote control: connect your phone to your PC via scrcpy or Vysor โ€“ the screen will not go out during an active session.
  • ๐Ÿ“ฑ Second phone in hotspot mode: Some models (like the Redmi Note 11) donโ€™t turn off the screen when active USB-tetering.

For owners of POCO F3 GT, Black Shark 4 and other gaming smartphones Xiaomi has another life hack:

  1. Activate the game mode (Settings โ†’ Special features โ†’ Game mode).
  2. Add the desired app (like Google Maps) to the list of games.
  3. Turn on the option to block the autoturn and sleep screen.

This will keep the screen on while the app is active, even without a charging connection.

Comparison of methods: which one to choose?

To make it easier for you to determine, we have compiled a comparative table:

MethodMax time.Need root?DifficultyRisks.Suitable for
Standard settings of MIUI30 minutes.โŒ No.โญNo.Users without experience
The Developer Mode (Stay Awakening)10-30 minutes (only when charging)โŒ No.โญโญReset after updateNavigation in the car
Third-party applications (Keep Screen On)Unlimitedly.โŒ No.โญโญConflict with battery optimizationReading, watching videos
ADB-teamUnlimitedly.โŒ No (but I need debugging)โญโญโญPost-reset resetDevelopers, testers
Editing by build.propUnlimitedly.โœ… Yes.โญโญโญโญBootloop, loss of warrantyAdvanced users

For 90% of users, a combination of standard settings + Keep Screen On is enough. If you need to constantly turn on the screen (for example, for an information kiosk), use ADB or root methods.

FAQ: Frequent questions

โ“ Why my Xiaomi doesnโ€™t have the โ€œDonโ€™t Turn Off Screenโ€ option in developer mode?
This option may not be available on: ๐ŸŒ Firmware for the European Region (EEA). Solution: Change the region to India or Russia. ๐Ÿ“ฑ Devices with custom firmware (like LineageOS or Pixel Experience). Solution: Use it. ADB-method. ๐Ÿ”’ Corporate phones with politicians MDM. Solution: Contact the Administrator.
โ“ Can I turn off screen timeout without connecting to charging?
Yes, but with limitations: ๐Ÿ“ฑ Third-party apps (like Stay Alive!) can keep the screen on without charging. ๐Ÿ”ง ADB-parameter stay_on_while_plugged_in 3 (It does not work on all models). ๐Ÿ› ๏ธ Root methods (edit build.prop). On most Xiaomi devices without charging, the screen will still go out after a maximum. 30 minutes (limitation) MIUI).
โ“ Why the screen goes out even with โ€œStay awakeโ€ onยป?
Possible causes: ๐Ÿ”‹ Power saving mode is enabled (Settings) โ†’ Battery โ†’ Energy saving regime). ๐Ÿ”’ App added to battery optimization list. ๐Ÿ“ฑ The device has a beta version installed. MIUI buggy. ๐Ÿ”ง Incorrectly inserted ADB-Solution: Turn off all battery saving modes and reboot your phone.
โ“ How to return the standard settings if the screen is never turned off?
Ways of rollback: ๐Ÿ“ฑ For ADB-The following is the command adb shell settings put global. stay_on_while_plugged_in 0. ๐Ÿ”ง For root method: delete added strings from build.prop or deactivate the Magisk module. ๐Ÿ“ฒ For third-party applications: remove the utility or disable it in Special Options. If the screen still doesn't go out, reset to factory settings (Settings) โ†’ Additionally. โ†’ Recovery and discharge).
โ“ Does this work on Xiaomi tablets (Pad) 5/6)?
Yeah, but with nuances: ๐Ÿ“ฑ On the Xiaomi Pad. 5/6 Stay awake in developer mode works stably. ๐Ÿ”Œ ADB-commands are applied similarly, but it may be necessary to unlock the bootloader. ๐Ÿ› ๏ธ For root methods, use Magisk with Screen Off Timeout. Xiaomi tablets also have a built-in Reading Mode feature that increases screen timeout to screen timeout. 1 hourly.