Xiaomi Mi 10 is a flagship smartphone with advanced hardware, but even its owners sometimes face non-obvious problems. One of the most common is a failed proximity sensor, which prevents the screen from going out during a call or, conversely, accidentally turns off when watching a video. In this article, we will discuss how to properly activate the sensor, where to look for hidden settings in MIUI, and what to do if it works unpredictably.
Structurally, the proximity sensor on the Mi 10 is located at the top of the screen next to the front camera, and it's responsible for turning off the display when you hold the phone to your ear during a conversation, which saves battery power and prevents accidental taps. However, after MIUI updates or resets, the function may turn off, and we'll look at all the ways to restore it, including test menus and manual calibration.
Why you need a proximity sensor and how it works
The proximity sensor is an infrared sensor that detects the distance to an object (like your ear) and sends a signal to the system to turn off the screen. On the Xiaomi Mi 10, it is integrated into the top of the display and works in tandem with MIUI software.
- π Automatically turn off the screen during a call (prevents cheek pressing)
- π Saving battery power (display is one of the main consumers of energy)
- π₯ Preventing the accidental completion of video while viewing horizontally
- π Blocking random gestures (such as swipes in your pocket)
The sensor doesnβt work all the time, it only activates in certain scenarios: during a call, when using a speaker, or in some applications (for example, YouTube or Netflix), if the screen does not go out or, conversely, turns off for no reason, the problem can lie in both the hardware (sensor contamination) and in the software settings.
Check the operation of the proximity sensor on Xiaomi Mi 10
Before you set up the sensor, make sure it's functioning at all. There are several ways to do this:
- Test call: Call another number (or use Air Mode + Wi-Fi Calling enabled) and hold the phone to your ear. The screen should go out in 1-2 seconds. If this does not happen, the sensor is inactive.
- Manual check via engineering menu: Enter the code ##6484## in the Phone app, then select Proximity Sensor. Cover the sensor with your hand - the value should change from 5 (far) to 0 (close).
- Third-party apps: Install the Sensor Test utility (available on Google Play) and check the sensor's response to the approach.
If the sensor does not respond to any of the tests, the problem may be:
- π§ Software failure (the following settings) MIUI)
- π± Sensor contamination (dust, protective glass, cover)
- π The old slate (especially for the MIUI 12 and below)
- π₯ Hardware failure (damage to the plume or the sensor itself)
π‘
If the sensor reacts in the engineering menu but doesnβt work during the call, the problem is most likely in the phone app settings or conflict with the MIUI shell.
How to turn on the proximity sensor through the MIUI settings
In most cases, the sensor is turned off after you update the system or reset to factory settings, to activate it:
- Open Settings β System β Additional β Special features β Approximation sensor.
- Make sure the switch is in the position of On. If it is not, proceed to the next method.
- Check the settings of the Phone application: Settings β Applications β Phone β Permissions β Sensors (there should be permission to access).
On some versions of MIUI 13/14, the proximity sensor may not be on the menu.
Enable Developer Mode (Settings β About Phone β MIUI Version β Tap 7 times)
Back to Settings β Additionally. β For developers
Find the Debugging item over USB and turn it on
Scroll down to Hardware Acceleration Block and turn on Approach Sensor
Reboot the phone.-->
Important: On the Xiaomi Mi 10 with MIUI Global Stable 14.0.4+ firmware, the proximity sensor is on by default, but may conflict with some shells (for example, POCO Launcher or Third-party Dialer). If after all the manipulations, the sensor does not work, try resetting the phone application:
- Go to Settings β Applications β Application Management β Phone.
- Click Warehouse β Clear the data (this will delete the call history!).
- Reset the device.
Calibration of the proximity sensor on Xiaomi Mi 10
If the sensor is unstable (for example, the screen goes off too early or, conversely, does not turn off), it must be calibrated.
- Enter the phone code ##6484## (the engineering menu will open).
- Select Proximity Sensor.
- Look at the current values: π 5 - The sensor is free (nothing is blocked) π« 0 - sensor is blocked (obstacle detected)
If the values do not change when approaching the hand, the sensor is defective or contaminated.
Calibrate
Reset
Some firmware may not have calibration, and resetting all sensor settings will help:
adb shell settings put system proximity_delay 1000This command sets the sensor's delay to 1,000 ms (1 second). Connect the phone to a PC with the installed ADB-Drivers and execute commands in the terminal.
What to do if the engineering menu is not opened?
Typical problems and their solutions
Even after turning on, the proximity sensor on the Xiaomi Mi 10 can malfunction.
| Problem. | Possible cause | Decision |
|---|---|---|
| The screen does not go out during the call. | Sensor is disabled in settings or contaminated | Clean the sensor with alcohol, check the settings Phone β Sensors |
| The screen goes off too fast/slowly | Incorrect calibration or delay in operation | Calibrate through the engineering menu or change proximity_delay via ADB |
| The sensor is triggered by accident (in the pocket, when playing) | Sensitivity too high or conflict with the cover | Reduce sensitivity in the engineering menu or remove the case |
| The sensor does not work in a specific application (such as WhatsApp) | The app does not have permission to access sensors | Go to Settings β Applications β [Application] β Permissions and enable sensor access |
Special case: If the sensor stopped working after the phone fell or moisture got in, the problem is probably hardware.
- π οΈ Check the integrity of the plume connecting the sensor to the motherboard.
- π§ If your phone has been in contact with water, dry it in rice or silica gel for at least 24 hours.
- π² Contact Xiaomi Service Center β Self-repair can lead to loss of warranty.
π‘
If the proximity sensor doesn't work in just one application (like Telegram or Viber), the problem isn't the hardware, it's the settings of the program. Try clearing the cache or reinstall it.
Hardware causes of sensor malfunction
If software methods fail, the problem may lie in physical damage to components. On the Xiaomi Mi 10, the proximity sensor is located next to the front camera and can fail for the following reasons:
- π₯ Hit or fall: Even a minor mechanical impact can displace the sensor or damage its contacts.
- π Moisture: oxidation of contacts leads to unstable operation of the sensor.
- π₯ Overheating: If the phone gets hot frequently (such as during games), it can affect sensor sensitivity.
- π‘οΈ Poor security glass: some glasses block the infrared signal of the sensor.
To diagnose a hardware malfunction:
- Remove the cover and protective glass (if any) and check the sensor for reaction.
- Light a flashlight on the sensor area β if it is contaminated, you will see dust or stains.
- Connect your phone to your PC and check the sensor logs through ADB: adb shell dumpsys sensorservice Look for lines with proximity β if there are errors like No data, the sensor is faulty.
β οΈ WARNING: If you're unsure of your phone disassembly skills, don't try to clean the sensor yourself.On the Xiaomi Mi 10, it's soldered to a flexible plume, and careless movement can damage the camera or microphone.
Alternative ways to control the screen during a call
If the proximity sensor is not repairable, alternative screen locking methods can be used:
- π Gestures: Include Settings in settings β Lock screen β Gestures option Double touch to lock. During the call, just double tap the screen to turn it off.
- π± Power button: Teach yourself to press the lock button when you bring your phone to your ear.
- π€ Third-party applications: Utilities like Proximity Sensor Fix or Gravity Screen can emulate the sensor through an accelerometer.
- π§ Tasker: Set up automatic screen shutdown when you start the Phone app.
The downside of alternative methods is that they are less convenient than a standard sensor and can drain the battery faster, for example, Gravity Screen constantly uses an accelerometer, which increases power consumption by 5-10%.
β οΈ Attention: Apps for approximation sensor emulation require permission Special features that may pose security risks. Install them only from trusted sources (e.g. Google Play).