How to lock the screen while talking to Xiaomi: the complete guide

The situation of Xiaomi smartphone not turning off the display during a phone conversation is familiar to many users: You hold the phone to your ear, but the screen continues to burn, the cheek resets calls or opens unnecessary tabs. It's not just an annoying bug, it's a potential privacy and battery problem. The proximity sensor is exactly the component that is responsible for locking the screen at the right moment.

The reasons for this behavior can be completely different: from banal dirt on the dynamics to complex conflicts in the software of the MIUI shell or HyperOS. In some cases, the culprit is a poor-quality protective glass that covers the sensor. Below we will discuss in detail all possible scenarios and ways to eliminate them.

You don't have to take the device to the service center right away. Most of the time, you can solve the problem yourself by setting up the system or simply manipulating the case. It's important to understand that the touch screen and the light sensor are different modules, but they work together when you make calls. Let's figure out how to make them work properly.

The principle of the proximity sensor on Xiaomi smartphones

The main element that controls the state of the display is the infrared sensor. On modern Xiaomi models, it is most often embedded directly in the speaker of the conversational speaker or located next to the front camera. Its task is to emit invisible light and read the reflected signal. When you hold the phone to your head, the signal is reflected from the surface of the face, and the system receives a command to turn off the touchscreen.

If the screen doesn't go out, the radiation-reflection-system chain is disrupted, which can be due to software delays or physical obstacles. The induction sensor (less common, mostly in older models) responds to magnetic field changes, but today's budget and flagship smartphones are dominated by optical methods.

πŸ’‘

If you use a speakerphone or headset frequently, the screen lock feature may not be activated as the system thinks the phone is out of your ear.

It's worth noting that there's a software emulation of this sensor in the MIUI shell, and it tries to predict user intent by analyzing the accelerometer and gyroscope data, but it's software algorithms that often cause failures when the phone doesn't "know" it's in the owner's ear.

Physical obstacles and protective accessories

The most common reason Xiaomi's screen doesn't lock during a conversation is because of external accessories. Owners often forget that the protective glass or film may shift or be initially substandard. If the opaque zone (opaque frame) on the glass overlaps the sensor area, the beam simply won't be able to go out or come back out.

Carefully look at the top of the screen when the display is off. You should see a small dark spot or a slot in the speaker grid. That's where the sensor is. If your security glass has a black frame that even a millimeter enters that area, the problem is guaranteed. Also, dirt, greasy spots or dust in the speaker grid can block IR radiation.

  • 🧼 Clean: Carefully wipe the top of the screen and speaker grid with a microfiber dipped in a special screen tool.
  • πŸ›‘οΈ Glass check: Remove the security glass and check the sensor without it. If the problem disappears, replace the accessory with a model with a cutout under the sensor.
  • πŸ“± Covers: Some thick cases with high sidebars can physically interfere with the phone’s lifting to the ear at the desired distance.
  • 🌑️ Temperature: In rare cases, condensation inside the speaker grid (after frost or bath) can temporarily disrupt the sensor.

⚠️ Attention: Using cheap protective glasses with full front panel sticking is the most common cause of sensor problems on Redmi Note and Xiaomi Mi series models.

Software calibration of the sensor through the engineering menu

If physical obstacles are eliminated, you need to check whether the sensor itself is working correctly. Xiaomi smartphones have a hidden engineering menu that allows you to diagnose and calibrate the equipment, which is the most effective way to know whether the system sees your face.

To enter the testing menu, open the Phone app and enter the universal code ##6484##. If the code does not work, go to Settings β†’ About Phone β†’ MIUI version and quickly click 7-10 times on the build number until the inscription β€œYou became a developer” appears. Then, in the advanced settings menu, find β€œSpecial features” or β€œCIT”.

β˜‘οΈ Sensor diagnostics

Done: 0 / 1

In the test list, look for the Proximity Sensor. Click on it. You'll see the graph and the numerical values. When you close the top of the screen with your palm (to simulate a conversation), the value should change dramatically (usually from 5.0 to 0.0, and the graph turns green). If the values do not change or change randomly, the sensor is faulty or requires calibration.

To do the calibration, press the Calibrate button at the bottom of the screen. Follow the instructions on the display: usually remove your hand, then close the sensor and remove it again. Once you have successfully calibrated, the system will retain the new sensitivity settings. Reboot the device and check the result in a real conversation.

System settings and additional functions

