Xiaomi’s Approximation Sensor: Why It Doesn’t Work and What to Do About It

The proximity sensor in Xiaomi smartphones is a small but critical element that is responsible for automatically turning off the screen when you hold the phone to your ear. Its malfunction leads to accidental pressing, rapid battery discharge and discomfort when talking. If your Redmi, POCO or Mi stopped responding correctly to the approach of the hand or face, do not rush to carry it into the service: in 80% of cases, the problem can be solved by yourself.

In this article, we will look at all possible causes of malfunctions, from commonplace contamination to hardware breakdowns, and give step-by-step instructions for diagnosis, calibration and repair. AMOLED-screens (for example, Xiaomi 13 Pro or POCO F5), where the sensor is often integrated into the display and requires a specific approach. If you are not sure whether your phone has a separate sensor or is built into the matrix, check this in the section "How to find out the type of sensor in your XiaomiΒ».

We warn you right away that some manipulations (such as disassembling the case or firmware) may take away your warranty if the device is new, and you do everything at your own risk, but in most cases, software is enough to restore the work, and we will consider them first.

How to know if your Xiaomi approximation sensor is in place

Not all Xiaomi models are equipped with a physical proximity sensor. In budget devices (for example, Redmi 9A or POCO C31), its role is often performed by a software algorithm that analyzes data from the accelerometer and gyroscope. In flagships (for example, Xiaomi 14 Ultra), the sensor can be integrated into the display module or located separately above the screen.

To check the presence and type of sensor:

  1. Install the AIDA64 app (free on Google Play).
  2. Go to the Sensors section.
  3. Look at the Proximity sensor line: If you have one, you have a hardware sensor. If you don't have one, but the phone turns off the screen when you call, you use software emulation.

You can also visually view the top of the screen:

  • πŸ” Separate sensor: a small circular or rectangular hole next to the speaker (e.g., in the Redmi Note 11).
  • πŸ“± Integrated in display: no visible holes, but the screen reacts to the approach (specific to Xiaomi) 12T newer).
  • πŸ€– Software emulation: no physical sensors, only algorithms (found in ultra-budget models).

πŸ“Š What kind of smartphone you Xiaomi?
Redmi (Series Note, A, etc.)
POCO (F, X, M)
Mi (11, 12, 13, etc.)
Black Shark
Other

Signs of malfunction of the proximity sensor

The symptoms of sensor failure are often confused with the bugs of the firmware or screen, and here are some clear signs that the problem is with it:

  • πŸ“ž The screen does not go out during a call when you hold the phone to your ear (leads to occasional cheek pressings).
  • πŸ”„ The screen spontaneously turns off during normal use (for example, when reading or scrolling tape).
  • πŸ”‹ The battery discharges much faster than usual (the sensor is constantly active and consumes energy).
  • 🎯 In test applications (e.g. Sensor Test), the sensor shows permanently zero or maximum values regardless of obstacles.
  • πŸ”Š During a bell, the sound switches between the speaker and the tube for no reason.

If any of these symptoms are on a regular basis, the sensor requires a diagnosis, but before you sin on iron, check the software settings:

⚠️ Note: On some models (e.g, POCO X3 Pro) the proximity sensor turns off when the headphones are connected. If the screen does not go out during a call with a wired headset, it is normal!

Symptoms.Probable causeCan I correct myself?
The screen doesn't go out when you ring.Sensor contamination, calibration failure, plume damageYeah (cleaning, recalibration)
The screen goes out arbitrarilyIncorrect sensitivity settings, firmware glitchYes (setting reset, software update)
The sensor is not responding at all.Hardware failure (the plume disconnected, the sensor failed)Partially (reconnecting the plume)
The sensor values β€œhang” at the same levelProblems with firmware or driverYeah (flashing, factory reset)

How to check the proximity sensor on Xiaomi without root

Before you take your phone apart or carry it to the service, you need to do a software diagnostic, and you don't need root rights or special knowledge, you need standard tools and free apps.

Method 1: Built-in test (Engineer Mode)

  1. Open the phone app and enter the code: ##6484##
  2. Select Proximity Sensor (proximity sensor).
  3. Put your hand to the top of the screen: 🟒 If the values change from 5.0 cm to 0.0 cm, the sensor works. πŸ”΄ If the values do not change or show an error, the sensor is defective.

Method 2: Sensor Test (Google Play)

Download and launch the app. Go to the Proximity tab. Normal metrics:

  • πŸ“Š No obstacles: 5.0-8.0 cm value (depending on model).
  • πŸ–οΈ With obstacle: 0.0 cm or Covered.

Method 3: Checking through ADB (for Advanced)

If the first two methods fail, connect your phone to your PC and follow the command:

adb shell dumpsys sensorservice

In the output, find the Proximity sensor string – there will be current data from the sensor.

