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 on its own, not respond to gestures, or, conversely, remain active during a conversation. Most often, the problem is solved by simple calibration, a procedure that can be performed independently without going to the service center.
In this article, weβll take a look at all the working ways to calibrate the proximity sensor on Xiaomi, Redmi and POCO devices, from standard MIUI tools to hidden engineering menus. Youβll learn how to check the sensorβs performance, reset it, and avoid typical errors. Instructions are suitable for models based on MIUI 12/13/14 and HyperOS, including Xiaomi 13/14, Redmi Note 12/13, POCO F5/X5 and others.
Why is the proximity sensor on Xiaomi not working properly?
Before calibration, it is important to understand the cause of the failure. The proximity sensor may fail due to:
- π± Programming errors - after updating MIUI or reset.
- π§ Sensor contamination β dust, grease, or protective film block infrared signal.
- π Incorrect calibration β factory settings are lost after the display drops or is replaced.
- π οΈ Hardware damage β physical sensor failure (requires repair).
In 80% of cases, the problem is solved by software, and if the sensor does not respond at all (for example, the screen never goes out during a call), first check its physical condition.
- Turn on the flashlight and shine on the top of the screen (where the sensor is located).
- If you see a black spot or scratches, the sensor is damaged.
- Try removing a protective film or cover, which can block the signal.
A critical nuance: on some models (for example, Xiaomi 12T or Redmi Note 11 Pro+), the proximity sensor is combined with the front camera. In this case, calibration through the engineering menu can knock down the autofocus settings - be careful.
Method 1: Calibration through the engineering menu (code ##6484##)
The most reliable method is to use a hidden engineering menu, which works on most Xiaomi devices, but requires caution: incorrect settings can lead to failures.
Instructions:
- Open the Phone app and enter the combination: ##6484##.
- If the code didnβt work, try the alternative: ##4636## β go to the Hardware testing β Sensors tab.
- In the list of sensors, find Proximity Sensor.
- Press Calibrate and follow the hints on the screen.
- Once completed, restart the phone.
What to do if the engineering menu is not opened?
- πΉ Make sure you enter the code without spaces and symbols.
- πΉ On some firmware (e.g. HyperOS) the engineering menu is blocked β use method 3 or 4.
- πΉ If the phone is experiencing a Connection problem, check the network connection (sometimes you need mobile internet).
Battery charge > 30%
VPN and proxy disabled
The phone is not connected to the PC
Screen covers and film removed-->
Method 2: Calibration through MIUI settings (without codes)
If the engineering menu is not available, use the built-in MIUI tools, which are safer, but not available on all models.
Step-by-step:
- Go to Settings. β The phone.
- Click 5-7 times on the MIUI version until you become a developer!
- Return to the main settings menu and open Additional β for developers.
- Find the option Calibration of the proximity sensor (on some firmware it is hidden - use the search by settings).
- Follow the instructions on the screen: You usually need to put your phone on a flat surface and wait for the process to be completed.
If you donβt have an option, try an alternative route:
Settings β System and device β Additional settings β Special features β Calibration of sensorsβ οΈ Attention: MIUI 14 and HyperOS calibration point can be hidden. If it is not, use the applications from method 4 or reset the sensor settings (method 5).
Method 3: Use of applications for calibration (Proximity Sensor Reset)
If standard methods donβt work, install a third-party app. We recommend Proximity Sensor Reset (available on Google Play) β it supports most Xiaomi devices and doesnβt require root rights.
How to use:
- Download and install the Proximity Sensor Reset app.
- Run it and provide access to sensors (if requested).
- Press Calibrate Proximity Sensor.
- Place the phone with the screen up on a flat surface and wait for completion (usually 10β30 seconds).
- Reset the device.
Alternative annexes:
- π Sensor Calibration supports calibration of multiple sensors simultaneously.
- π Phone Doctor Plus β Checks the sensor before calibration.
- π CPU-Z β Shows current sensor values (useful for diagnosis).
π‘
Before using third-party applications, disable battery optimization for them in the MIUI settings. Otherwise, the application may close in the background.
Method 4: Reset sensor settings via ADB (for power users)
If the proximity sensor is completely βcrazyβ (for example, the screen goes out at the slightest movement of the hand), resetting through the ADB (Android Debug Bridge) will help.
Instructions:
- Enable USB debugging in the developer settings (see Method 2).
- Connect your phone to your PC and install ADB drivers (you can download from the official Android website).
- Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell
su
echo 1 > /sys/class/sensors/proximity/prox_calIf the team doesnβt work, try an alternative:
adb shell am start -n com.android.settings/.DevelopmentSettings
adb shell settings put system proximity_offset 0β οΈ Attention: su commands require root rights. If they don't exist, use only the second command. Incorrect input ADB-The commands may cause the system to fail!
What if the ADB canβt see the device?
Method 5: Hardware reset (if nothing helps)
If the software methods donβt work, there are two options:
- Reset to factory settings (delete all data, but return the sensor to its original state).
- Replace the sensor at the service center (if the sensor is physically damaged).
How to reset:
- Create a backup copy of data (photos, contacts, messages).
- Go to Settings β About the phone β Reset settings.
- Select Reset all settings (does not delete files) or Delete all data (complete reset).
- After restarting, check the sensor.
If the reset didnβt work, the problem is the hardware. Contact Xiaomiβs service center or check the warranty (on most models, the proximity sensor is covered by a 12-month warranty).
π‘
Before resetting to factory settings, try rolling back the firmware to the previous version via MIUI bootloader. Sometimes sensor bugs appear after updates.
Table: Compatibility of calibration methods with Xiaomi models
| Xiaomi model | Engineering menu | MIUI settings | Annexes | ADB |
|---|---|---|---|---|
| Xiaomi 13/14, 13T | β (code ##6484##) | β (covertly) | β | β |
| Redmi Note 12/13 | β | β (in the section "For developers") | β | β |
| POCO F5/X5 | β | β | β | β (requires unlocking the loader) |
| Xiaomi 11 Lite, Redmi 10 | β | β | β | β (restriction MIUI) |
| Older models (Redmi 5/6, Mi A2) | β (menu blocked) | β | β | β |
Engineering menu
MIUI settings
Third-party annex
ADB-team
Nothing helped, I turned to the service.-->
Frequent Mistakes and How to Avoid Them
When calibrating the proximity sensor, users often make mistakes that exacerbate the problem.
- π« Ignoring physical damage β if the sensor is cracked or contaminated, calibration wonβt help.
- π« Use of informal firmware - on custom ROM (For example, LineageOS sensor may not work properly.
- π« Interrupting the calibration process β if you close the app or turn off the phone before completion, the settings are confused.
- π« Calibration in the case β even a thin case can block the sensor signal.
How do you check if the calibration has worked?
- Call the phone and hold it to your ear β the screen should go out.
- Move the phone, the screen should turn on.
- Use the Sensor Test app from Google Play to check the sensor values (normally: 0 is far, 1 is close).