Newer versions of MIUI and HyperOS have added additional features that may conflict with standard screen locking, such as Pocket Mode or gesture control sometimes override the proximity sensor, and it’s also worth checking the settings of the Phone app itself.

Go to the call settings. To do that, open Phone, click three dots in the corner and select Settings. Find Incoming Calls. There may be an option called Approximation Sensor that needs to be active. In some regions, this setting is hidden, and then only global changes help.

ParameterRecommended valueWhere to find out.Impact on the problem
Approximation sensorIncluded.Phone. β†’ Settings β†’ IncomingDirect lock control
Pocket modeOff (for test)Settings β†’ Lock screenCan block the sensor permanently
Brightness of the carIncluded.Settings β†’ ScreenConnected to the light sensor
HypersensitivityOff.Settings β†’ ScreenIncreases false positives

Also, look at the "High Sensitivity" feature in the screen settings. It's designed to use the phone with gloves, but often causes the screen to respond to cheek touches even when dimming. Try turning this option off if it's active.

πŸ“Š How often do you turn off your screen when you call?
It always goes out right: Sometimes it goes out, sometimes it doesn't: Never goes out, it burns constantly: Gaznet, but immediately it lights up again

Third-party applications and software conflicts

Sometimes the problem is not system settings, but third-party applications that you installed yourself, which can be callers from the Play Market, applications for recording conversations, number detectors, or even some launchers, which can request access to the proximity sensor and process it incorrectly.

To identify the culprit, try running your smartphone in Safe Mode, which only downloads system applications, if the sensor is working correctly in Safe Mode, then the problem is in one of the apps you installed, and delete the recently installed programs one by one, checking the result.

⚠️ Note: Number detector applications (such as GetContact or NumBuster) often have access to the lock screen and can interfere with the normal operation of the Xiaomi sensor.

Also, check the permissions for the Phone app. Go to Settings β†’ Apps β†’ All apps β†’ Phone β†’ Permissions. Make sure the app has all the necessary rights, but there are no redundant permissions for third-party utilities. Resetting the Phone app to factory settings can also help.

Hardware malfunctions and repairs

If software methods, calibration and removal of the protective glass did not help, there is a high probability of hardware failure. The proximity sensor is a physical component that can fail due to impact, moisture or production defect, in which case the screen will never go out, or, conversely, will burn with a black screen constantly.

In some Xiaomi models (e.g. Redmi Note 4, 5, 6 Pro), the proximity sensor plume is a separate module or soldered into the front camera plume, which is a low-cost procedure that requires disassembly of the device. In more modern models, the sensor can be integrated into the screen or board, which makes repairs more difficult.

How to check the sensor without an engineering menu?
Install the Test Hardware app or the Play Market analog. Run the Proximity test. Close the top of the screen with your hand. If the app doesn't respond or shows an error, the sensor is physically malfunctioning.

Another sign of a hardware problem is that the top of the smartphone is constantly heating up during a conversation, which may indicate a short circuit in the sensor circuit, in which case the use of the phone may not be safe for the battery, and the device is better off before visiting the service.

Frequently Asked Questions (FAQ)

Why does the screen go out but not unlock when I remove the phone from my ear?
This is the reverse problem of the sensor. It's probably a stick sensor in the "object nearby" state. Try rebooting the phone. If it doesn't work, check if the sensor is covered with dirt. In rare cases, you need to flash the device.
Can the MIUI update fix the sensor problem?
Yes, Xiaomi developers often release patches that fix sensor drivers. Check for updates in Settings β†’ About the phone. However, the other way around is that a new update introduces bugs, in which case only waiting for the next patch or rolling back the version will help.
Does broken glass affect the approach sensor?
Yes, if a crack passes through the sensor area (usually the top of the screen on a speaker speaker), the fragments can scatter the IR beam or create a permanent reflection, which makes the phone "think" it's in the ear all the time, or vice versa - see nothing.
What if the calibration is not saved in the engineering menu?
If the Calibrate button doesn't work or the settings are reset after rebooting, it's a sign of a deep firmware error or memory malfunction. Try doing a full Wipe Data reset. If that doesn't work, you'll need to flash it through your computer.
Is there an app that forcibly extinguishes the screen when you call?
There are applications like "Proximity Sensor Fix," but their effectiveness on modern versions of Android is limited by security policies. They can run unstable. It's better to fix problems than use crutches.

πŸ’‘

If neither calibration, nor cleaning, nor resetting the settings helped - the problem is hardware in nature, and you will need to replace the sensor module or plume in the service center.