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

Have you ever encountered a situation where, during a phone conversation on Xiaomi, you accidentally press buttons on the screen, or you put a smartphone to your ear, and the sensor responds to the touch of the cheek, activating the speakerphone or transferring the call to hold? This problem is familiar to many owners of touchscreen devices. Fortunately, in Xiaomi, Redmi and smartphones. POCO There are several ways to lock the screen while you’re talking – both built-in and using third-party apps.

In this article, we will discuss all the current methods of locking the screen on devices running MIUI 12/13/14 and Android 11-14, including hidden firmware functions, gestures and automation. You will learn how to configure lock on models from Xiaomi Mi 11 to Redmi Note 12, and what to do if the standard methods do not work.

Why is Xiaomi’s screen not automatically locked when you call?

Many users expect the smartphone to lock the screen itself when approaching the ear, as is implemented on some Samsung or iPhone devices. However, in Xiaomi, this feature is often disabled by default or does not work correctly.

  • πŸ”Ή Absence of proximity sensor or its malfunction (relevant for budget models like Redmi) 9A).
  • πŸ”Ή Problems with sensor calibration after update MIUI.
  • πŸ”Ή Power saving settings that limit sensor performance.
  • πŸ”Ή Failures in firmware, especially after manual downgrade version MIUI.

Before you start setting up the lock, it is worth checking whether the proximity sensor on your device is working.

  1. Open the Phone app and type ##6484## (on some models, ##0*###).
  2. Select Sensor Test β†’ Proximity Sensor from the testing menu.
  3. Close the top of the screen with your hand – if the sensor is working, the color of the indicator will change from red to green.
πŸ“Š Xiaomi’s smartphone will automatically lock the screen while calling?
Yeah, always.
Sometimes, but unstable.
No, you have to do it manually.
I don't know. I haven't.

If the sensor does not respond, the problem may be in the hardware (for example, after the phone falls) or in the software, in which case the lock will have to be adjusted manually or with additional applications.

Method 1: Use of proximity sensor (set up automatic lock)

If your Xiaomi proximity sensor is working, you can enable automatic screen locking during a call, which is hidden in the MIUI settings and does not work on all models, but it is worth a try.

Instructions for MIUI 12/13/14:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find the phone app in the list and tap it.
  3. Go to Permits. β†’ Additional authorizations.
  4. Activate the Switch to Change System Settings (if any).
  5. Go back to the basic settings of the phone and open Settings β†’ System β†’ Additional settings β†’ Special features β†’ Approximation Sensor.
  6. Enable the option to Lock the screen during the call (the name may vary depending on the version of MIUI).

1.Make sure there is no protective film or cover covering the sensor on the screen

