Calibration of the proximity sensor on Xiaomi Mi 11 Lite: fixing screen and sensor errors

The proximity sensor in the Xiaomi Mi 11 Lite is a small but critical component that is responsible for turning off the screen during a phone call. When it doesn’t work properly, you’ll encounter random taps during a call, a non-extinguishable screen or a complete sensor failure. The problem is especially relevant for owners of the Mi 11 Lite 4G (model M2101K9G) and Mi 11 Lite 5G (M2101K9AG), where the sensor is integrated into the top of the display and prone to contamination or software failure.

Many users mistakenly think that a malfunction requires a replacement module, but 90% of the time, recalibration or cleaning is enough. In this article, we will examine all possible causes of malfunction, from simple contamination to firmware errors, and provide step-by-step instructions tailored to the features of MIUI 12/13/14. You will also learn how to check the performance of the sensor without special tools and when to really contact the service center.

If your Xiaomi Mi 11 Lite is starting to behave strangely β€” the screen doesn't go out when you call, or, conversely, it stops responding to touches after you approach the ear β€” don't rush to carry it for repair. Most likely, the problem lies in the inconsistency of the sensor data with the system. Calibration takes no more than 5 minutes and does not require disassembly of the device. And if the cause was debris under the sensor windows, we will show you how to carefully remove it without risking damage to the components.

πŸ“Š What problem does the proximity sensor have you encountered?
The screen does not go out during the call.
The screen goes off on its own.
The sensor is not responding at all.
Other

Why is the proximity sensor on the Xiaomi Mi 11 Lite not working properly?

There are several reasons for the Mi 11 Lite proximity sensor failures, and they are divided into hardware and software.

1. Sensor contamination.

The sensor is located below the top of the screen, next to the front camera, and dust, greasy prints, or remnants of a protective film can block the infrared signal, which causes the system to misrepresent the distance to the object, especially if you've recently glued a new glass or a case with high sides.

2. Damage after falling or impact.

Even a minor mechanical impact can displace the sensor or disrupt its contact with the motherboard, in which case calibration will not help - you will need diagnostics in the service.

3. Failure of firmware or MIUI update.

After a major update (for example, from MIUI 12 to MIUI 13) sensor settings are often confused, and the problem can occur after manually resetting the settings or installing custom firmware.

4. Conflict with third-party applications.

Some programs (such as charge savers, ad blockers, or automatic call response modules) can interfere with sensors, and even popular apps like Greenify or MacroDroid sometimes block the system from accessing the sensor.

5. Wear or factory defect.

In rare cases, the sensor fails due to natural aging (especially after 2-3 years of operation), or was initially poorly calibrated in the factory, a characteristic of the early Mi 11 Lite 5G batches released in 2021.

⚠️ Attention: If the sensor stopped working after moisture hit (even if the phone was not sinking, but was just in a room with high humidity), calibration will not help.

How to check the operability of the proximity sensor?

Before you start calibrating, make sure the sensor is the problem, and use the built-in MIUI tools or third-party apps to do this.

Method 1: Test through the engineering menu (no root)

  1. Open the Phone app and enter the combination: ##6484##.

Method 2: Checking with Sensor Test

    Method 3: Manual diagnosis during a call

    1. Call another phone (or use a voice assistant).
    2. Apply the Mi 11 Lite to your ear, and the screen should go out in 1-2 seconds.
    3. Take the phone away, the screen should turn on immediately.

    If the sensor does not respond to any of the tests, the problem may be physical damage or disconnection of the sensor at the system level, in which case try to reset the settings (section below) or contact the service.

    πŸ’‘

    If the sensor is responding to an approach but with a delay (more than 2 seconds), try turning off the Rise to wake function in the screen settings.

    Calibration Preparation: What to Do in Advance

    Before you start calibrating, follow a few steps to avoid errors:

    1. Clear the sensor of the dirt.

    Use a soft brush (for example, for camera lenses) or a cotton swab dipped in alcohol. Don't press hard, the sensor is located under the glass, and it is easy to damage. A microfibre wipe will do for removing greasy marks.

    2 Remove the protective glass or film.

    Even a thin film can block an infrared signal, so if you don't want to shoot it completely, cut the hole above the sensor (which is located to the right of the front camera).

    3. Close all background applications.

    Some programs (e.g., charge savers or optimizers) may interfere with calibration, close them through the recent apps menu or use the memory cleanup function in MIUI.

    4. Check out the MIUI version.

    The calibration on MIUI 12 and MIUI 14 is slightly different. You can find out the version in Settings β†’ About Phone β†’ MIUI version.

    ⚠️ Note: If you use custom firmware (like LineageOS or Pixel Experience), standard calibration may not work. ADB or back to stock MIUI.

    Checklist before calibration:

    β˜‘οΈ Preparation for sensor calibration

    Done: 0 / 5

    Step-by-step: how to calibrate the proximity sensor

    There are three official ways to calibrate the sensor on the Xiaomi Mi 11 Lite:

    1. The engineering menu (without root).
    2. Using the USSD code (the fastest method).
    3. Developer settings (if the first two didn’t work)

    Let us examine each of them in detail.

    Method 1: Calibration through the engineering menu

    This method works on all versions of MIUI and does not require superuser rights.

    1. Open the Phone app and enter the combination: ##6484##.
    2. In the menu, select Proximity Sensor.
    3. Press Calibrate (Calibrate).
    4. Place the phone on a flat surface with the screen up and wait for the process to complete (usually takes 10-20 seconds).
    5. The message will appear Calibration Successful – restart your phone.

    If the sensor is still not working properly after restarting, try repeating the procedure 2-3 times or move on to the next method.

    Method 2: Calibration through USSD-code

    This is the fastest method, but it may not work on some custom firmware.

    1. Open the Phone app.
    2. Enter the code: ##273282*255*663282*##.
    3. In the menu that appears, select Proximity Sensor.
    4. Press Run Test, then Calibrate.
    5. Wait for the message of successful calibration and restart the device.

    If nothing happens after you enter the code, your version of MIUI blocks the method.

    Method 3: Calibration through the developer settings

    This method is suitable for MIUI 13/14 and requires pre-enabled developer mode.

    1. Activate Developer Mode: Go to Settings β†’ About Phone. Click 7 times on the MIUI Version until you become a developer!

    Settings β†’ Additional β†’ For Developers

    USB debugging

    Sensor calibration

    Approximation sensor

    After calibration, be sure to turn off the developer mode if you don't plan to use it. This will improve the security of the device.

    πŸ’‘

    If none of these methods worked, the problem could be a hardware malfunction of the sensor or motherboard, which requires a diagnosis at the service center.

    What if calibration doesn’t help?

    If after all the manipulations, the proximity sensor on the Xiaomi Mi 11 Lite still doesn’t work properly, try the following steps:

    1. Reset the settings to factory.

    This is a radical but effective method. Before reset, make sure to back up the data:

    1. Go to Settings β†’ About Phone β†’ Backup.
    2. Select Settings Reset.
    3. Confirm the action and wait for the reboot.

    2. Update MIUI to the latest version.

    Sometimes sensor bugs are fixed in new builds:

    1. Open Settings β†’ Update the system.
    2. Click Check Updates and install available patches.

    3. Check the phone for viruses.

    Some malware blocks the system from accessing sensors. Use Xiaomi Security or Malwarebytes to scan.

    4. disable battery optimization for system applications.

    1. Go to Settings β†’ Applications β†’ Application Management.
    2. Find the Phone and Settings, then turn off Battery Optimization for them.