Turn off the screen when closing the camera on Xiaomi: the full guide

Have you ever encountered a situation where your Xiaomi screen suddenly goes out after you close the camera app? This is a common problem among MIUI smartphone users that can seriously interfere with taking a series of photos or recording videos. The fact is that by default the system optimizes power consumption by automatically turning off the display when you finish your camera work β€” but not everyone likes it.

In this article, we will discuss all possible ways to disable this behavior: from standard settings. MIUI You'll learn how to keep the screen on after the camera is closed on Redmi models, and you'll learn how to make the screen stay on after the camera is closed, POCO And if the standard methods don't work, we'll show you workarounds, including the use of third-party applications and other devices. ADB-team.

It’s important to note that some solutions require developer or unlocked bootloader rights, so before you start, check out the risks. Also, we’ll look at why this feature even exists in MIUI and how it relates to battery savings. If you’re ready to take back control of your smartphone screen, read on!

Why does Xiaomi’s screen turn off when the camera closes?

Before we get to the bottom of this, we need to understand why this is happening, and MIUI has a number of energy-saving mechanisms, one of which is responsible for automatically turning off the display when you're done with the camera.

  • πŸ”‹ Battery savings – the screen consumes a significant amount of power, and turning it off after using the camera (which is energy-intensive in itself) reduces the load.
  • ⚑ Performance optimizations – closing the camera’s background processes frees up RAM for other tasks.
  • πŸ›‘οΈ Privacy protections – on some models, this prevents the camera from accidentally turning on through quick gestures.

But for many users, this behavior is more of a hindrance than a helper, for example, if you take a series of short-pause photos or switch between camera and gallery frequently, turning the screen on/off is annoying and slowing down. Fortunately, MIUI has ways to fix this, at least in part.

Interestingly, on some models (such as the Xiaomi 13 Ultra or Redmi Note 12 Pro+), this feature works differently than on budget devices, due to different firmware versions and hardware features, so there is no universal solution, you will have to choose the method for your model.

πŸ“Š What kind of Xiaomi model do you have?
Redmi Note (any version)
POCO F/X/Pro
Xiaomi 11/12/13 series
Another model

Method 1: Screen waiting time settings

The easiest and safest method is to increase the time of automatic shutdown in the system settings, which won't reverse the shutdown when you close the camera completely, but will make it less annoying.

  1. Open the Settings β†’ Screen.
  2. Select the "Sleep" option after (or screen timeout on some versions of MIUI).
  3. Set the maximum value – usually 10 minutes or 30 minutes.
  4. Save the changes and restart the device (optional, but recommended).

This method works on all Xiaomi models, but has a limitation: the screen will still go out after a given time, even if you actively use the camera with pauses.

πŸ’‘

If your firmware does not have the item "Sleep after", try to find it through the search in the settings (the magnifying glass icon in the upper right corner).

Some devices (such as the POCO F5 or Xiaomi 12T) have an option called Adaptive Timeout, which is better off, as it is responsible for speeding up the screen shutdown when it detects inactivity (including after the camera is closed).

Method 2: Disabling camera optimization in battery settings

MIUI has a hidden feature that allows you to turn off power saving for individual applications, including the camera, which can prevent the forced screen from turning off after you use it.

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Find the Camera app (or Mi Camera on some models) in the list.
  3. Select Battery Consumption β†’ No restrictions.
  4. Activate the AutoRun option (if you have one in your version of MIUI).

This method doesn't work on all devices, but it often helps on the Redmi Note 10 Pro, POCO X3 Pro, and similar models. If there's no limit, try High Performance.

Open "Settings β†’ Applications β†’ Application Management" | Find the Camera app | Select "Battery Consumption β†’ Without restrictions" | Include "Switch on" (if available) |Reboot the device-->

Important: Some firmware may need to reboot your smartphone after these changes to take effect, and note that disabling camera optimization can slightly increase battery consumption β€” but this is usually not critical.

Method 3: Using the Developer Mode

If you don't have the standard settings, you'll have to use the developer mode, which is more complex, but often works.

  1. Activate Developer Mode: Go to Settings β†’ About Phone. Press 7 times on MIUI Version until the notification "You've become a developer" appears.
  2. Turn off MIUI optimization for the camera: Return to Settings β†’ Additional β†’ Developers. Find the option to Disable MIUI Optimization (or MIUI Optimization) and deactivate it. Also turn off Background process limit.

Set up the screen behavior

  • In the same developer menu, find Stay awake and turn on this option.
  • This will keep the screen on when charging, but may indirectly affect how the camera works.
  • Connect the device and execute commands: adb shell settings put global camera_double_click_power_key 0 adb shell settings put global camera_idle_timeout 0 These commands disable the time-out camera and its connection to the power button.
  • Reboot the device: adb reboot

