How to lock the screen on Xiaomi during a call: all the ways

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.

  1. Open the Phone app and type ##6484## (some models run ##0*##).
  2. Select Sensor Test β†’ Proximity Sensor from the testing menu.
  3. 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:

  1. Open the phone application (pipe icon).
  2. Slip on three dots in the upper right corner β†’ Settings.
  3. Go to Calls β†’ Additional settings (on some models, the path may differ: Settings β†’ Blocking when talking).
  4. 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:

  1. Go to Settings β†’ Display β†’ Mode β€œIn your pocket”.
  2. Turn on the function and select Lock the screen.
  3. Set the sensitivity on High (this will help to trigger the lock even at a weak approach).
  4. 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.

πŸ“Š What is the most important way to lock the screen?
Built-in function in call settings
In the pocket mode
Gestures or buttons
Third-party annexes
Don't lock the screen.

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:

AnnexFunctionsCons
Proximity Screen OffLocks the screen when approaching, works during callsRequires permission to access notifications
Gravity ScreenAutolocking by proximity sensor and accelerometerPaid version for full functionality
Screen Off and LockQuick lock button on the desktopIt doesn’t work on some custom firmware.

How to set up Proximity Screen Off:

  1. Download the app from Google Play.
  2. Open it and provide access to Notices and Special Opportunities.
  3. Enable the option of Enable during calls.
  4. 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:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and tap the MIUI version 7 times.
  2. Back to Settings β†’ Additionally. β†’ For developers.
  3. Find the option to turn off touch events when calling (or Disable touch during calls in English).
  4. 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?
If none of the methods worked, the problem may be in the hardware: 1. The proximity sensor is damaged - a replacement is required (cost of repair: 800-1500 rubles). 2. The screen plume is faulty - often breaks after falls or disassembly of the phone. 3. The firmware failure - try to reset to factory settings (Settings β†’ Phone β†’ Resetting). 4. shell conflict - on some versions of MIUI (especially Chinese) the screen lock during the call is disabled at the system level. The solution is to flash the global version of the software.

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.

FAQ: Answers to Frequent Questions

Can I lock the screen on Xiaomi while calling without a proximity sensor?
Yes, there are three options: Use In-Pack mode (opts accelerometer); lock the screen manually with a power button or gesture; install a third-party app like Gravity Screen that locks the screen as it moves; if the proximity sensor is broken, the best solution is to replace it, since it is not only for locking, but also for automatically turning off the screen during a conversation (saves battery).
Why did the MIUI update stop working?
This is a common problem. After major updates (e.g., MIUI 12 to 13), some settings are reset. To return the function: Check if the option is Blocked when speaking in the Phone app settings. Reset the sensor settings: go to Settings β†’ About Phone β†’ Settings β†’ Reset the sensor settings. If it doesn’t work, roll back to the previous version of MIUI or wait for the patch (usually bugs are fixed within 1-2 weeks of the update release).
How to lock the screen on POCO F3/F4/F5 during a call?
On smartphones. POCO (particularly POCO F3 GT And newer) the screen lock is set up in the same way as other Xiaomi, but with nuances: POCO Launcher path to settings may be different: Settings β†’ System applications β†’ Phone. β†’ Blocking when talking. On models with 120 Hz screen (for example, POCO F4) The approach sensor sometimes works with a delay, the solution is to reduce the refresh rate of the screen to 60 Hz in the display settings. If you use custom firmware (for example, Pixel Experience), the lock may not work, you need to install the module. MIUI Camera & Sensor Fix via Magisk.
Will the screen lock work if you call via WhatsApp/Telegram?
No, built-in function Blocks when talking in MIUI It only works for the standard phone app. There are workarounds for messengers: πŸ“± Use In Your Pocket mode – it locks the screen regardless of the app. πŸ”’ Install Gravity Screen and enable Block during calls for all applications. 🎧 Connect wireless headphones – in this case, the screen is locked automatically (if the appropriate setting is enabled in Settings). β†’ Connected devices).
Can you set up a screen lock for certain contacts only?
There is no such feature in standard MIUI settings, but you can use a workaround: Create a separate sound profile for important contacts (Settings β†’ Sound β†’ Sound Profiles). Set up the Tasker app and create a task: Profile: Incoming Call from [Contact] Task: Screen Lock (via Secure Settings plugin) Activate the task only for selected numbers. This is a solution for advanced users, but it gives full control over locking.