The proximity sensor in Xiaomi smartphones is responsible for automatically turning off the screen during a call when you hold the phone to your ear. If it doesn't work properly, the screen can go out spontaneously or, conversely, remain active during a conversation - this leads to accidental pressing and quick battery discharge. The problem is found on models from the Redmi Note 10 to Xiaomi 14 Pro, regardless of the version of MIUI.
The causes of sensor failure range from software errors after upgrading to physical contamination of the module. 80 percent of the time, calibration solves the problem without going to the service center. In this article, 5 proven methods, including hidden engineering menus, third-party applications and hardware tests, you will learn how to diagnose a malfunction and return the sensor to work in 10 to 30 minutes.
β οΈ Important: If the sensor is physically damaged (cracks on the glass, ingress of moisture), calibration will not help - you will need to change the module).
1. How to check the operation of the proximity sensor on Xiaomi
Before you calibrate the proximity sensor, make sure it's really the problem. Use built-in tests or third-party utilities to do this.
The fastest way is to test the phone:
- Open the Phone app.
- Type the combination ##6484## (on some models, ##0*####).
- Select the Proximity Sensor.
- Close the sensor with your hand - the screen should go out, when opened - light up.
If the test is missing or doesnβt work, use the apps from Google Play:
- π CPU-Z β Shows the status of sensors in the Sensors section.
- π± Phone Doctor Plus β provides comprehensive diagnostics, including proximity sensor.
- π οΈ Sensor Test β displays data in real time (the value should change from 5.0 cm to 0.0 cm when the sensor is closed).
β οΈ Note: On some Xiaomi models (e.g, POCO F5) The engineering menu is locked, so use the apps or move on to the next method.
Calibration through the Engineering Menu (MTK and Qualcomm)
The hidden engineering menu allows you to manually calibrate the sensor, but the method differs depending on the phone's processor. You can find out the type of chipset in Settings β About Phone β Full Specification.
For smartphones on MediaTek (Redmi 9, POCO M3, etc.)
Use a combination:
##36446337##Select from the menu:
- Hardware Testing β Sensor β Proximity Sensor.
- Press Calibration and follow the instructions on the screen (usually you need to close the sensor with your hand and wait 3-5 seconds).
- Save the settings and restart the phone.
For smartphones on Qualcomm (Xiaomi 12, Redmi Note 11, etc.)
Enter:
##4636##Next:
- Go to Testing β Sensor Test.
- Find Proximity Sensor and press Calibrate.
- Hold your finger to the sensor for 2-3 seconds, then remove it.
- Confirm the calibration retention.
πΉ Note: On some firmware MIUI 14+ There may be no engineering menu, in which case you can use alternative methods in the following sections.
Charge your phone at least 30%
Make sure the sensor is not covered by a film or cover
Remember the combination for your processor (MTK/Qualcomm)
Prepare a pen or a thin object for accurate guidance on the sensor-->
3. Calibration with Proximity Sensor Reset
If the engineering menu is not available, use the specialized Proximity Sensor Reset app (available on Google Play), which works on most Xiaomi models, including Redmi and POCO, and does not require root rights.
Step-by-step:
- Download and install the app.
- Open it and provide access to sensors (when a request appears).
- Press Calibrate Proximity Sensor.
- Close the sensor with your hand or an opaque object (such as a book) for 5 seconds.
- Remove your hand β the app will show you the status of Success.
- Reboot the phone.
β οΈ Note: If after calibration the sensor stopped working completely, return the settings to the factory through Settings β Settings reset (select App Settings Reset, not a full reset!).
π Tip: Check reviews before using the app β some Xiaomi 13 users complain about incompatibility with the latest versions MIUI. The Sensor Calibration Tool.
4.Reset sensor settings via ADB
For advanced users, there is a method of resetting via Android Debug Bridge (ADB), which is suitable if the software methods do not work, but requires connecting the phone to a PC.
What you need:
- π₯οΈ A computer with installed Xiaomi drivers and ADB.
- π USB-cable (preferably original).
- π± Included debugging by USB (Settings β The phone. β Version. MIUI β Press 7 times; then additionally β For developers β Debugging by USB).
Instructions:
- Connect the phone to your PC and open the command line (Win + R β enter cmd).
- Enter the command to check the connection: adb devices must appear serial number of the device.
- Reset the sensor calibration: adb shell settings delete global proximity_delay
- Reboot the phone.
Critical information: On some models (e.g. Redmi K50), this command can reset not only proximity sensor, but also other system settings. Before running, back up through Settings β Additional β Backup and Reset.
What if the ADB canβt see the device?
5. Hardware inspection and cleaning of the sensor
If the software didn't work, the problem could be that the sensor is physically contaminated, and the dust, sweat, or residue of the adhesive from the film is blocking the infrared signal, causing the sensor to malfunction.
How to clean the sensor:
- Turn off the phone.
- Take a soft brush (for example, for the camera lens) or a cotton swab soaked in isopropyl alcohol (do not use water!).
- Carefully clean the area next to the front camera and speaker β there is a sensor (usually a small round hole).
- Let the phone dry for 10-15 minutes before turning on.
π Where is the proximity sensor located?
| Xiaomi model | Location of the sensor | Notes |
|---|---|---|
| Redmi Note 10/11 | Right of the front camera. | Often closed with a case with "ears" |
| Xiaomi 12/13 | Under the display, at the top | Invisible to the eye, cleansing with alcohol only |
| POCO F4/F5 | Left of the dynamic | It may become contaminated due to its close proximity to the lattice. |
| Redmi 9/9A | Over the display, down the center. | Often suffers from moisture intrusion |
β οΈ Warning: Do not use sharp objects (needles, toothpicks) - this can damage the sensor or display. If the sensor does not work after cleaning, hardware failure is likely (replacement is required).
π‘
Before cleaning, take a picture of the location of the sensor on your model β this will help you not to confuse it with other sensors (for example, light).
6. Update firmware and reset settings
If the sensor started to glittle after the MIUI update, the problem could be in the software. Xiaomi regularly releases patches to fix sensor bugs, so:
- Check for updates: Settings β About phone β System update.
- If the update is available, install it and restart the phone.
- If the problem persists, reset settings (not data!): Settings β Additional β Resets β Reset all settings.
π Important: A complete reset will delete all data, including photos and apps. Use it only as a last resort!
After reset, check the sensor through a test call or app. If the problem persists, contact the service center - you may need to flash or replace the module.
π‘
Updating the firmware is the safest way to fix software failures of the sensor. Always check for updates before drastic measures (reset, disassembly).
7.When calibration won't help: signs of hardware breakdown
Not all proximity sensor problems are software-solved. Please contact the service if:
- π΄ The sensor does not respond to calibration by any method.
- π§ The phone fell into the water or was exposed to severe humidity.
- π¨ There are cracks or chips in the sensor area on the screen.
- π After cleaning/calibration, the sensor works even worse (for example, the screen goes out constantly).
- π The problem appeared after disassembling the phone (replacement of the display, battery).
The cost of replacing the sensor in Xiaomi service centers varies from 800 to 2500 rubles depending on the model. On flagships (for example, Xiaomi 14 Ultra), the module is often assembled with a front camera, which increases the cost of repair.
β οΈ Note: If you have disassembled the phone yourself and damaged the sensor plume, Xiaomi's warranty for repair does not apply.