How to improve the approximation sensor on Xiaomi smartphones: from calibration to hardware repair

The problems with the proximity sensor on Xiaomi are familiar to many users: the screen does not go out during a call, accidental pressing during a conversation or, conversely, the sensor does not respond to the approach of the ear. In 80% of cases, it is not hardware faults that are to blame, but software failures or contamination of the module. This article will help you understand how to diagnose a malfunction, calibrate the sensor through the engineering menu, clean it of dust and even replace it with critical damage without going to the service center.

We analyzed the feedback from owners of the Redmi Note 10 Pro, POCO X3 Pro and Mi 11, where the problem is most common, and collected proven solutions. Importantly, some methods require root rights or disassembly of the device β€” we highlighted them separately with warnings. Start with simple methods and move to radical only if the previous ones did not work.

β€”β€” β€’ β€”β€” β€’ β€”β€”

1. How to check the operability of the proximity sensor

Before you try to fix the sensor, make sure it's the one that's the problem. On Xiaomi, the proximity sensor is often confused with the light sensor (they're nearby) or with a firmware failure. Here's how to accurately diagnose a malfunction:

Use a secret code to test hardware:

##6484##

Once you enter, you will open the Manual Test β†’ Proximity Sensor menu. Put your hand to the top of the screen (where the sensors are located) - the value should change from 5 (far) to 0 (close), if the numbers do not change or show N/A, the sensor is faulty.

  • πŸ” Visual inspection: Light a flashlight on the sensor area (usually to the right of the speaker) if you see dust, dirt or scratches on the glass - the problem is pollution.
  • πŸ“± App-based testing: Install Phone Tester or Sensor Box from Google Play. They will show a real-time graph of the sensor response.
  • πŸ”„ Post-Reboot Test: Sometimes crashes are caused by temporary errors MIUI. Restart your phone and repeat the check.

⚠️ Note: If the sensor does not respond even after cleaning and resetting settings, and in the test menu shows N/A, It's likely that the flexible plume or the module itself is damaged, and that would require disassembling the device.

2. Software methods for improving the operation of the sensor

In 60 percent of cases, the problem is solved without physical intervention.

Calibration through the engineering menu

MIUI hides the advanced sensor settings, but you can open them through the engineering menu:

  1. Enter the code ##36446337## (for newer versions, MIUI may not work – use the alternative below).
  2. Go to Hardware Testing β†’ Proximity Sensor.
  3. Press Calibrate and follow the instructions (usually hold and remove your hand 3 times).

If the code doesn’t work, install the MTK Engineering Mode app (for MediaTek processors) or Qualcomm EngineerMode app (for Snapdragon).

Resetting sensor settings

Sometimes resetting to factory parameters only for sensors (without data loss) helps:

adb shell settings delete global proximity_sensor_calibration

This command should be typed in through ADB on the PC, and if you're not familiar with the tool, skip this step.

Disable the "smart lock" screen

MIUI has a Smart Lock feature (Settings β†’ Screen β†’ Smart Lock) that sometimes conflicts with the proximity sensor. Disable it and check the sensor again.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Other

3. Physical cleaning of the proximity sensor

Dust, fat deposits and micro-scratches on the protective glass are the main cause of false positives.

  1. Turn off the phone and remove it. SIM-map (if the module is located next to the tray).
  2. Take a soft brush (for example, for camera lenses) and gently remove dust from the sensor area.
  3. For persistent contaminants, use isopropyl alcohol (70%+) and a microfibre wipe. Apply the liquid on a napkin, not on your phone!
  4. Do not use cotton swabs - they leave a pile.

πŸ’‘

If the sensor is covered with a greasy coating (for example, from a face cream), wipe it with alcohol twice at intervals of 5 minutes.

⚠️ Warning: Do not use acetone, solvents or aggressive detergents - they will damage the oleophobic coating of the screen. Also avoid strong pressure: the proximity sensor is often located under fragile glass.

Symptoms.Probable causeDecision
The screen does not go out during the call.Sensor contamination or calibration failureCleaning + recalibration through the engineering menu
The sensor is triggered arbitrarily (without approximation)Moisture or damage to the plumeRice drying (24 h) or plume replacement
The sensor only works at a certain angle.Detachment of flexible cable or crack in glassDisassembly and diagnosis in the service
The test menu shows the N/A.Hardware failure of a module or controllerReplacement of the sensor or motherboard

4. Replacement of the proximity sensor with your own hands

If software and cleaning methods fail and the sensor is physically damaged, it can be replaced on its own, which is true for Redmi 9/10, POCO M3 and other low-end devices, where the cost of repairing the service is comparable to the price of a new phone.

What you need:

  • πŸ”§ Set of screwdrivers (cross, flat, suction cup for the screen).
  • πŸ”₯ Hair dryer or thermoplatform for softening glue.
  • πŸ“± New proximity sensor (see phone model on AliExpress or local services).
  • 🧲 Magnetic cog substrate.

Turn off the phone and remove it. SIM-map|

Make a backup copy of the data |

Prepare the workplace (clean surface, good lighting)|

Check the configuration of the new sensor (should go with adhesive base)-->

Step-by-step:

  1. Heat the screen edge dryer (~60Β°C) for 2-3 minutes to soften the glue.
  2. Put a plastic blade on the screen, starting at the bottom, and be careful, the plumes are fragile.
  3. Disconnect the battery plume, then the screen plume (usually it is fixed by a latch).
  4. Find the proximity sensor (a small black board next to the speaker) and gently solder it off or disconnect the connector.
  5. Install a new sensor, connect all the plumes and assemble the phone in reverse order.

What if the sensor doesn’t work after replacement?
1. Check the connection of the plume - it may not fully sit in the connector. 2. Make sure that the new sensor is compatible with your model (sometimes the connectors are different even for devices of the same line). 3. Calibrate through the engineering menu (see section 2.1. 4. If the sensor is still not responsive, check the integrity of the tracks on the motherboard - it is possible that the contacts were damaged during soldering.

⚠️ Warning: Disassembling the phone will void the warranty (if it is still valid), and there is a high risk of damaging the display plume or battery if you carelessly handle it.

5. Alternative solutions if the sensor is not repairable

If the sensor is completely out of order, and it is not possible to replace it, use the workarounds:

  • πŸ“ž Disabling the sensor in settings: In some firmware MIUI You can deactivate the proximity sensor in Settings β†’ System applications β†’ Phone. β†’ Blocking the screen during the call.
  • πŸ”„ Use gestures: Set up a double touch to lock the screen through apps like Tap, Tap.
  • πŸ› οΈ Install custom firmware: Some builds (e.g. Pixel Experience) better optimize the performance of sensors on older Xiaomi.

πŸ’‘

If the proximity sensor is broken and the phone is used primarily for calls, consider buying wireless headphones with the ability to automatically turn off the microphone when removed from the ear (for example, Xiaomi Buds 4 Pro).

6.Prevention: How to prolong the life of the proximity sensor

To avoid repeated problems:

  • 🚫 Don't put the cut-out glass under the sensor, it builds up dirt around the edges, and you'd better use full-coated glass with a neat cutout.
  • 🧴 Avoid face creams and oils – their particles settle on the sensor and form a film.
  • πŸ“¦ Keep your phone in a case, but regularly (once a month) wipe the sensor area with an alcohol wipe.
  • πŸ”„ Update. MIUI β€” In new versions, bugs with sensors are often corrected (especially important for the use of sensors). POCO F3 Redmi Note 10).

Critical information: On Xiaomi models with AMOLED-The proximity sensor is often integrated into the display, and replacing it requires a complete disassembly of the matrix and costs up to 70% of the price of a new phone.

FAQ: Frequent questions about the proximity sensor on Xiaomi

Can I calibrate the sensor without an engineering menu?
Yes, through applications like Proximity Sensor Reset or Sensor Calibration, but these methods are less reliable than factory calibration using ##36446337##.
Why does the sensor only work in certain applications (e.g., Telegram calls)?
This is because not all apps use the approximation sensor API. Standard calls through com.android.phone always use it, and VoIP services (WhatsApp, Telegram) can ignore the sensor. Check the settings of a particular messenger - sometimes there is an option "Block screen during a call."
How much does it cost to replace the sensor in the service?
Price depends on the model: Budget Xiaomi (Redmi 9, POCO M3): 800–1500 β‚½. Mid-size segment (Redmi Note 11, POCO X4): 1500–2500 β‚½. Flagships (Mi 12, Mi 13): 2500–4000 β‚½ (The cost usually includes a diagnosis and a 1-3 month warranty.
Can a magnetic case or wireless charging sensor be damaged?
No, magnetic fields from covers or Qi charge do not affect the infrared proximity sensor, but strong shocks (such as a phone falling on a case) can displace the module or damage the plume.
How to check the sensor on Xiaomi with ADB?
Connect your phone to your PC, enable USB Debugging and enter commands: adb shell dumpsys sensorservice In the conclusion, find the Proximity Sensor line - there will be enabled=true/false status and current values. For continuous monitoring, use: adb shell getevent -l | grep "PROXIMITY"