How to turn on the screen lock when calling Xiaomi

Modern Xiaomi smartphones running MIUI or HyperOS have a wide range of functionality that sometimes requires fine-tuning to the userโ€™s individual habits. One of the common problems that device owners face is accidentally pressing buttons during a phone conversation when the screen is held up to the ear or placed on the table. The approach sensor is designed to solve this problem, but its work can be incorrect or disabled by default in some use scenarios.

In this article, we will discuss in detail the mechanisms responsible for cancelling the display during incoming or outgoing calls, you will learn where the hidden settings of the system are, how to calibrate the touch layer and what to do if the software methods do not help. Properly configuring these parameters will not only improve communication comfort, but also save battery power, preventing excessive backlighting.

It is worth noting that the menu interface may vary slightly depending on the firmware version and model of your Xiaomi, Redmi or POCO. However, the logic of the system components remains the same throughout the brand ecosystem.

The principle of the proximity sensor on Xiaomi smartphones

The main element that locks the screen is the proximity sensor, which is a small infrared sensor that is usually located at the top of the display, next to the speaker. And its job is to determine the distance between the surface of the screen and a foreign object, in this case your ear or cheek, when the object is closer than the object is. 2-3 centimeter, the system receives a signal and turns off the touchscreen and backlight.

Xiaomi devices use two types of sensors: physical and virtual. The physical sensor is a separate window on the front panel that reads the reflection of the IR beam. The virtual sensor, embedded in many new models, uses ultrasonic technology or software analysis of data from the front camera and accelerometer. The data processing algorithms in MIUI are constantly being improved to minimize false positives.

โš ๏ธ Warning: Black-framed protective glass or an incorrect sticker may block the physical sensor, causing the screen to go out immediately after the call starts, not giving a response, or, conversely, will not respond to the approach.

Understanding the type of sensor you have installed in your device helps you diagnose the problem more quickly, and if you have a model with a subscreen or virtual sensor, the problems may be due to software calibration failures, not surface contamination.

๐Ÿ’ก

If you use a case with thick sidebars, make sure it doesnโ€™t overlap the top edge of the smartphone where the sensors are located.

Configure the lock function through the standard call menu

The first and easiest way to make sure that the lock function is active is to check the settings of the Phone application itself. MIUI This is the responsibility of the system application from Google or Xiaomi's own call, depending on the region and firmware version, access to these options through the contact menu or call history.

You have to open the call app and find the menu icon, which usually looks like three dots or a gear in the corner of the screen. After you go to Settings, you have to scroll down to Incoming Calls. That's where the switch that controls how the screen responds to the approach is located. If it's off, the screen will burn constantly, which often leads to accidental call resets or hands-free switches.

โ˜‘๏ธ Checking the call settings

Done: 0 / 1

In some firmware versions, this item may be called "Proximation Sensor" or "Accumulation Lock." Make sure the slider is blue or green, which means active. Once activated, the settings do not require the device to restart and take effect instantly.

  • ๐Ÿ“ž Open the Phone app and go to settings.
  • ๐Ÿ” Find the section โ€œIncoming callsโ€ or โ€œCall settingsยป.
  • โš™๏ธ Activate the "approximation sensor" switchยป.
  • ๐Ÿ“ฑ Check the screen by holding your hand to the top of the smartphone during a call.

If the problem persists after this option is enabled, a deeper system calibration or hardware check may be required, and standard settings are just the first level of functionality management.

Using an engineering menu to calibrate the sensor

When standard methods fail, an engineering menu comes to the rescue, accessible through a special code, and this hidden section allows you to test and calibrate hardware components, including the same proximity sensor, and you don't need a superuser license to enter this mode, you just need to enter the character combination in the dialer.

Enter the code ##6484## or ##4636## in the call app. Once you enter the last digit, the CIT menu will open. In the test list, you will find the item "Proximity Sensor" or "Proximity Sensor" in this section, you will see the current readings of the sensor and the possibility of calibrating it.

Codes for entering the engineering menu:




1. ##6484## (Main test menu)




2. ##4636## (Information Testing Menu)




3. ##377## (Special for some POCO models)

