Random taps on the screen during a phone call are a common problem among owners of Xiaomi Redmi 9. The cheek or ear can activate speaker, complete a call or even send a voice message in the messenger. Fortunately, Xiaomi smartphones have a screen lock feature when calling, but it is not always activated by default. In this article, we will discuss how to turn it on, which settings are responsible for correct operation, and what to do if the lock does not work.
The Redmi 9 feature, codenamed lancelot, is that it uses a proximity sensor that automatically turns off the sensor when you bring the phone to your ear, but because of software bugs or incorrect settings, this feature sometimes fails, and we tested all the methods available on MIUI 12.5 and MIUI 13 firmware, the results are summarized in the comparison table below.
It's important to understand that locking the screen when you call is not just a matter of convenience, but also security. For example, in 2022, Redmi users encountered a bug where a random tap during a conversation activated payment services through Mi Pay. The manufacturer issued a patch, but the risk remains for devices with outdated software.
Why the screen is not locked during the call: the main reasons
Before you set up a lock, you need to figure out why the function might not work, and 80 percent of the time, one of three things is the problem.
- π Disabled proximity sensor β hardware malfunction or software failure after update.
- βοΈ Incorrect settings MIUI β Lock function is disabled in the menu "Special features" or "Screen".
- π± Damaged glass or film β thick protective coating can block the sensor signal.
Less often, third-party applications, such as alternative calls (Truecaller, Google Phone), which intercept call management, may not work if you use headphones with a microphone, in which case the system believes that the phone is not pressed to the ear.
You can check the operability of the proximity sensor using the engineering menu.
- Open the Phone app.
- Enter the code ##6484## (some firmware may not work).
- Select the Proximity Sensor and cover the sensor (top of the screen) with your hand.
- If the value changes from 5.00 cm to 0.00 cm, the sensor is serviceable.
π‘
If the engineering menu doesn't open, try the code ##4636## β "Equipment Testing" β "Sensors."
Method 1: Enabling locking through MIUI settings
The most reliable method is to activate the function in standard settings. MIUI 12β14:
- Go to Settings. β Special facilities.
- Select Physical buttons (or button management on newer versions).
- Activate the "Block screen when calling" switch.
- In some firmware, you additionally need to enable Automatic Lock in the Settings β Screen β Screen Lock.
Approximation sensor activated|The function "Blocking when calling" is enabled"|There are no conflicting applications|Updated to the latest version-->
If the lock screen when calling is not on the menu, then your firmware does not support this option directly. β2 or β3.
β οΈ Note: On some custom firmware (e.g. Pixel Experience), the lock function may conflict with navigation gestures. Before setting up, check if settings are reset after rebooting.
Method 2: Use of proximity sensor (manual setting)
If the automatic lock is not working, you can manually adjust the sensitivity of the sensor.
- Go to Settings. β The phone.
- Tap 7 times on the MIUI version to activate the developer mode.
- Return to the main settings menu and open Additional β for developers.
- Find the option to turn off the sensors and make sure it is turned off.
- Scroll down to the Hardware Rendering Acceleration section and enable GPU-rendering (sometimes helps stabilize sensors).
To fine-tune the proximity sensor sensitivity, you will need the Sensor Test app (available on Google Play).
- Open the app and select Proximity Sensor.
- Cover the sensor with your hand β the value should change from FAR to NEAR.
- If the reaction is delayed, try calibrating the sensor through the engineering menu (code ##6484###).
| Method of setting up | Implementation time | Efficiency | Risks. |
|---|---|---|---|
| Standard settings of MIUI | 1-2 minutes | 90% | No. |
| Developer mode | 3-5 minutes | 70% | Resetting settings when updating |
| Third-party annexes | 5+ minute | 80% | Firmware conflicts |
| Sensor calibration | 2-3 minutes | 60% | Damage to the sensor in case of incorrect actions |
Method 3: Third-party applications for forced blocking
If the regular funds don't help, you can use third-party utilities.The best options for Redmi 9:
- π Proximity Sensor Fix β adjusts the proximity sensor, supports MIUI.
- π± Screen Off and Lock β Adds a widget to force the screen to lock during a call.
- π οΈ Tasker β for advanced users (setting automatic lock on the event βCall").
Example of Tasker setup:
- Create a new task (Task β New Task).
- Add the action Display β Lock.
- Go back to the main menu and create a profile (Profile β Event β Phone β Phone Ringing).
- Link the task created to the event.
β οΈ Note: Apps like Screen Off and Lock require the right to ADMIN_DEVICE, Which may be in conflict with security policies MIUI. After installation, check if the settings are reset after rebooting.
How to remove administrator rights for the application?
What to do if the lock does not work: diagnosis and solutions
If none of these things work, the problem can go deeper. Let's look at the typical scenarios and their solutions.
1. The proximity sensor is not responding.
Check it out.
- π¦ Sensor cleanliness (wipe the top of the screen with an alcohol napkin).
- π¦ Integrity of the protective glass (thick films can block the signal).
- π§ Physical damage (cracks in the sensor area).
2. Conflict with the MIUI shell
On the firmware MIUI 12.0.1-12.0.3 There is a bug that causes the proximity sensor to shut down after the update. OTA. Solution - reset network settings (Settings) β SIM-maps and mobile networks β Resetting network settings).
3. Problems after root or custom firmware
If you have installed TWRP or modified software, check:
- π Correct installation of persist-partition (responsible for the operation of sensors).
- π Core compatibility with your model (Redmi 9 uses lancelot).
To restore the sensor after a failed intervention in the system, you may need to flash through Fastboot:
fastboot flash persist persist.img
fastboot rebootAdditional tips for comfortable calls
In addition to locking the screen, you can configure other useful features on Redmi 9:
- π§ Automatic switching to speaker - in Settings β Sound. β Improvement of sound.
- π Vibration when calling β activated in Settings β Sound. β Vibration on the bell.
- π Quiet muffling of the microphone β hold the volume button while talking.
For users who frequently call in noisy places, we recommend turning on noise cancellation:
- Open the Settings. β SIM-maps and mobile networks.
- Choose Voice Improvement (or) HD-new-stitch).
- Activate the Noise Reduction option.
π‘
Noise suppression works only with a stable network signal; in low-course areas (for example, in the subway), the function can degrade communication quality.