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:
- Enter the code ##36446337## (for newer versions, MIUI may not work β use the alternative below).
- Go to Hardware Testing β Proximity Sensor.
- 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_calibrationThis 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.
3. Physical cleaning of the proximity sensor
Dust, fat deposits and micro-scratches on the protective glass are the main cause of false positives.
- Turn off the phone and remove it. SIM-map (if the module is located next to the tray).
- Take a soft brush (for example, for camera lenses) and gently remove dust from the sensor area.
- For persistent contaminants, use isopropyl alcohol (70%+) and a microfibre wipe. Apply the liquid on a napkin, not on your phone!
- 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 cause | Decision |
|---|---|---|
| The screen does not go out during the call. | Sensor contamination or calibration failure | Cleaning + recalibration through the engineering menu |
| The sensor is triggered arbitrarily (without approximation) | Moisture or damage to the plume | Rice drying (24 h) or plume replacement |
| The sensor only works at a certain angle. | Detachment of flexible cable or crack in glass | Disassembly and diagnosis in the service |
| The test menu shows the N/A. | Hardware failure of a module or controller | Replacement 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:
- Heat the screen edge dryer (~60Β°C) for 2-3 minutes to soften the glue.
- Put a plastic blade on the screen, starting at the bottom, and be careful, the plumes are fragile.
- Disconnect the battery plume, then the screen plume (usually it is fixed by a latch).
- Find the proximity sensor (a small black board next to the speaker) and gently solder it off or disconnect the connector.
- Install a new sensor, connect all the plumes and assemble the phone in reverse order.
What if the sensor doesnβt work after replacement?
β οΈ 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.