How to lock your screen on Xiaomi while calling: all the ways (including hidden ones)

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):

  1. Open the Settings β†’ Applications.
  2. Select Application Management β†’ Phone.
  3. Slip on Screen Lock during a call (or Lock the sensor when talking in older versions).
  4. Activate the switch.

On MIUI 12/13, the path may be different:

Settings β†’ System applications β†’ Phone β†’ Screen lock

Update 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:

  1. Go to Settings. β†’ Screen.
  2. Select Screen Lock and Password (or Additional Screen Settings in MIUI 14).
  3. Find the "Approach" or "Approach Sensor" option.
  4. 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:

  1. Open the Phone app and dial ##4636##.
  2. In the menu that appears, select Phone Information (or Testing in English firmware).
  3. Scroll down and find the Sensor Test section.
  4. Slip on the Proximity Sensor and make sure it works (the value should change when your hand approaches).
  5. Go back to the main menu and select Phone Information β†’ Run Ping Test β†’ type ##3646633## to access the advanced settings.
  6. Find the Screen Lock During Call option and activate it.
What to do if the engineering menu is not opened?
In some models (for example, POCO X3 Pro or Redmi Note 10 Pro) access to the engineering menu may be blocked: 1. Install the application MTK Engineering Mode (for devices running a MediaTek processor). 2. Use it. ADB-Command: Adb shell am start -n com.android.settings/.TestingSettings 3. Update firmware to the latest version – sometimes Xiaomi removes restrictions in new builds.

⚠️ 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:

AnnexFunctionsCompatibilityCons
Proximity Screen OffAutomatic locking when approaching, setting up delay, working with any applicationsMIUI 10–14, Android 8–14Requires permission to access notifications
Gravity ScreenBlocking on the proximity sensor or accelerometer, gesture supportAll Xiaomi modelsPaid version for advanced functions
Screen Off and LockAdds a widget for fast locking, works without rootAndroid 7+Does not block the screen during the call, only after

How to install and configure Proximity Screen Off:

  1. Download the app from Google Play.
  2. Run it and grant permissions to Accessibility Service (in Android settings: Special features β†’ Installed services).
  3. Enable the Enable Proximity Sensor option.
  4. In the Apps section, select Phone (phone app).
  5. 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 Limitations

Standard 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 causeDecision
The screen is locked with a delayThe proximity sensor is contaminated or damagedClean 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 settingsOutdated firmware or custom MIUI buildUpdate 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 softwarePerform 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.

  1. Download the necessary firmware from the official Xiaomi website.
  2. Go to Settings β†’ About Phone β†’ System Update β†’ Click on the three dots in the upper right corner β†’ Select a firmware file.
  3. 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".

FAQ: Frequent questions about screen locking on Xiaomi

πŸ” Why my Xiaomi doesn’t have a lock screen option when you call?
This feature may not be available for several reasons: You have outdated firmware (update MIUI); custom firmware (e.g. LineageOS or Pixel Experience) is installed; the phone model does not support this feature (relevant for some budget devices, such as Redmi 5A); the function is hidden by the manufacturer for a specific region (try changing the region in the settings); Solution: use third-party applications (e.g. Proximity Screen Off) or an engineering menu.
πŸ“± How to lock the screen on Xiaomi without a power button?
If the power button is broken, use one of these methods: Add the lock widget to the main screen (in MIUI 14: long press on the screen β†’ Widgets β†’ Tools β†’ Screen Lock). Use a gesture: in the Screen settings β†’ Additional settings enable Double tap to lock (if available). Install the Screen Off and Lock app and assign a gesture (for example, shaking the phone). Connect a Bluetooth headset - some models lock the screen when you connect the headphones.
βš™οΈ Can you set up automatic screen locking for specific contacts only?
In standard settings MIUI There is no such feature, but it can be implemented using: Tasker (paid automation application): create a task that blocks the screen when an incoming call from selected contacts. MacroDroid (free alternative to Tasker): configure the macro to the condition "Incoming call from [contact]" β†’ Call apps (like Truecaller or Google Phone): Some of them have built-in lock settings for individual contacts. ⚠️ Note: These apps will require permissions for Accessibility Service and Phone, which may affect privacy.
πŸ”‹ Does locking the screen affect battery consumption?
Yes, but not much. Here's how it works: If the screen is locked by a proximity sensor, battery consumption increases by 1 to 3 percent per hour of talk (the sensor consumes minimal energy). When using third-party apps (such as Gravity Screen), consumption can increase by 5-7%, since they work in the background. If the screen is completely turned off (rather than just locked), battery savings will be up to 15-20% per hour of conversation (relevant to the current time). AMOLED-Tip: To minimize consumption, turn off the Always On Display in the screen settings.
πŸ› οΈ What to do if the screen is not unlocked after locking?
This is a common problem, especially in models with AMOLED-Try: Press the power button and hold it for 10 to 15 seconds to force it to restart. If the phone responds to touch, but the screen is black, plug it into the RAM (sometimes it works as an "alarm"). Call your phone from another device -- sometimes an incoming call will unlock the screen. If nothing works, reset via Recovery: 1. Turn off the phone. 2. Press the screen. <power-up> + <volume-button> Before the Mi. 3 logo appears, select Wipe Data. β†’ Wipe All Data (data will be deleted!) If the problem recurs, contact the service center - the display module or plume may be faulty.