Xiaomi screen goes out when the camera is closed: reasons and solutions

Did you open the camera app on your Xiaomi, take a picture β€” and when the app is closed, the screen suddenly went out? Or, worse, does the display turn off immediately after the camera is folded, causing the phone to be unlocked again? This problem occurs on many Redmi, POCO and Mi models, but its causes and solutions are not always obvious.

Most of these behaviors are due to power-saving conflict, incorrect display settings, or even hardware features of a particular model. For example, the Xiaomi 12T Pro and Redmi Note 11 Pro+ often trigger an approach sensor that misinterprets camera closure as a signal to lock the screen. And on budget models like the POCO M4 Pro, aggressive MIUI optimization can be to blame, which β€œstrangles” background processes.

In this article, we will discuss all possible causes, from banal settings to hidden firmware bugs, as well as give step-by-step instructions for diagnosing and fixing the problem. AMOLED-screens, where such behavior is often disguised as a "feature" of saving charge.

1.Why the screen goes out when the camera closes: the main reasons

The problem can manifest itself in different ways: the screen dips immediately after pressing the home button, 1-2 seconds after folding the camera, or only when using certain applications (for example, Google Camera instead of the standard).

  • πŸ”‹ Aggressive energy saving regime: MIUI By default, limits the camera’s background activity, which can lead to forced-close applications and disabling the display.
  • πŸ‘οΈ Approximation Sensor: On some models (e.g. Xiaomi 11 Lite) NE) The sensor is falsely triggered, perceiving the camera closing as the phone approaching the ear.
  • πŸ“± Auto-rotation/auto-blocking settings: Conflict between gyroscope sensor and screen locking algorithms.
  • 🐞 Firmware bugs: In versions MIUI 13–14 There were errors with power management when working with the camera (especially on the Snapdragon). 7xx/8xx).
  • πŸ”Œ Hardware problems: Faulty plume of the display or sensors (relevant after falls or repairs).

Interestingly, on the POCO F4 GT and Redmi K50 Gaming, the problem is often with Game Turbo mode, which conflicts with camera settings. And on older models like the Mi 9T, the fault can be a worn-out battery - the system forcibly turns off the display at high load.

πŸ“Š Which Xiaomi model is the problem you have?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Another model

2. Verification of energy saving and autolock settings

Start with the simplest settings – often the problem is solved in just 2 clicks. Open Settings β†’ Battery and performance and follow the following steps:

Set Performance mode instead of Balanced | Turn off Adaptive Battery |Add the camera app to optimisation exceptions | Check the "Screen Autolock" settings-->

Pay special attention to the "Battery Optimization Exceptions" item, find a standard Camera (or Google Camera if you use GCam) in your application list and set it to No Limits mode. Some firmware has hidden this item, so you'll have to reset your power saving settings to factory.

Also check the settings. β†’ Screen. β†’ Sleep mode: If you set the value of 15 seconds or less, try increasing it to 30 seconds or Never (temporarily, for the test). AMOLED-screens (for example, Xiaomi 12 Pro) can trigger an additional feature Always-on Display, conflicting with the camera.

πŸ’‘

If the problem has disappeared after the change in settings, but returned after a day, check if the settings reset after the reboot. This is a sign of a failure in the miui.analytics service, which can be disabled via ADB.

3. Approximation Sensor: How it affects screen lock

The proximity sensor on Xiaomi is often a source of false positives, designed to turn off the screen during a call, but sometimes mistakenly activated when:

  • πŸ“Έ Close the camera (especially if you hold your phone close to your face).
  • πŸ”„ Quick switching between applications.
  • πŸ’‘ Using a phone in a dark room (the sensor responds to IR radiation).

To check the sensor, perform the test:

  1. In the phone app, type ##6484## (some models run ##0*##).
  2. Select Proximity Sensor.
  3. Close the sensor (usually located next to the front camera) with your finger – the value should change from 5.00 cm to 0.00 cm.

If the sensor does not respond or shows incorrect values, try:

  1. Wipe the sensor area with alcohol (dust and fat interfere with work).
  2. Calibrate the sensor through the engineering menu (code ##36446337#, but does not work on all models).
  3. Disable the sensor programmatically (requires root or ADB).
How to Disable the Approach Sensor via ADB
Connect your phone to your PC, turn on Debugging. USB Adb shell settings put global settings proximity_delay 2500 This will increase the delay of the sensor to 2.5 Use adb shell settings put global settings to completely shut down proximity_sensor_enabled 0 Warning: After that, the screen will not turn off during calls!

4. Firmware conflicts and workarounds

If the problem occurred after the MIUI update, it is likely that the power management policy changes were to blame, for example, MIUI 14 added Deep Sleep Optimization, which aggressively closes the background processes, including the camera, to check this out:

  1. Go to Settings β†’ About Phone β†’ MIUI version and check the relevance of the firmware.
  2. If the update is available, install it (sometimes bugs are fixed in the following patches).
  3. If the problem persists, try to roll back to the previous version via Fastboot.

Critical information for Xiaomi owners 13/13 Pro: in firmware V14.0.4.0.TMBCNXM and V14.0.5.0.TMBCNXM There is a confirmed bug with display control when using the camera in Pro mode. V14.0.6.0 higher.

Alternatively, you can use Google Camera instead of the standard app. Some GCam modifications (e.g., from BSG or Wichaya) have their own power management algorithms that do not conflict with MIUI. You can download the appropriate version on the 4PDA forum (part of your model).

Xiaomi modelVersion. MIUI buggyRecommended solution
Redmi Note 11 Pro+13.0.4–13.0.8Update to 13.0.9+ or disable Smart Lock
POCO F4 GT13.0.6–13.0.10Turn off Game Turbo in the settings
Xiaomi 12T Pro14.0.2–14.0.4Reset the camera settings to factory
Mi 11 Ultra12.5.7–12.5.10Install a patch through TWRP

πŸ’‘

If the problem appears after the update, try resetting the camera settings first (Settings β†’ Apps β†’ Camera β†’ Storage β†’ Clear data), rather than rolling back the firmware immediately.

5. Hardware malfunctions: when to carry in the service

If the software didn't work, it could be physical damage, and the typical symptoms of hardware problems are:

  • πŸ”Œ The screen goes out even in safe mode (Put the power button down). β†’ Safe regime).
  • πŸ”„ The problem appears irregularly, but is aggravated by the heating of the phone.
  • πŸ› οΈ Before that, the phone fell or was repaired (especially if the display / plume was changed).

