The proximity sensor in Xiaomi smartphones is responsible for automatically turning off the screen during phone calls, preventing accidental clicks with the cheek or ear. However, over time, this sensor can begin to work incorrectly: the screen does not go out when you bring the phone to your ear, spontaneously turns off during games or does not respond to gestures. 80% of the time, the problem is solved by software reset or calibration of the sensor โ without having to carry the device to the service center.
In this article, we will discuss 5 proven ways to reset the proximity sensor on Xiaomi 11/12/13/14, Redmi Note 10/11/12, POCO F/X/M and others. You will learn how to diagnose a sensor malfunction, calibrate through the engineering menu, reset to factory settings and even manually adjust sensitivity. All instructions are relevant for MIUI 14/15 and newer versions of the firmware.
Before you start resetting, make sure that the problem is with the sensor, not the protective film or case. On Xiaomi 12 Pro and Redmi K50 models, the proximity sensor is located at the top of the screen on the right, it can be blocked by a thick bumper or improperly pasted glass. If the problem remains after removing the case, go to the instructions below.
How to check the work of the proximity sensor on Xiaomi
Before reset, you need to confirm that the proximity sensor is defective, not, for example, a gyroscope or software settings.
- Open the Phone app and type ##6484## (some models run ##0*##) to run a hardware component test.
Alternative verification method:
- ๐ฑ Start a call (you can call another phone or use code 12345 for a test call).
- ๐ค Hold the phone to your ear โ the screen should go out through the 1-2 seconds.
- ๐๏ธ Take the phone away from your ear โ the screen should turn on immediately.
โ ๏ธ Warning: If the sensor does not respond at all (always 5.00 cm), this may indicate physical damage to the sensor or disconnection of the plume.
On the POCO F5 and Redmi Note 12 Pro+, the proximity sensor is combined with a light sensor, so if the screen doesn't go out during calls, but automatically adjusts the brightness, the problem is precisely the software settings, not the hardware breakdown.
Method 1: Calibration of the sensor through the engineering menu
The most effective reset method is calibration through a hidden engineering menu, which works on 95% of Xiaomi models and does not require root rights.
- Open the Phone app and type the combination: ##36446337##Some firmware may run an alternative code: ##4636###
- Select Hardware Testing โ Sensors โ Proximity Sensor.
- Press Calibrate and wait until the process is complete (usually 10-15 seconds).
- Reboot the phone.
If the engineering menu does not open:
- ๐ Make sure you enter the code without spaces and symbols.
- ๐ฑ Make sure you donโt have third-party launchers installed (like Nova Launcher or Hyperion).
- ๐ง Update the firmware to the latest version MIUI (Settings menu โ The phone. โ Updating the system).
Make sure the screen is clean (no dirt on the sensor)
Remove the cover and protective film
Close all background applications
Connect your phone to charge (recommended)
-->
After calibration, check the sensor again. If the problem persists, proceed to the next method.
Method 2: Reset sensor settings via MIUI
MIUI has a hidden feature in resetting all sensors to factory settings, a method less radical than completely resetting the phone and doesn't affect user data.
- Go to Settings. โ The phone.
- Click 5-7 times in a row on the MIUI version until the notification โYou became a developerโ appears.
- Go back to the basic settings and open Additional โ for developers.
- Find Sensor Reset (or Sensor Reset) and confirm the action.
If there is no Sensor Reset point:
- ๐ Try to find it through the search in the settings (the magnifying glass icon in the upper right corner).
- ๐ฒ On some models (Xiaomi 13 Ultra, Redmi) K60) This item is called Calibration of sensors.
- ๐ Restart your phone and check again.
โ ๏ธ Attention: On firmware MIUI Global Stable versions below 14.0.5 may not be available, in which case use the method with the engineering menu or update the firmware.
After resetting the sensors, it is recommended to restart the device and test the approximation operation in real conditions (during the call).
Method 3: Manually adjust the sensor sensitivity
On some Xiaomi models (such as the POCO X5 Pro or Redmi Note 11 Pro+), you can manually change the threshold of the proximity sensor, which is useful if the sensor reacts too sharply or, conversely, with a delay.
- Install the Sensor Test or Phone Doctor Plus app from Google Play.
- Open the proximity sensor test and write down the current values (usually 0.0 cm to 5.0 cm).
- Download the MIUI Hidden Settings app (developer mode enabled required).
- In MIUI Hidden Settings, find the Proximity Sensor section and change the settings: Far threshold โ usually 5.0. Near threshold โ usually 0.0.
Save the settings and restart the phone.
| Parameter | Recommended value | What to do if... |
|---|---|---|
| Far threshold | 5.0 cm | The screen does not go out when lifting โ reduce to 4.5 cm |
| Near threshold | 0.0 cm | The screen goes out spontaneously โ increase to 0.5 cm |
| Delay | 1000 ms | Delay when turning on the screen โ reduce to 500 ms |
If the sensor is unstable after manual adjustment, return the values to factory (Far: 5.0, Near:0.0) and try another method.
๐ก
Before you change the thresholds, write down the initial parameters on paper, which will help you return the settings if the sensor starts to work worse.
Method 4: Completely reset your phone (if nothing helps)
If all previous methods fail, the radical solution is to reset the phone to factory settings, which will delete all user data, so back up first.
- Go to Settings โ About Phone โ Backup and Reset.
- Select Resetting โ Erase all data.
- Enter the password (if installed) and confirm the action.
- After the reboot, set the phone up as new and check the sensor.
What will remain after the discharge:
- ๐ Files on a memory card (if not encrypted).
- ๐ Xiaomi account details (contacts, notes if synchronization was enabled).
What will be removed:
- ๐ฑ All installed applications and their data.
- ๐ธ Photos and videos in internal memory.
- ๐ Wi-Fi and Bluetooth devices passwords.
โ ๏ธ Note: On models with unlocked bootloader (Xiaomi.eu, custom firmware), the reset may result in the device being locked.Before the procedure, make sure you have access to the Mi Account account tied to the phone.
Once reset, the proximity sensor should work correctly, as all software settings return to factory settings, and if the problem persists, it indicates a hardware malfunction.
Method 5: Hardware diagnostics and repair
If none of the software methods worked, it's probably the sensor itself or the connection.
- Check the sensor plume: ๐ ๏ธ On Xiaomi models with a collapsible body (for example, Redmi). 9A) You can carefully remove the back cover and check if the plume of the proximity sensor has moved away. ๐ Visually inspect contacts for oxidation or damage.
- Test the multimeter sensor: ๐ If you have experience with electronics, you can call the sensor for a chain break. ๐ The voltage on the working sensor should be in the range of 1.8-3.3 V.
- Contact the service center: ๐ Xiaomi will replace the sensor under warranty if the phone was purchased less than a year ago. ๐ฐ The cost of replacing the sensor in informal workshops - from 800 to 2000 rubles (depending on the model).
On models Xiaomi 12S Ultra and Mix Fold 2 sensor proximity integrated in the display module, so its replacement costs much more expensive (from 5000 rubles).
How to replace the proximity sensor yourself?
Frequent errors in resetting the proximity sensor
Many users make common mistakes that not only don't solve the problem, but can make it worse.
- ๐จ Knocking on the phone or pressing the screen in the sensor area, which can damage the sensor or the plume.
- ๐งฒ Bringing magnets to the top of the phone disrupts the compass and other sensors.
- ๐ฅ Heat the phone (such as a hairdryer) in an attempt to "dry" the sensor. Overheating can disable the battery or processor.
- ๐ฒ Install unofficial firmware without backup, which can cause the sensors to fail completely.
It is also not recommended:
- ๐ Resetting settings via Fastboot without needing - it can erase IMEI.
- ๐ง Clean the sensor with alcohol or liquids โ use only dry soft fabric.
- ๐ฑ Turning off the proximity sensor in the settings will lead to accidental pressing during calls.
If the sensor didn't work after all the manipulations, check if the problem is due to a firmware update. For example, MIUI 14.0.3 had a sensor bug on some Redmi models that was fixed in version 14.0.6.