Have you noticed that while you're talking, your Xiaomi screen doesn't go out when you reach your ear, and random taps interrupt the call or turn on speaker? Or vice versa, the display turns off too early and you don't have time to press the call end button? These symptoms are 95% likely to indicate a malfunction of the proximity sensor, a small but critical sensor that is responsible for automatically turning off the screen during calls.
The problem is relevant for all Xiaomi lines, from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra. 60% of cases are to blame for the software (downed settings, errors). MIUI It's a conflicting application, but sometimes the root of the evil lies in hardware defects, from a clogged infrared port to physical damage to the plume. In this article, we will analyze all possible causes, starting with the simplest (which you can eliminate in 5 minutes) and ending with complex (requiring the intervention of a service center).
Before you run to the workshop, check if the problem only manifests itself during calls or if the screen goes out arbitrarily in other situations, and if the sensor is running randomly, it's probably the firmware or the factory calibration that's been erased, and if the reaction is not complete, it's possible that the sensor is physically damaged.
1. How the proximity sensor works in Xiaomi smartphones
The proximity sensor in Xiaomi is an infrared sensor that consists of two elements: IR-the emitter (sends invisible light) and IR-When you hold the phone to your ear, the infrared beam bounces off the surface and comes back, which is the command for the system to turn off the screen. Modern models (starting with the Redmi Note 10 and Xiaomi 11) use an optical sensor that is less prone to false positives, but can still fail.
The location of the sensor depends on the model:
- π± Classic placement: to the right of the speaker (e.g. Redmi) 9A, POCO X3).
- π Under the display: in frameless models (e.g. Xiaomi) 13T, Redmi K60).
- π Hidden in the notch: in phones with a βdrop-shapedβ or central notch (for example, POCO F5).
Important: the proximity sensor does not work separately β its data is processed MIUI If the service crashes or is blocked by third-party software (such as the green battery mode), the sensor will stop responding. Xiaomi also has a Smart Assistant feature that can override the standard sensor behavior.
2. Programmatic reasons: when firmware or settings are to blame
In 70% of cases, the proximity sensor on Xiaomi stops working due to failures in the system. MIUI Or the user settings that are wrong, and we'll start with the simplest one, which is to check if the sensor is on.
Checking the sensor activation in the settings
Go to Settings. β Display. β Automatically shut down the screen during the call. If this is missing, it's:
- π§ Your version. MIUI hides the setting (relevant to Redmi on global firmware).
- π± You have custom firmware installed (for example, Pixel Experience), where the logic of the sensor is different.
- π« Sensor disabled at kernel level (meeting after failed firmware via Fastboot).
Check for the βAutomatic Screen Shutdownβ option in the settings
Make sure the Smart Assistant function does not block the sensor
Turn off power saving mode for system applications
Try to make a call in safe mode (without third-party applications)-->
If you have an option but the sensor is not responding, try resetting the sensor settings:
- Open the Phone app and type ##6484## (test code for the phone) MIUI).
- Select Proximity Sensor and press Calibrate.
- Place your phone on a flat surface and wait until the process is complete (donβt touch the screen!).
β οΈ Note: ##6484## does not work on all versions MIUI. If it doesnβt work, use an alternative method: Settings β The phone. β Version. MIUI (tap 7 times to unlock Developer Mode, then find Sensor Calibration in additional settings).
Application conflicts and energy saving
A common cause of sensor glitches is aggressive battery optimization, which puts the system down.
- π B Settings β Battery β Power saving mode disable restrictions for Phone and SensorService.
- π‘οΈ B Settings β Annexes β Application management β Phone Allow Auto Start and Background Operation.
- π± Remove cache cleaner applications (such as Clean Master or Cache Cleaner) DU Speed Booster β They often delete critical calibration files.
If the problem occurs after installing new software, try booting in Safe Mode (hold the power button). β long-press on "Switch offΒ» β Β«Safe mode. If the safe mode sensor is working, it's one of the applications that you've installed.
Hardware malfunctions: from dust to damaged plume
If the software methods didn't work, the problem is probably physical. Xiaomi's proximity sensor may fail for the following reasons:
| Reason. | Symptoms | How to check |
|---|---|---|
| Pollution IR-port | The sensor is delayed or does not respond to close range | Light a flashlight into the sensor area β can you see dust/mud? |
| Damage to the plume | The sensor does not work at all, glitches of other sensors (gyroscope, accelerometer) are possible. | Take your phone apart and check the integrity of the tape (requires experience!) |
| Separation of contacts | Periodic failures, dependence on the position of the phone | Light tapping on the body temporarily restores work |
| Moisture intrusion | The sensor works chaoticly, corrosion on the board is possible | Check the moisture indicators under the lid (red/pink marks) |
Critical: In 80% of hardware damages, the proximity sensor fails along with the front camera or speaker, because they are located on the same plume. + screen does not go out), this is almost guaranteed to indicate a plume break or damage to the connector on the motherboard.
3.1 How to Clean the Approach Sensor
If the problem is pollution, try cleaning the sensor carefully:
- Turn off the phone and get it out. SIM-memory-card.
- Take a soft brush (for example, for camera lenses) or a cotton swab dipped in alcohol (no more than 70%).
- Carefully clear the area around the speaker and sensor! IR-port.
- Let the phone dry for 10-15 minutes before turning on.
β οΈ Warning: Never use compressed air to clean the sensor! The jet can damage the microphone membrane or move the internal components. Also avoid acetone-based liquids - they erode the sensor's protective coating.
What to do if water gets into your phone?
4.Diagnostics of the sensor using the engineering menu
To determine exactly if the proximity sensor is working at the hardware level, use the engineering menu (hidden menu), which is suitable for all Xiaomi models, except the newest ones (starting with the Xiaomi 14, where access is limited).
Instructions:
- Open the phone app and enter the code: ##4636##
- Select Testing (or Hardware Testing in newer versions).
- Find the Sensors section and tap on the Proximity Sensor.
- Put your hand up to the top of the phone. If the sensor is in good condition, Value will change from 5.0 cm to 0.0 cm.
Alternative code for new models (Redmi Note 12, POCO X5 newer):
##284##| Menu value | What does it mean? |
|---|---|
| Value: 5.0 cm (not changing) | Sensor does not respond - hardware malfunction or complete shutdown in the software |
| Value: 0.0 cm when hand is raised | Sensor's working correctly. |
| Meaning jumps chaotically | Problems with plume or clogging IR-port |
If the sensor shows the reaction in the engineering menu, but in reality the screen does not go out β the problem is that the sensor is not a problem. MIUI If you don't have a reaction at all, the sensor is physically malfunctioning.
π‘
If you put a Value sensor on the engineering menu, it shows you 5.0 cm and it doesn't change when you put your hand up, it's 100% hardware failure. Software methods won't help, you need repairs.
5. Flashing and resetting settings: extreme measures
If the approximation sensor worked before, but stopped after the update MIUI, Try to roll back on the previous firmware version or perform a reset.This is true for Xiaomi owners who have encountered a bug after upgrading to the previous version. MIUI 14/15 (Famous problem in firmware for Redmi Note 11 and POCO X4 Pro).
Resetting sensor settings
In some cases, a complete reset of calibration through Fastboot helps:
- Install the Mi Flash Tool and download the firmware for your model.
- Download your phone to Fastboot mode (hold power) + Loudness down).
- In the command line, run: fastboot erase persist
- Reboot the device. The system will automatically recalibrate all sensors.
β οΈ Warning: The fastboot erase persist command will reset all calibrations, including gyroscope, accelerometer and fingerprint data. After the reboot, gesture and biometrics may need to be retuned.
5.2. Retracement to the old version MIUI
If the problem has occurred after the update, try going back to the previous firmware:
- π₯ Download the archive with the desired version MIUI from the official Xiaomi website.
- π Go to Settings. β The phone. β Updating the system β Threefold β Select a firmware file.
- π Specify the downloaded file and wait for the process to complete (do not interrupt!).
If the rollback doesn't work, the last option is a full reset to factory settings. Before that, make sure to back up through Settings. β Additionally. β Backup and reset.
π‘
Before resetting, check if your contacts are saved to your Google or Mi Account account, and once reset, they can be easily restored.
6.When repairs are required: prices and nuances
If all of the above methods do not work, you need to contact the service center. The cost of repairing the proximity sensor on Xiaomi depends on the model and the type of breakdown:
| Type of repair | Cost (β½) | Timeline | Notes |
|---|---|---|---|
| Cleanup IR-port | 500β1 000 | 30β60 minutes | Helps in 40% of pollution cases |
| Replacement of the plume (with sensor) | 1 500β3 500 | 1-2 days | Often changes with the front camera. |
| Contact soldering | 2 000β4 000 | 2-3 days | Required when lanes are separated on the board |
| Replacement of motherboard | 5 000β12 000 | 3-5 days | Extreme case of damage to the sensor chip |
Important nuances:
- π§ In official service centers Xiaomi repair warranty does not cover damage to the sensor, if they are caused by a fall or moisture.
- π± For models older than 2 years (e.g. Redmi Note 9, POCO X3 NFC) It is cheaper to buy a new phone than to change the fee.
- π οΈ Informal workshops may offer cheaper, but the risk of poor-quality repairs is higher (for example, the use of used plumes).
Before you take your phone to the service, check the price of parts for your model. For example, the sensor plume for the Redmi Note 10 Pro is worth it. ~1 200 β½, And for Xiaomi 13, it's already ~3 000 β½. If repairs cost half the cost of the phone, it makes sense to consider buying a new device.
7.Temporary Solutions: How to Use a Phone Without a Sensor
If repairs are delayed and the proximity sensor is not working, workarounds can be used:
- π Turn off touch lock: In Settings β Display deactivate the option Automatically turn off the screen during the call.
- π Use a headset: Connect wireless headphones (such as Xiaomi Buds) β the screen will not go out, as the call goes through Bluetooth.
- π€ Install an alternative caller: Apps like True Phone or ExDialer let you manually adjust screen behavior during a call.
For models with MIUI 12+ There's another life hack:
- Activate Developer Mode (7 taps according to MIUI version).
- Go to Settings β Additional β For developers.
- Find the option to turn off sensors when blocking and deactivate it.
β οΈ Attention: These methods do not solve the problem, but only mask it. Prolonged use of a phone with a faulty proximity sensor can lead to damage to the screen (due to accidental pressing during the call) or overheating (if the screen remains on near the ear).