The calibration process is usually like this: you close the sensor with your finger, press the calibration button, then remove your finger and press the button again. If after the procedure, the value in the Max or Current column changes from 0 to 5 (or another number depending on the model), then the sensor is healthy and calibrated. If the values do not change, it may be contaminated or has a hardware defect.

What if the code doesn't work?
In some newer versions of MIUI, access to the engineering menu through codes may be limited, in which case you can try downloading the "Cit Test" app from the official GetApps store or using third-party utilities for calibration, if they are compatible with your version of Android.

Comparison of screen locking methods

It is important for users to understand the difference between software locking and sensor hardware response. Below is a table that will help to systematize knowledge about different screen management techniques during a conversation on Xiaomi devices.

Management methodLevel of accessEfficiencyRisks.
Call settingsCustomizedHigh (staff)Minimum
Engineering Menu (CIT)SystemicMaximum (calibration)Medium (calibration error)
Third-party annexesAppliedMediumHigh (PO conflicts)
In the pocket modeSystemicTall (for bags)False positives

As you can see from the table, the most reliable way is to set up the system in conjunction with the correct calibration through the engineering menu. Third-party applications often require unnecessary permissions and can conflict with MIUI system processes, causing delays in screen response.

Separately, the Mode in Your Pocket feature, which also uses a proximity sensor but with more aggressive algorithms, is designed to prevent dialing when the phone is in your bag or pocket, and can be useful as an addition to the main lock when calling.

๐Ÿ“Š How often do you have occasional brushing?
Sometimes it happens: Rarely, almost do not notice: Never, everything works perfectly

Solving proximity sensor problems

Even when the lock is enabled, the screen can behave unpredictably. A common cause is a software failure in which the system forgets the sensor state. In such cases, it helps to simply reboot the device or clean the cache of the Phone application and system services. Go to Settings โ†’ Applications โ†’ All applications, find Phone and select Clear Cache.

Another common problem is the use of poor-quality protective glasses. If the glass is opaque or shifted relative to the body, it physically overlaps the sensor. In the case of virtual sensors, the problem can be solved by updating the firmware, since Xiaomi regularly releases patches that improve the algorithms of the sensors.

โš ๏ธ Note: If the calibration in the engineering menu shows a value of 0.0 when the sensor is closed and 0.0 when the sensor is open, this is likely to indicate a hardware malfunction or unstuck sensor plume inside the housing with 99% probability.

In some cases, resetting all settings to factory settings helps, but this is an extreme measure that requires prior data storage. Before contacting the service center, try gently wipe the top of the screen with an alcohol wipe to remove fatty contamination that can distort the sensor readings.

  • ๐Ÿงน Wipe the top of the screen from pollution and fat.
  • ๐Ÿ”„ Reboot your smartphone to reset temporary errors.
  • ๐Ÿ—‘๏ธ Clear the cache of the Phone and System Services appยป.
  • ๐Ÿ› ๏ธ Check if the protective glass covers the sensor area.

If none of the software methods worked, and in the engineering menu, the sensor does not respond to hand closing, it is likely that replacement of components will be required. In modern smartphones, the sensor is often integrated into the plume of the display or front camera.

๐Ÿ’ก

Hardware malfunction of the proximity sensor is rare, most often the problem is solved by correct calibration or removal of the protective glass.

Frequently Asked Questions (FAQ)

Why does the screen go out when I just hold my phone in my hand without touching my ear?
This can be due to the sensor being calibrated incorrectly or too sensitive. Try the recalibrate sensor in the engineering menu or check if you are not covering the top face of the smartphone with your finger when holding.
Can a virus or malicious application block the sensor?
In theory, yes, some ad viruses can intercept sensor control, but most often the problem is that the caller apps you install or the launchers you install are conflicting. Try removing the recently installed programs.
Does temperature affect the approach sensor?
Yes, extremely low or high temperatures can affect the sensitivity of electronic components, including infrared sensors. If the phone has just been introduced from the cold, let it warm to room temperature.
How to turn off the screen lock completely if it interferes with me?
You can turn this feature off in the Phone app settings under Incoming Calls, however, this is not recommended as it will result in constant occasional cheek pressing during a conversation.
Will the reset to factory settings help if the sensor is lying?
Resetting will help if the cause is a software failure or a conflict of system settings, but if the sensor is contaminated, broken or has a hardware defect, resetting will not correct the situation.