Have you ever accidentally pressed buttons on a Xiaomi smartphone screen while you're talking? It's annoying: the volume gets knocked down, the call gets reset, the applications open in the background. A particularly pressing problem for owners of devices with large displays, from the Redmi Note 10 Pro to the flagship Mi 13 Ultra. Fortunately, MIUI has several built-in and hidden ways to lock the screen when you call, and we'll talk about each of them.
In this article, you will find not only standard settings, but also little-known features, such as how to turn on locking via "In your pocket" mode or use gestures to quickly turn off the sensor, and also understand why sometimes locking does not work and how to fix it. All instructions are relevant for MIUI 12, 13 and 14 (including global and Chinese versions of firmware).
Why Xiaomiβs screen doesnβt automatically lock when you call
Xiaomi smartphones should automatically lock the screen when you hold the device to your ear, but often this feature is disabled or does not work correctly.
- π§ The proximity sensor is contaminated or damaged (especially after drops or screen repairs).
- βοΈ In the settings disabled option Block when talking (sometimes reset after updating) MIUI).
- π± Uses a non-original film or cover that interferes with the work of sensors.
- π€ In some firmware (for example, custom or Chinese) the screen lock function during the call is completely removed from the system.
Before you set the lock manually, check the proximity sensor.
- Open the Phone app and type ##6484## (some models run ##0*##).
- Select Sensor Test β Proximity Sensor from the testing menu.
- Close the sensor (top of the screen) with your hand β the value should change from 5.00 cm to 0.00 cm.
β οΈ Warning: If the sensor doesn't respond, try to wipe the top of the screen with alcohol or remove the protective film.
Method 1: Enabling screen lock in call settings
The easiest method is to activate the built-in lock function in the Phone app, which is found in all Xiaomi smartphones on MIUI 12 and later, but sometimes hidden in the depths of the menu.
Instructions:
- Open the phone application (pipe icon).
- Slip on three dots in the upper right corner β Settings.
- Go to Calls β Additional settings (on some models, the path may differ: Settings β Blocking when talking).
- Activate the screen lock switch during the call (or Autolock when approaching).
The proximity sensor is clean and not closed with film
In the settings included screen lock
Testing: Call another number and check if the screen is locked when you bring it to your ear
Restart your phone if the function doesnβt work right away-->
If the option is not on the menu, your firmware doesn't support it, so move on to the following.
Method 2: Use the In-Pack mode to lock
Few people know, but Xiaomi has a hidden feature called "In your pocket mode" that automatically locks the screen when you approach your body, and you can adapt it for calls.
How to set up:
- Go to Settings β Display β Mode βIn your pocketβ.
- Turn on the function and select Lock the screen.
- Set the sensitivity on High (this will help to trigger the lock even at a weak approach).
- Return to Settings β Apps β Permissions β Autostart and make sure the Phone app has the right to autostart.
Now, when you hold your smartphone to your ear while you ring, the screen will lock just like you would if you put it in your pocket, minus the method: sometimes a false lock works if you hold the phone at an angle.
Method 3: Lock the screen with a gesture or volume button
If the automatic methods don't work, you can lock the screen manually, right while you're talking.
- π The swipe down gesture (works on most Xiaomi models with the MIUI 13/14). During the call, swipe your finger from the top edge of the screen down - a notification panel will appear, and the screen will lock.
- π Volume buttons. Press and hold Volume down. + Meals for food 1-2 The screen will go out, but the call will continue.
To unlock the screen, you just need to press the power button or wait for the call to end, a method that is reliable but requires habit β not all users remember it in stressful situations (for example, when urgently need to answer a call in a noisy place).
π‘
If gestures don't work, check settings in Settings β Display β Gestures. Perhaps the swipe lock feature is disabled.
Method 4: Third-party applications for forced blocking
If built-in methods donβt work, you can use third-party utilities, which are useful for older models (e.g. Redmi 4X or Mi A1) that donβt have automatic locking.
Top.-3 tested applications:
| Annex | Functions | Cons |
|---|---|---|
| Proximity Screen Off | Locks the screen when approaching, works during calls | Requires permission to access notifications |
| Gravity Screen | Autolocking by proximity sensor and accelerometer | Paid version for full functionality |
| Screen Off and Lock | Quick lock button on the desktop | It doesnβt work on some custom firmware. |
How to set up Proximity Screen Off:
- Download the app from Google Play.
- Open it and provide access to Notices and Special Opportunities.
- Enable the option of Enable during calls.
- Set a 0.5 second delay for instant locking.
β οΈ Note: Some screen locking applications may conflict with MIUI Optimization (Xiaomi system optimization) If after installing the utility the phone started to brake, turn it off in the battery settings (Settings) β Battery β Optimizing the battery).
Method 5: Blocking through developer settings (for advanced)
If youβre willing to dig into hidden settings, you can enable forced screen locking through developer mode, a method that works for Xiaomi on pure Android (like POCO F1 or Mi A2) or custom firmware.
Step-by-step:
- Activate Developer Mode: Go to Settings β About Phone and tap the MIUI version 7 times.
- Back to Settings β Additionally. β For developers.
- Find the option to turn off touch events when calling (or Disable touch during calls in English).
- Turn it on and restart the phone.
After that, the screen will lock on any call, regardless of the proximity sensor.
What if the lock doesnβt work even after all the settings?
Frequent Mistakes and How to Avoid Them
Even after you have the right lock setup, users are having problems, and here are the most common mistakes and solutions.
- π΅ The screen is locked too late. β Increase proximity sensor sensitivity in settings or reduce latency in third-party apps.
- π The locking is triggered by accident. β Turn off the βIn your pocketβ mode or reduce its sensitivity.
- π« The function works only with headphones. β Check if the call settings include priority for the headset (Settings) β Sound. β Routing of sound).
- π After locking, the screen does not turn on. β It's a bug. MIUI. Helps reboot or disable the function Raise for activation in the display settings.
If you use Xiaomi with Always On Display (AOD), note that this feature may interfere with the proximity sensor. Try turning it off while you call or reduce the brightness of the screen in the settings.
π‘
The most reliable method is the combination of built-in lock in call settings + pocket mode with high sensitivity, which covers 90% of random clicks.