2. Check the sensor through the engineering menu (##6484##)

3. Update MIUI to the latest version

4. Reset sensor settings in Settings β†’ About Phone β†’ Resetting β†’ Reset sensor settings-->

On some devices (such as the POCO X3 Pro or Redmi Note 10), this path may be different. If you don't find the right item, try an alternative method:

  1. During the call, pull down the notification panel.
  2. Slip the call settings icon (cog next to the call timer).
  3. Turn on the option to Lock the screen when approaching.

⚠️ Attention: On devices with MIUI 14 based on Android 13+ This feature may conflict with navigation gestures. If the screen starts to turn on/off arbitrarily after activation of the lock, turn off the gestures and use the classic navigation buttons.

Method 2: Locking the screen with the power button (manual method)

The easiest and most versatile way is to lock the screen manually with the power button, which works on all Xiaomi models, regardless of the MIUI version or the state of the sensors.

How to do this:

  • πŸ“ž During the call, press the power button once (do not hold it down!).
  • πŸ”’ The screen will go out, but the conversation will continue.
  • πŸ”„ To unlock the screen, press the power button again and swipe your finger upwards (or enter the password if the lock is set).

This method has one drawback: if you use a fingerprint scanner on the power button (like on the Xiaomi Mi 10T or POCO F3), a casual touch can unlock the phone.

  1. Go to Settings β†’ Lock screen β†’ Fingerprint.
  2. Turn off the Unlock option when you press the power button.

πŸ’‘

If the power button on your Xiaomi is running late, check the power saving settings. In Settings β†’ Battery β†’ Power saving mode, turn off restrictions for system applications.

On some models (such as the Redmi Note 9 Pro), a single tap of the power button can activate the Google Assistant voice assistant.

  1. Open Settings β†’ Applications β†’ Application Management β†’ Google.
  2. Select Permissions β†’ Additional authorizations.
  3. Turn off the Start from the power button.

Method 3: Screen lock gesture (for MIUI 12 and later)

Recent versions of MIUI have the ability to assign gestures to lock the screen while calling, a feature not available on all devices, but if your smartphone supports navigation gestures, try the following method:

Activation of the lock gesture:

  1. Open Settings β†’ System β†’ Gestures β†’ button gestures.
  2. Select Double Touch to lock (or Lock Gesture).
  3. Turn on the option and assign a gesture – for example, double-tapping on the bottom of the screen.
  4. When making a call, use this gesture to block the screen.

On devices with AMOLED-screens (for example, Xiaomi 12 Pro or POCO F4 GT) You can set the gesture "swipe down the ambient display":

  • πŸ”˜ Go to Settings. β†’ Always on screen (AOD) β†’ Gestures.
  • πŸ”˜ Turn Swipe down to lock.
  • πŸ”˜ During the call, swipe down the switched-off screen (without pressing the power button).

⚠️ Note: On some firmware, lock gestures may conflict with the "Raise to Wake Up" function. If the screen spontaneously turns on, turn off this option in Settings. β†’ Lock screen β†’ Raise to wake up.

Method 4: Applications for Automatic Screen Locking

If the built-in methods don't work or you need a more flexible setup, you can use third-party apps.

AnnexFunctionalCompatibilityFeatures
Proximity Sensor FixCorrects the approach sensor, adds a screen lockMIUI 10+ / Android 9+Requires ADB rights for full-time work
Gravity ScreenAutomatic lock/unlocking by proximity sensor or accelerometerAll Xiaomi modelsPaid version with extended settings
AutomateCreate automatic rules to lock the screen during a callAndroid 7+Complicated setup but maximum flexibility
Screen Off and LockAdds a widget and shortcut for fast screen lockAll versions of MIUIDoesn't require root rights

Let’s look at the example of Gravity Screen:

  1. Install the app from Google Play.
  2. Run it and provide all the necessary permissions (including Special Access to Manage Lock).
  3. Go to the settings and enable the option to Lock the screen during the call.
  4. Adjust the sensitivity of the proximity sensor (recommended value - Medium).
  5. In the Exceptions section, add the Phone app so that the lock only works during calls.

Automate will need to create a stream (Flow) according to the following template:

Trigger: Phone β†’ Call status β†’ Start of outgoing / incoming


Action: Device β†’ Screen β†’ Turn off the screen




Condition: Sensors β†’ Approximation Sensor β†’ Closed

⚠️ Note: Apps like Gravity Screen can increase battery consumption 5-10%, Because they're constantly asking for sensors. MIUI 14 Add them to the list of Secure Applications (Settings) β†’ Annexes β†’ Application management β†’ Auto-start) so that the system does not close them in the background.

Method 5: Locking the screen through ADB (for advanced users)

If you are willing to use the developer tools, you can set up automatic screen locking during a call through ADB. This method does not require root rights, but will require connecting the phone to a computer.

Step-by-step:

  1. Turn on USB Debugging on your phone: Settings β†’ About Phone β†’ MIUI version (tap 7 times to become a developer) β†’ Developer settings β†’ Debugging over USB.
  2. Connect your phone to your PC and confirm your trust in your computer.
  3. Download Platform Tools and open the cmd in the folder with adb.exe.
  4. Follow the command to check the connection: Adb devices should appear the name of your device.
  5. Enter the command to allow screen locking during the call: adb shell settings put global proximity_delay 0
  6. Reboot the phone.

Then the proximity sensor will lock the screen as soon as the phone approaches the ear, and if you want to return the standard behavior, do this:

adb shell settings put global proximity_delay 2000
What if the ADB does not recognize the device?
1.Make sure Xiaomi drivers are installed USB Drivers (you can download it on the official website). 2. Try another one. USB-cable (original from Xiaomi). 3. Include the Debugging option in the Developer Settings USB (Safe Mode). 4. Reconnect the device by selecting File Transfer Mode (MTP).

This method is especially useful for devices where the proximity sensor is unstable (for example, on the Redmi 9T or POCO M3). However, beware: incorrect ADB commands can lead to system failures.

Problems: The screen is not locked or is locked too late

If neither of these methods worked, the problem could be in the hardware or software, and let's look at typical scenarios and their solutions.

Problem.Possible causeDecision
The screen will not lock when approaching.The proximity sensor is contaminated or damagedClean the sensor with alcohol, check it in the engineering menu (#6484###)
The lock is triggered by a delayToo high a value. proximity_delay customizedReduce latency through ADB (see Method 5)
The screen is locked, but unlocked immediately.Conflict with gestures or coverTurn off gestures in the settings or remove the case
The lock function is not in the settingsObsolete version of MIUI or regional firmwareUpdate MIUI or reflash your phone to the global version

On devices with MIUI 14 based on Android 13 can help reset sensor settings:

  1. Go to Settings β†’ About the phone β†’ Reset settings.
  2. Select Reset sensor settings.
  3. Confirm the action and restart the phone.

If the problem persists, check if the sensor is disturbed by a protective glass or film. On some models (for example, Xiaomi 11 Lite NE), the sensor is too close to the edge of the screen, and even a thin film can block its signal.

πŸ’‘

Before resetting or firmware your phone, back up your data via Settings β†’ Additional β†’ Backup and Reset. This will save your contacts, messages and app settings.

FAQ: Frequent questions about screen locking on Xiaomi

Can I lock the screen on Xiaomi while calling without a power button?
Yeah, there are a few ways: πŸ”Ή Use the lock gesture (configure in Settings) β†’ System system β†’ Gestures). πŸ”Ή Install Screen Off and Lock widget on the main screen. πŸ”Ή Activate the proximity sensor (if it is in good working order) on some models (e.g, POCO F3) Double touching on the status bar to lock.
Why did the MIUI update stop working?
This is a common problem after major updates (e.g., with a MIUI 12 on MIUI Reasons for this: πŸ”Ή Resetting the proximity sensor settings. πŸ”Ή Changes to the permission policy for the Phone application. πŸ”Ή Conflict with new energy saving features Solution: Go to Settings β†’ Annexes β†’ Application management β†’ Phone. β†’ Permissions and enable all permissions. Reset sensor settings (see Problem Solving). Turn off Adaptive Battery in the power saving settings.
How to check if the proximity sensor is working on my Xiaomi?
There are three ways: Engineering menu: Dial ##6484## β†’ Sensor Test β†’ Proximity Sensor. Close the sensor with your hand - the indicator should change color. Appendix CPU-Z: In the Sensors section, check Proximity readings (should change from 5.0 cm to 0.0 cm at closing). Test call: Call another phone and cover the top of the screen with your hand - if the sensor is working, the screen should go out. If the sensor doesn't respond, try to clean it of dust or update the firmware.
Will the screen lock work if I use wireless headphones?
Yeah, but with nuances: πŸ”Ή With Bluetooth headphones connected, the proximity sensor may not work because the phone is not pressed against the ear. πŸ”Ή In this case, use a manual lock (power button or gesture). πŸ”Ή In the Gravity Screen app, you can configure locking by the position of the phone (for example, when it is lying down). MIUI 14 in the call settings appeared the option to Lock the screen when connecting headphones - turn it on if it is available.
Can I set up a screen lock for incoming calls only?
Yes, but it will require an automation app like Automate or Tasker. Create a rule with the condition: Trigger: Phone β†’ Incoming Call Action: Device β†’ Screen β†’ Turn off Condition: Sensors β†’ Approximation Sensor β†’ Closed For outgoing calls, the rule is set up separately. Gravity Screen also has a call-type filtering option.

Important: On Xiaomi devices with MediaTek processors (such as Redmi 9 or POCO M2), the proximity sensor may not work stable due to the features of the hardware platform, in which case it is recommended to use manual lock or applications like Gravity Screen.