Have you ever encountered a situation where, during an important phone conversation, you accidentally press buttons on a Xiaomi screen? The screen goes out, the speakerphone goes on, or worse, the call is suddenly reset. This problem is familiar to many owners of Redmi smartphones, POCO and other brands. Fortunately, MIUI has several built-in and hidden features that will help lock the screen during a conversation.
In this article, we will look at 5 proven ways, from standard settings to little-known tricks for advanced users, you will learn how to activate screen lock through the phone menu, using gestures, and what applications can help if the usual tools do not work. We will pay special attention to the nuances for different versions. MIUI 12, 13 and 14, and the models with AMOLED-screens where the lock works differently.
Before you get to the instructions, check that the problem of random taps can be associated not only with the lack of locking, but also with the sensitivity of the sensor or the case that presses on the screen. If after applying all the methods, the problem remains, at the end of the article you will find tips for diagnosing hardware malfunctions.
1. Standard screen lock through MIUI settings
The most obvious way is to enable the built-in screen lock feature during a call, which is available on most Xiaomi devices, but the path to it may vary depending on the firmware version.
Hereβs how to do it on MIUI 14 (relevant to Redmi Note 12, Xiaomi 13, POCO F5 and other models from 2023-2026):
- Open the Settings β Applications.
- Select Application Management β Phone.
- Slip on Screen Lock during a call (or Lock the sensor when talking in older versions).
- Activate the switch.
On MIUI 12/13, the path may be different:
Settings β System applications β Phone β Screen lockUpdate MIUI to the latest version (old firmware may not have a feature)
Make sure you donβt have a third-party launcher installed (it can hide system settings)
- Check if permissions for the Phone application are disabled"-->
Important: On some models (e.g. Redmi 9A or POCO M3), this option may be hidden. If you don't find it, move on to the next one.
2. Locking the screen with the gesture "Approach"
If your firmware doesn't have a direct lock setting, you can use the Proximity Sensor, which automatically turns off the screen when you hold the phone to your ear and turns it back on when you move away.
How to set up:
- Go to Settings. β Screen.
- Select Screen Lock and Password (or Additional Screen Settings in MIUI 14).
- Find the "Approach" or "Approach Sensor" option.
- Turn it on and set the lock delay (recommended 1-2 seconds).
This method works on all Xiaomi models, including the Redmi Note 11 Pro, Xiaomi 12T and POCO X5. However, it has a drawback: if the proximity sensor is contaminated or damaged, the screen can lock too late or not lock at all.
π‘
To check the proximity sensor, dial the code ##6484## in the phone app (on some models ##0*##) and select the Proximity Sensor test. Put your hand to the top of the screen, and the value should change from 1 (far) to 0 (close).
3. Use of the lock button (physical or software)
The most reliable, but not always convenient, way is to manually lock the screen with a physical power button, but during a call, the default power button behaves differently: one tap can complete a call, and a long one can call Google Assistant.
To avoid this, follow the following steps:
- π§ Turn off the long press on the power button: Settings β Additional settings β Power button β Long press. β Choose not to do anything.
- π± Use the virtual lock button: add the "Screen Lock" widget to the home screen or to the notification panel (in the "Screen Lock" widget). MIUI 14 This is done through Settings β Control panel β Add tiles).
- π Set up double-click on the screen: in some firmwares, you can assign a double-tap on the black screen to unlock (but not lock!).
Critical nuance: on models with AMOLED-screens (e.g. Xiaomi 13 Ultra or Redmi) K60 Pro) long retention of the power button may cause the device to restart due to the emergency shutdown function. To avoid this, turn it off in Settings β Memory and productivity β Emergency reset.
4 Hidden MIUI settings via engineering menu
If standard methods don't work, you can try activating the lock through the engineering menu, which is suitable for advanced users and requires caution.
Instructions:
- Open the Phone app and dial ##4636##.
- In the menu that appears, select Phone Information (or Testing in English firmware).
- Scroll down and find the Sensor Test section.
- Slip on the Proximity Sensor and make sure it works (the value should change when your hand approaches).
- Go back to the main menu and select Phone Information β Run Ping Test β type ##3646633## to access the advanced settings.
- Find the Screen Lock During Call option and activate it.
What to do if the engineering menu is not opened?
β οΈ Attention: changes in the engineering menu can cause the phone to work in an unstable way. Do not change the settings unless you are sure of their purpose. For example, improper setting of the proximity sensor can cause the screen to permanently shut down even outside of calls.
5. Third-party applications for screen locking
If none of the above methods worked, you can use third-party utilities, which are especially useful for older models (for example, Redmi 4X or Mi A1), where MIUI functionality is limited.
Top.-3 tested applications:
| Annex | Functions | Compatibility | Cons |
|---|---|---|---|
| Proximity Screen Off | Automatic locking when approaching, setting up delay, working with any applications | MIUI 10β14, Android 8β14 | Requires permission to access notifications |
| Gravity Screen | Blocking on the proximity sensor or accelerometer, gesture support | All Xiaomi models | Paid version for advanced functions |
| Screen Off and Lock | Adds a widget for fast locking, works without root | Android 7+ | Does not block the screen during the call, only after |
How to install and configure Proximity Screen Off:
- Download the app from Google Play.
- Run it and grant permissions to Accessibility Service (in Android settings: Special features β Installed services).
- Enable the Enable Proximity Sensor option.
- In the Apps section, select Phone (phone app).
- Set the lock delay (recommended 500-1000 ms).
β οΈ Note: Some applications (such as Gravity Screen) may conflict with MIUI Optimization is a built-in Xiaomi service that limits background activity. To avoid problems, add the app to exceptions:
Settings β Battery and Performance β Application Power Management β Select the App β Without LimitationsStandard setting MIUI|Gesture "Approaching"|Lock button|Third-party annex|No blocking, no problem.-->
6. Alternative methods: covers, films and hardware solutions
If the software doesn't work, the problem may be the hardware.
- π± Use a magnetic lock case: many cases for Xiaomi (for example, the original for the Redmi Note 12 Pro)+) They have a magnet that automatically locks the screen when it closes, and it works even when you're ringing.
- π‘οΈ Stick a protective film with a cutout under the sensor: sometimes the problem is that the proximity sensor is closed with film or glass. Buy a film with a precise cutout under the sensors (for example, from the Spigen or Nillkin brand).
- π§ Check the proximity sensor: if the screen is not locked even after all the settings, the sensor may fail).
- π Reset sensor settings: in rare cases, resetting sensor calibration through an engineering menu helps (code ##6484## β Sensor Calibration).
If the proximity sensor is faulty, replacing it in the service center will cost 500-1,500 rubles (depending on the model). Xiaomi with a collapsible body (for example, Redmi 9C) repair is cheaper than on flagships such as Xiaomi 13 Pro.
7. Diagnostics of problems: why is the screen not locked?
If none of these things work, the reason may go deeper, and here are the most common problems and solutions.
| Problem. | Possible cause | Decision |
|---|---|---|
| The screen is locked with a delay | The proximity sensor is contaminated or damaged | Clean the sensor (located next to the front camera) with alcohol. If it doesn't work, replace the sensor. |
| The lock only works once in a while. | Conflict with another application (for example, with a launcher) | Launch your phone in Safe Mode (hold the power button β Safe Mode) and check it. |
| No lock option in the settings | Outdated firmware or custom MIUI build | Update the firmware through Settings β Update the system or reflash the phone with the official version. |
| The screen is locked, but unlocking is not working. | Failure of the sensor or software | Perform a reset via Settings β About Phone β Reset settings (save data!). |
If the problem occurred after the MIUI update, try to roll back to the previous version.
- Download the necessary firmware from the official Xiaomi website.
- Go to Settings β About Phone β System Update β Click on the three dots in the upper right corner β Select a firmware file.
- Install the downloaded file and restart the device.
π‘
If the screen is not locked only in a particular call app (like WhatsApp or Telegram), the problem is with the settings of that app. Go to its settings and find the option "Block screen during call".