The most vulnerable components:

  1. Display plume: On Xiaomi with a retractable camera (like the Mi 9T), the plume wears out faster due to mechanical stress.
  2. Approximation Sensor: May be damaged or contaminated (especially after screen repair).
  3. Power Controller: On models with Snapdragon 888/8 Gen 1 (e.g. Xiaomi 12), overheating can cause false protections.

⚠️ Note: If the phone is warranty, don’t disassemble it yourself! Xiaomi service centers have internal instructions for diagnosing such problems (for example, a test). PMI 8953-11 Self-repair will void the warranty.

Cost of repair:

  • Replacement of the display plume: from 1,500 to 3,000 β‚½ (model-wise).
  • Cleaning/replacement of the proximity sensor: 800–1,500 β‚½.
  • Diagnostics of the power controller: 500–1000 β‚½ (may require replacement of the motherboard).

6. Alternative solutions: from GCam to resetting settings

If the standard methods didn’t work, try these workarounds:

  • πŸ“· Install modified GCam: Some versions (e.g. GCam 8.4 from the Parrot043) have separate power management settings. In the settings, enable the option Disable screen off when closing (if any).
  • πŸ”„ Use gestures: Set the swipe down to fold the camera instead of the back button - sometimes this bypasses the lock bug.
  • πŸ”§ Resetting camera settings: Go to Settings β†’ Annexes β†’ Camera. β†’ Warehouse β†’ Clear the data. Attention: this will remove all user settings (e.g. manual settings in Pro mode).
  • πŸ› οΈ Factory backtrack: Extreme method, but helps 80% of the time.Previous backup through Settings β†’ Additionally. β†’ Backup.

For advanced users, there is another way to change the camera configuration file. On some models (for example, the Redmi Note 10 Pro), the problem is solved by editing the file /system/vendor/build.prop.

ro.camera.close.screenoff=false

But this method is risky – improper editing of system files can lead to bootloop.

πŸ’‘

Before resetting, check to see if you have Developer Mode on (Settings β†’ About Phone β†’ MIUI β†’ 7 times tap) and sometimes the problem disappears after you turn off the Do Not Turn Off screen while charging in the developer settings.

7 Prevention: How to avoid recurrence of the problem

To prevent the problem from returning after the correction, follow these recommendations:

  • πŸ”„ Update your firmware regularly (but don’t install betas unless you’re bug-ready).
  • πŸ“΅ Avoid using magnet covers – they can affect the proximity sensor.
  • πŸ”‹ Do not allow battery discharge below 15% – on some models this causes failures in power management.
  • πŸ› οΈ After replacing the screen or battery, calibrate the sensors (at the service center).

If you use Google Camera, keep an eye out for updates to the libpatched.so module – legacy versions may conflict with MIUI. Also avoid running simultaneously apps with camera access (e.g. Snapchat + standard camera).

⚠️ Note: On models with an infrared camera (for example, Xiaomi Mi 10 Ultra), the problem may be exacerbated when you activate night mode.

Frequently asked questions

The screen only goes out when you use the front camera.
The problem is probably the proximity sensor, which is located next to the front camera. Try calibrating it (see section 3) or temporarily disabling it through the ADB. Also check if the case is closing the sensor.
The problem came after the MIUI update. How do you roll back?
To roll back, you will need: Download the desired firmware version from the Xiaomi Firmware website. Unpack ZIP-file and rename it to update.zip. Go to Settings β†’ The phone. β†’ Updating the system β†’ Three points. β†’ Select a firmware file. If this method doesn't work, use Fastboot. 4PDA).
Could it be the battery's fault?
Yes, but only if it is severely worn out (capacity below 70%), in which case the system forcibly disables "power-intensive" functions, including the camera. Check the battery status through code ##4636## (Battery information section) or the AccuBattery app.
An artifact (strip, flicker) appears on the screen before it's turned off. What is it?
This is a sign of damage to the plume of the display or graphics chip. On models with AMOLED (for example, Xiaomi 12 Pro), this behavior can be associated with the degradation of the matrix.
The problem is only in Google Camera, and the standard camera is fine. What do you do?
This is a typical conflict between GCam and MIUI Solutions: Update GCam to the latest stable version (e.g. BSG's GCam 8.7). In GCam settings, disable the Use camera2 API option. Install the Magisk MIUI Camera Patch module (root required).