If the problem persists after the reboot, try the additional command:

adb shell settings put global stay_on_while_plugged_in 3

This command forces the screen to remain on even without a charger connection (value 3 means "always").

πŸ’‘

ADB-The best results are the best, but they require caution.

On Xiaomi 12S Ultra and other flagships, this method works almost flawlessly, while on budget models like Redmi A1, you may need to re-execute commands after updating the firmware.

Method 5: Third-party applications for screen control

If you don't want to go through the settings or use ADB, you can use third-party apps that don't always give you 100% results, but they often help you bypass the limitations of MIUI.

  • πŸ“± Keep Screen On is a simple app that keeps the screen on while the app you choose is running (in our case, the camera).
  • βš™οΈ Tasker is an advanced automation tool, and you can create a task that turns off the screen timeout when you open the camera.
  • πŸ”„ MacroDroid is an alternative to Tasker with a simpler interface, allowing you to configure the rule "If the camera is open" β†’ keep off".

Example of settings in MacroDroid:

  1. Create a new macro.
  2. As a trigger, select the Application launched β†’ specify the Camera.
  3. In actions add Turn off screen timeout.
  4. Save the macro and activate it.

The downside of this is that applications need access rights to special features, and they can also increase battery consumption, but it's the most versatile way that works even on older versions of MIUI.

πŸ’‘

Before installing third-party apps, check reviews – some may contain ads or collect data.

Not all methods work equally well on different devices, and the following is a compatibility table for popular models:

Model of the deviceScreen settingsOptimizing the batteryDeveloper modeADB-teamThird-party annexes
Xiaomi 13/13 Proβœ… Yes.βœ… Yes.βœ… Yes.βœ… Yes.⚠️ Partially.
Redmi Note 12 Pro+βœ… Yes.βœ… Yes.βœ… Yes.βœ… Yes.βœ… Yes.
POCO F5/F5 Proβœ… Yes.❌ No.βœ… Yes.βœ… Yes.βœ… Yes.
Xiaomi 11T/11T Proβœ… Yes.βœ… Yes.⚠️ Partially.βœ… Yes.βœ… Yes.
Redmi 10/10Aβœ… Yes.❌ No.❌ No.⚠️ Partially.βœ… Yes.

As you can see from the table, the flagship models (Xiaomi 13, Redmi Note 12 Pro+) run most methods, while the budget models (Redmi 10A) have limited options. If your model is not on the list, try the methods in order from simple to complex.

Frequent Mistakes and How to Avoid Them

When you try to turn off the screen, many users encounter common errors, and here are the most common ones and how to solve them:

  • ❌ Screen timeout settings are not saved ⚠️ Attention: On some firmware MIUI Reset the screen timeout is possible only after disabling the function Adaptive battery in the battery settings.
  • ❌ ADB-commands do not apply Make sure: Debugging by smartphone is enabled USB. Xiaomi drivers are installed on a PC. You're using the original USB-cable (not all cables support data transmission).
  • ❌ Third-party apps don't work Check if they're given rights to: Overlay over other windows (Special features). Ignoring battery optimization.

Another common problem after the update MIUI All settings are reset. To avoid this, fix the ones you're using. ADB-commands in a text file and re-use them after the update. It's also helpful to back up your settings through Settings. β†’ Additionally. β†’ Backup.

What to do after ADB-The screen has stopped turning off altogether?
If you accidentally disable all timeouts, return the default settings with the command: adb shell settings delete global stay_on_while_plugged_in Then restart the device.

FAQ: Answers to Frequent Questions

❓ Why does the screen not turn off immediately after the camera closes, but 5-10 seconds?
This is due to the background processing of photos or videos. MIUI waits for the file to be saved, then turns off the display. To speed up the process, turn off the post-shoot or auto-improvement option in the camera settings.
❓ Will these methods work on custom firmware (e.g. LineageOS)?
Most custom firmwares do not have a problem initially, since they do not have aggressive optimization. MIUI. If the screen is turned off, use it. ADB-commands or third-party applications – they are universal.
❓ Can I turn off the screen only for the camera, but not for other applications?
Yes, but only with Tasker or MacroDroid, create a rule that will turn off the screen timeout only when the camera is running, and leave the standard settings for other applications.
❓ Does disabling this function affect autonomy?
Yes, but not much. In our tests, the constant burning of the screen after the camera increases battery consumption by ~3-5% per day, and if you're using the camera extensively, the difference will be more noticeable.
❓ Why my Xiaomi doesn’t have a β€œDisable Optimization” option MIUI" developer-setting?
This item is not available in the latest versions. MIUI 14+ European region (EEA). In that case, use it. ADB-commands or third-party applications.