The sensor is checked with Engineer Mode

Installed application Sensor Test

Data backup made.

Tried resetting sensor settings

Cleaned the top of the screen from dirt-->

Calibration of the proximity sensor: step-by-step instructions

If the sensor is working but it doesn't respond correctly (e.g., it's going too late or too early), it needs to be recalibrated, and in most cases, this solves the problem without disassembling the phone.

Method 1: Engineer Mode (for MIUI)

  1. Enter the code ##36446337## (alternative login to the engineering menu).

Method 2: Proximity Sensor Reset App

This app automatically resets the sensor settings.

  1. Open the app and press Reset Proximity Sensor.
  2. Wait 10-15 seconds (the phone may freeze for a short time).
  3. Reset the device.

Method 3: Manual calibration through files (requires root)

If the first two methods did not help, and root-rights are available, edit the calibration file:

/system/etc/sensors/proximity_calibration.xml

Open it in the text editor and change the min and max values to the standard ones for your model (can be found on the 4PDA or XDA forums).

πŸ’‘

If after calibration the sensor began to work worse, return the factory settings through Settings β†’ About phone β†’ Reset settings (select β€œReset sensor settings”).

What to do if the proximity sensor does not work at all

If the diagnosis showed that the sensor does not respond at all, the reasons may be as follows (from simple to complex):

  1. Update MIUI to the latest version or roll back to stable firmware via Fastboot.

Algorithm of action:

  1. Clean the sensor and restart the phone.
  2. Update the firmware through Settings β†’ About the phone β†’ System update.
  3. Reset the sensor settings (see previous section).
  4. If nothing helps, take your phone apart and check the plume (instructions for popular models are available on YouTube).

⚠️ Attention: On models with AMOLED-screens (e.g. Xiaomi 13 or Xiao) POCO F4) The sensor is often soldered into the display module, and its replacement requires a complete replacement of the screen!

How to temporarily disable the proximity sensor if it interferes
If the sensor is triggered arbitrarily and interferes with the use of the phone, it can be turned off through ADB: adb shell settings put global proximity_sensor_enabled 0 To turn it back on, replace it. 0 on 1. Please note that the screen will not go out during calls!

Replacement of the proximity sensor: when you need and how much it costs

If all the software methods have been tried and the sensor still doesn't work, then there's hardware repair, and the cost and complexity depend on the model.

Xiaomi modelType of sensorCost of replacement (β‚½)Difficulty of repair
Redmi Note 10/11Separate (over the screen)800–1 500Low (replacement in 20 minutes)
POCO X3/X4Separate (upper frame)1 000–1 800Medium (you need to unplug the screen)
Xiaomi 12/13Integrated into the display5 000–12 000High (screen replacement)
Redmi 9A/8ASoftware emulation0 (Setting up the software)Low.

Where to replace:

  • πŸ”§ Xiaomi official service: warranty 6-12 months, but more expensive by 20-30%.
  • πŸ› οΈ Local Service Centers: Cheaper, but Check Reviews and Ask for Guarantee.

For self-replacement, buy a sensor on AliExpress (price - 100-500). β‚½) And you can follow the guides for your model, like the Redmi Note 8 Pro:

  • Unplug the screen (use suction cups and mediator).
  • Disconnect the battery plume (required!).
  • Replace the sensor (it is attached to bilateral tape or glue).
  • Put the phone back together.

πŸ’‘

Before replacing the sensor, check if the warranty period has expired! If the phone is warranty, contact the official service - self-repair will cancel it.

Frequent questions about the proximity sensor on Xiaomi

πŸ“± Why the proximity sensor only works when charging?
This is a typical problem for phones with a weak sensor plume: When charging, the plume shifts slightly and the contact is restored; the solution is to reconnect the plume or replace it; a temporary workaround: use wireless charging if it is supported.
πŸ”„ Can I calibrate the sensor without Engineer Mode?
Yes, with apps like Proximity Sensor Reset or Sensor Calibration from Google Play, which don't require root and run on most Xiaomi models, but you'd better use an engineering menu to fine-tune it.
πŸ›’ Where to buy the original sensor for Xiaomi?
The original sensors are sold only in Xiaomi service centers. AliExpress and other sites usually offer analogues (quality varies). AMOLED-screens (for example, Xiaomi 13 Pro) the original sensor can be bought only in the bundle with the display.
πŸ”§ How to check if the sensor plume is moving away?
Carefully press the top of the screen (near the speaker) during the sensor test, and if the values start to change, the plume has moved away and needs to be reconnected, and this will require disassembling the phone.
πŸ“² Why did the sensor stop working after the screen was replaced?
In 90 percent of cases, that means that the wizard didn't plug the sensor plume back in or damaged it when you installed a new display. Go back to the service and demand a free fix -- that's their mistake. If the sensor is integrated into the screen, maybe the new module is defective.