The proximity sensor in Xiaomi smartphones is a small but critical component that is responsible for turning off the screen during phone calls. When you bring the device to your ear, the sensor registers the obstacle and extinguishes the display, preventing accidental pressing and saving battery power. However, many users face the problem when this sensor Suddenly stops working β the screen does not go out when you call, or vice versa, does not turn back on after the conversation is completed.
In this article, we will discuss how to turn on the proximity sensor on any Xiaomi smartphone (including the Redmi, POCO and Mi series), check its performance, and fix typical problems. The instructions are relevant for all versions of the MIUI 12, 13 and 14 firmware, including global and Chinese builds. If your sensor is disabled software or does not work correctly, you will find a solution here.
What is a proximity sensor and why you need it
The proximity sensor is an optical sensor that detects the presence of an object up to 5-10 cm from the top of a smartphone. In Xiaomi, it is usually located next to a front camera or speaker.
- π Turning off the screen during a call β prevents accidental tapping of the cheek or ear.
- π Battery savings β Screen quenching reduces power consumption.
- π‘οΈ Protection against false positives, such as when using a smartphone in your pocket.
- π§ Working with wireless headphones β on some models, the sensor is involved in automatic switching of audio routes.
On modern Xiaomi smartphones (such as the Redmi Note 12 Pro+ or Xiaomi 13 Ultra), the proximity sensor is often combined with a light sensor that regulates the brightness of the screen. If one of them fails, it can affect the work of the other. It is also worth noting that on budget models (such as the POCO M5) sometimes install simplified sensors that may work less stable.
If the sensor is inactive, you will notice the following problems:
- β The screen does not go out when you hold the phone to your ear.
- β The display does not turn back on after the call is complete.
- β Self-activated screen switching on/off in your pocket.
- β Automatic brightness control is not working (if the sensor is combined).
How to check if the proximity sensor works on Xiaomi
Before you set up or repair the sensor, make sure it is really faulty. Use built-in MIUI tools or third-party apps to do this.
Method 1: Test through the engineering menu (code ##6484##)
The most reliable way to test the sensor is to use a hidden engineering menu.
- Open the Phone app.
- Enter the combination: ##6484### (some models may not work β see alternatives below).
- Select Proximity Sensor (Proximity Sensor).
- Raise your hand to the top of the screen β the value should change from 5.00 (no obstacle) to 0.00 (there is an obstacle).
If the code doesnβt work, try alternatives:
- #4636## β Usage statistics β sensor checks
- #36446337## (for some Redmi models)
Method 2: Checking through the application "Equipment Test"
If the engineering menu is not available, install the official Mi Test app (available from the Mi App Store):
- Download and install the Mi Test.
- Launch the app and select Sensors.
- Find the Proximity Sensor and perform the test by putting your hand to the top of the smartphone.
If the sensor does not respond, the problem may be:
- π§ Software Disable (must be enabled in settings).
- π± Sensor pollution (dust, protective film).
- π Hardware failure (requires repair).
What to do if the engineering menu is not opened?
How to turn on the proximity sensor in the settings Xiaomi
If the sensor is physically functional but not working, it may be disabled in the system settings, and depending on the version of MIUI, the path to options may differ.
Instructions for MIUI 14 (and newer)
- Open the Settings. β System system β Additionally.
- Select Special Opportunities.
- Scroll down and find the System Settings section.
- Activate the proximity sensor switch (or Automatic Screen Shutdown).
Instructions for MIUI 12/13
- Go to Settings. β Screen.
- Select Autoturn and Sensors (or Additional Screen Settings).
- Turn on the approach sensor or turn off the screen when you call.
On some models (e.g. POCO X3 Pro), the option may be:
- Settings β Applications β Permissions β Sensors.
- Settings β Calls β Call settings β Approximation sensor.
If you do not find the desired item, use the search by settings (the magnifying glass icon in the upper right corner) and enter the request of the proximity sensor.
Make sure the sensor is not turned off in the settings|Check the permissions for the phone application"|Update. MIUI last-minute|Reboot your smartphone after the changes-->
Table: Where to look for sensor settings on different versions of MIUI
| MIUI version | The path to settings | Option name |
|---|---|---|
| MIUI 14 (Global/China) | Settings β System β Additional β Special. capabilities | Approximation sensor or Auto-Switching off screen |
| MIUI 13 | Settings β Screen β Autoturn and sensors | Turn off the screen when you call. |
| MIUI 12 | Settings β Additional β Special. capabilities β System settings | Approximation sensor |
| POCO Launcher | Settings β Calls β Call settings β | Use the proximity sensor |
Important: Some firmware (such as custom or Chinese) may have the option hidden, in which case the sensor can only be turned on through ADB or system file editing.
Why the proximity sensor doesn't work: the main reasons
If the sensor is on but still not functioning, the problem may be one of the following:
1. Pollution or damage to the sensor
The proximity sensor is located below the top of the screen and can be locked:
- π§΄ Protective film or glass (especially if it is not properly pasted).
- π§Ή Dust or dirt in the gaps between the body and the screen.
- π₯ Mechanical damage (cracks, chips).
To fix the problem:
- Carefully remove the protective film and check the sensor.
- Wipe the top of the screen with a soft napkin (do not use alcohol!).
- If the sensor is physically damaged, contact the service center.
2. Software failures and MIUI errors
The sensor often stops working after:
- π± Firmware updates.
- π Resetting settings.
- π οΈ Installations of custom recaveri (TWRP).
Decisions:
- π Reboot your smartphone.
- π² Reset the Phone application settings (Settings β Apps β Phone β Storage β Reset).
- π§ Upgrade MIUI to the latest version or roll back to a stable build.
3. Conflict with third-party applications
Some programs (like Truecaller, Call Recorder, or Second Space) can block the sensor from working.
- Launch your phone in Safe Mode (press the power button β Safe Mode).
- Call someone and check the sensor.
- If the sensor is working in safe mode, remove the recently installed applications.
π‘
If the proximity sensor is unstable, try calibrating it through the engineering menu. To do this, type ##6484##, select Proximity Sensor, and press Calibrate (if available).
Hardware malfunction
If none of these things worked, maybe the sensor is physically broken.
- π¨ The sensor does not respond in any test.
- π Visible damage (cracks, dents) to the sensor area.
- π§ Moisture infestation (if the phone falls into the water).
In this case:
- Please contact the official Xiaomi service center.
- If the warranty is over, check the cost of repair (replacing the sensor usually costs 1000-3000 β½).
π‘
Before visiting the service center, be sure to make a backup of the data. Repair of the proximity sensor may require disassembling the smartphone, which always carries the risk of losing information.
How to Calibrate the Approximation Sensor on Xiaomi
If the sensor is working but it is working too late or too early (for example, the screen goes out when the hand comes near), it can be calibrated.
Method 1: Through the Engineering Menu
- Open the engineering menu (code ##6484##).
- Select Proximity Sensor.
- Press Calibrate (if the option is available).
- Follow the instructions on the screen (usually hold and remove your hand several times).
Method 2: ADB (for advanced users)
If calibration via menu is not available, you can use ADB:
- Connect your smartphone to your PC and enable USB Debugging (Settings β About Phone β MIUI Version β 7 times press to unlock developer options, then Settings β Additional β For Developers β Debugging by USB).
- Open the command line on your PC and type: adb shell settings put system proximity_delay 1000 (where 1000 is a delay in milliseconds; experiment with values from 500 to 2000).
- Reboot your smartphone.
If calibration didnβt help, try resetting the sensor settings to factory:
adb shell settings delete system proximity_delayπ‘
On some Xiaomi models (for example, Redmi Note 10 Pro) the sensor calibration is reset after the MIUI update. If the sensor becomes worse after the update, repeat the procedure.
What to do if the proximity sensor is not turned on
If you have checked all settings but the sensor is still inactive, try the following steps:
1. Resetting phone settings
Sometimes the software bugs are so deep that the only solution is a complete reset.
- Make a backup of the data (Settings β About Phone β Backup).
- Remember your Mi Account and Google accounts.
- Go to Settings β Additional β Recovery and Reset β Resetting.
2. Flashing through Fastboot
If the reset didn't help, the firmware might have been damaged.
- Download the official firmware for your model from the Xiaomi Firmware website.
- Install the Mi Flash Tool on your PC.
- Transfer the smartphone to Fastboot mode (clip Volume down + Power).
- Connect to the PC and run the device.
β οΈ Warning: Fastboot flashing deletes all data and can lead to bootloader locking if you don't follow the instructions. Use this method only as a last resort.
3. Replacement of the sensor in the service
If all software methods are exhausted, then all that remains is hardware repair, and the cost of replacing the proximity sensor in service centers is:
| Smartphone model | Cost of replacement (β½) | Duration of repairs |
|---|---|---|
| Redmi Note 11/12 | 1 200 β 1 800 | 1-2 days |
| Xiaomi 12/13 | 1 500 β 2 500 | 2-3 days |
| POCO F4/F5 | 1 000 β 1 600 | 1 day |
| Redmi 10A/10C | 800 β 1 200 | 1 day |
β οΈ Warning: Don't try to replace the sensor yourself - it requires special equipment and skills. Incorrect disassembly can damage the plumes or motherboard.