You make phone calls, bring Xiaomi to your ear, but the screen persists in glowing, accidentally pressing your cheek or fingers? This problem is familiar to many owners of smartphones of the brand - from the budget Redmi to the flagship Mi 13 Ultra. Normally, the proximity sensor should automatically turn off the display when you bring the device to your head, but sometimes the system fails.
In this article, weโll look at all the possible reasons why Xiaomiโs screen doesnโt go out during a call โ from banal settings to hardware malfunctions. You will learn how to check the operation of the proximity sensor, what system parameters affect its functioning, and what to do if the problem appears after the update. MIUI. And for the most difficult cases, we have prepared instructions for calibrating the sensor and resetting the settings without losing data.
Important: some solutions require developer rights or access to an engineering menu. If you've never worked with these settings, follow the instructions carefully so as not to make the problem worse. AMOLED-screens (e.g. Xiaomi) 12T or POCO F4) There are also nuances associated with the work of the always-on display (AOD).
1. How the proximity sensor works and why it might fail
The proximity sensor in Xiaomi smartphones is an infrared sensor that detects the distance to an object (in this case, your head). When you hold the phone to your ear, the sensor sends a signal to the system, and the screen goes out to prevent accidental tapping. In the Redmi Note 11 models, the sensor is designed to be used to detect the proximity of the device, POCO X3 Pro and others this sensor is usually located at the top of the screen, next to the speaker.
The causes of sensor failures can be divided into three categories:
- ๐ฑ Programming - errors MIUI, Application conflicts, incorrect settings
- โ๏ธ Hardware - sensor contamination, mechanical damage, wear of components
- ๐ System โ consequences of updates, resetting, rooting
Critical feature: on some models (for example, Xiaomi Mi 10 and Mi 11), the proximity sensor is combined with a light sensor. If the screen not only does not go out on call, but also does not automatically adjust the brightness - the problem is precisely in this module.
To check if the sensor is to blame, you can use a test mode.
- Open the phone application
- Type ##6484## (for some models, #4636###)
- Select Proximity Sensor (Proximity Sensor)
- Close the sensor with your hand โ the value should change from 5.00 cm to 0.00 cm
2. Programmatic reasons: settings and errors MIUI
In 60% of cases, the problem is not in the hardware, but in the software. MIUI It's known for its hidden settings that can interfere with the way sensors work, and these are the main software reasons why the screen doesn't go out:
- ๐ง Disabled sensor proximity in call settings
- ๐ฒ shell conflict (for example, after upgrading to the MIUI 14)
- ๐ ๏ธ Errors in the "Phone" or "Contact" application"
- ๐ Resetting settings without proper sensor configuration
The first thing to check is the sensor settings during the call:
- Go to Settings โ Applications โ Application Management
- Find the Phone app and open its settings
- Select Permissions โ Sensors.
- Make sure that the permission to use the proximity sensor is enabled
If the permission is enabled but the problem remains, try resetting the phone app settings:
- In the same settings of the Phone application, select Storage
- Click Clear Data and Clear Cache
- Reset the device
๐ก
Before resetting the phone application data, export the contacts to the file VCF via Contact โ Settings โ Imports and exports to avoid losing them.
Another common reason is the "In your pocket" mode that interferes with the normal operation of the sensor, to turn it off:
- Go to Settings. โ Display. โ Screen locking
- Find the option in your pocket and turn it off.
- Also check the Up to Wake Up settings โ sometimes they conflict with the proximity sensor
Hardware problems: sensor, screen, protective glass
If software methods fail, the problem may be physical damage to the sensor or contamination, especially for devices that:
- ๐ง They were in the rain or in the water (even if they were working normally)
- ๐ฑ Falling down on a hard surface
- ๐ง Disassembled for repair (replacement of screen, battery, etc.)
- ๐ก๏ธ Have a thick protective glass or a case with high sides
The most common hardware cause is proximity sensor contamination, and over time, dust, sweat fat deposits, or adhesive residues from the protective film enter the sensor hole (usually near the front camera) to clean the sensor:
- Turn off the phone.
- Take a soft brush (for example, for camera lenses) or a cotton swab soaked in alcohol
- Clean the area around the sensor carefully (donโt press hard!)
- Wait. 5-10 minutes until the alcohol evaporates and turn on the device
If you've recently glued a safety glass, check if it's blocking the sensor. On some models (like the Redmi Note 10 Pro), the proximity sensor hole is very small, and even millimeter-wide displacement of the glass can block it from working.
- ๐ Illuminate a flashlight on the top of the screen โ the sensor should be visible as a small dark hole.
- ๐ If the glass covers it, gently tuck the edge of the glass and move it.
- ๐ In extreme cases โ glue the glass, choosing a model with the right cutout
What to do if the sensor is physically damaged?
Manual calibration of the proximity sensor
If the sensor is physically healthy but not working properly (e.g., the screen goes out late or not always), it can be recalibrated. MIUI, When the system resets user sensor settings.
Calibration requires an engineering menu.
- Open the phone app and dial ##36446337##
- In the menu, select Proximity Sensor.
- Press Calibrate (Calibrate)
- Follow the instructions on the screen (usually close the sensor with your hand for 5 seconds, then remove your hand)
- After calibration, restart the phone.
If the standard engineering menu is not available (on some models) POCO), Alternative methods can be used through ADB:
adb shell settings put system proximity_delay 0
adb shell settings put system proximity_offset 0These commands reset the sensor's delay and offset. After you input the commands, restart the device.
In the models with MIUI 13/14 It is also worth checking the battery optimization settings for sensors:
- Go to Settings โ Battery and Performance โ Battery Optimization
- In the search, enter a sensor or sensor
- For all services found (e.g. Sensor Service) select No Limitations
Make sure the sensor is clean.|Check the sensor in test mode|Turn off the "In your pocket" mode"|Make a backup copy of the data-->
5. Conflicts with applications and shells
Sometimes the screen doesn't go out when you call because of third-party apps that interfere with the sensors, and most often the culprits are:
- ๐ Alternative Calls (Truecaller, Google Phone)
- ๐ Screen locking applications (e.g. Gravity Screen)
- ๐ฎ Gaming accelerators (Game Turbo) MIUI)
- ๐ก๏ธ Antivirus and Optimizers (Clean Master, 360 Security)
To identify the problem application:
- Load your phone to Safe Mode (press the power button) โ "Restarting in Safe Mode")
- Try making a call - if the screen goes out, it is the fault of third-party software
- Get out of Safe Mode and remove apps one at a time, checking the sensor's performance
Pay special attention to the game mode in MIUI. Some models (such as the Black Shark 5) POCO F3 GT) It can block the proximity sensor so that the screen doesn't turn off during streams:
- Go to Settings. โ Special facilities โ Game accelerator
- Turn off the option of blocking random touches or optimizing calls
- Also check the settings for specific games in the Game Panel โ Settings
If you use Google Phone instead of a standard phone call MIUI, The problem may be in the settings of this application:
- Open Google Phone
- Go to Settings. โ Sounds and vibrations
- Make sure that the approximation sensor option is enabled
- If you donโt have an option, update the app or go back to the standard call.
6 Problems after MIUI update
Many users encounter a failed proximity sensor immediately after the update. MIUI. This is because new versions of the software can:
- ๐ Reset sensor settings to factory
- ๐ฆ Changes to the core of the system that affect the performance of sensors
- ๐ ๏ธ Conflict with previously installed modifications (e.g., Magisk modules)
If the problem occurs after the update, try the following steps:
- Update rollback: Go to Settings โ The phone. โ Update system Click on three dots in the upper right corner โ Update Pack Select Remove the Last Update (if available)
Reset sensor settings:
adb shell pm clear com.android.server.telecom
adb shell pm clear com.miui.voiceassistThese commands reset phone service settings and voice assistants that can affect the proximity sensor.
Manual installation of the old version MIUI:
If the rollback through the settings is not available, you can manually flash the previous version. MIUI For instructions and firmware, go to the official Xiaomi website.
In the models with MIUI 14 is also worth checking HyperOS settings (if installed):
- Go to Settings โ Additional โ Special Opportunities
- Find the HyperOS Optimization section
- Turn off the Smart Sensor Optimization option
To set up automatic locking via MacroDroid:
- Install the app from Google Play
- Create a new macro with a trigger Phone in call mode
- Add the action of screen locking
- In the restrictions, specify only if the screen is on
- Save the macro and provide all the necessary permissions
For models with an infrared port (such as the Redmi Note 8 Pro), you can use an IR remote to lock the screen, but it is an exotic method.
- Go to Settings. โ Display. โ Screen locking
- Enable the option of Double touch to lock
- Now it is enough to touch the screen twice to block it.
If you use a magnetic lock case, it can also help lock the screen, but this method won't work if the case isn't original or the magnet is too weak.
8.When to contact the service center
If none of the proposed methods worked, and the proximity sensor still doesnโt work, most likely the problem is hardware.
- ๐ง The sensor does not respond even after cleaning and calibration.
- ๐ฅ The phone fell from a high altitude or was hit hard.
- ๐ The device was in contact with the liquid (even if it was switched on later)
- ๐ The problem arose after unofficial repairs (replacement of the screen, battery, etc.)
The cost of repairing the proximity sensor in official Xiaomi service centers:
| Model phone | Cost of sensor replacement (โฝ) | Duration of repairs |
|---|---|---|
| Redmi Note 10/11 | 1 200 โ 1 800 | 1-2 days |
| POCO X3/X4 | 1 500 โ 2 200 | 1 day |
| Xiaomi 11/12/13 | 2 000 โ 3 500 | 2-3 days |
| Black Shark 4/5 | 2 500 โ 4 000 | 3-5 days |
| Xiaomi Mix Fold 2 | 4 500 โ 6 000 | 5-7 days |
Before the service visit:
- Make a backup copy of all data (photos, contacts, messages)
- Write it down. IMEI phone number (dial *#06#)
- Check if the warranty is maintained after repair
- If the phone is guaranteed, do not open it yourself!
๐ก
In informal services, replacing the sensor can cost less, but there is a risk of losing the warranty or getting an unoriginal part. Always ask for a check and a warranty for repairs.
โ ๏ธ Warning: If you have disassembled your phone and damaged the sensor plume, the official service may refuse warranty repairs.