How to properly configure the proximity sensor on Xiaomi Redmi 9 with NFC: the full guide

The proximity sensor in Xiaomi Redmi 9 with NFC is a small but critical element that automatically shuts down the screen during phone calls. When you bring the device to your ear, the sensor registers the obstacle and extinguishes the backlight, preventing accidental pressing and saving battery power. However, many users face problems: the screen does not turn off when calling, the sensor is delayed or works unstable, most often due to improper settings, sensor contamination or software failures.

In this article, we will discuss how to test the sensor, calibrate it through the engineering menu, adjust sensitivity and fix typical problems. We will focus on the nuances of the Redmi 9 model with NFC, since its hardware platform has specific features compared to other devices in the line, you will also learn how to reset the sensor to factory settings and what to do if the problem lies at the firmware level.

Where is the proximity sensor in Xiaomi Redmi 9 and how it works

In Redmi 9 (including the NFC version), the proximity sensor is located at the top of the screen, next to the speaker for conversations. It's an infrared sensor that emits invisible light and analyzes the reflected signal. When you hold the phone to your ear or other object, the sensor detects the change in reflected radiation and sends a command to the system to turn off the screen.

It is important to understand that the operation of the sensor depends on several factors:

  • πŸ”Ή Surface cleanliness: Fat, dust, or protective film may block the signal.
  • πŸ”Ή Software calibration: factory settings may be lost after updates MIUI.
  • πŸ”Ή Hardware damage: Falls or moisture often disable the sensor.
  • πŸ”Ή Version of firmware: in old builds MIUI There were bugs with the sensor signal processing.

The Redmi 9 uses a model sensor, STK3311 (or similar), which is integrated into a single module with light, which means that if the automatic brightness sensor stops working, there is a high probability of problems with the proximity sensor.

πŸ“Š Have you ever experienced a failure of the proximity sensor?
Yes, the screen doesn't go out during the call.
Yeah, the sensor's working too late.
No, it's working fine.
I'm having trouble answering.

How to check the operability of the sensor of approach

Before you set up the sensor, make sure it's functioning at all. There are several ways to do this:

  1. Test using USSD code: dial in the phone keyboard ##6484## (or #4636## β†’ Testing β†’ Sensors). In the list, find Proximity sensor – covering the top of the phone with your hand, the value should change from 5.00 (no obstacle) to 0.00 (object detected).
  2. Manual test: Call your phone (or use the Dictator app to simulate a call) and cover the top with your palm. The screen should go out in 1-2 seconds.
  3. Third-party apps: Install Sensor Test or CPU-Z from Google Play, which displays real-time data from all sensors.

If the sensor does not respond to any of the tests, the problem may be:

  • πŸ› οΈ Sensor contamination (wipe the top frame with an alcohol napkin).
  • πŸ“± Firmware failure (try restarting your phone).
  • πŸ”§ Damage to the plume (diagnosis is required at the service center).

πŸ’‘

If the sensor only works at a certain angle, it is likely that its calibration is disturbed, and this is corrected through the engineering menu (see the next section).

Calibration of the proximity sensor through the engineering menu

If the sensor is working but not correctly (e.g., the screen is dimming with a delay or not turning back on), calibration will be required. On Xiaomi Redmi 9, this is done via the hidden engineering menu of MTK Engineer Mode (for MediaTek processors) or Qualcomm Service Menu (for Snapdragon). Your model uses a MediaTek Helio G80 chipset, so the instruction will be for the MTK.

Step-by-step:

Open the phone app and enter ##36446337##

Go to Hardware Testing β†’ Sensor β†’ Proximity Sensor

Click "Do Calibration" and follow the prompts on the screen

After calibration, restart the phone

Check the sensor during the test call-->

If there is no calibration item on the menu, try an alternative method:

  1. Install the MTK Engineering Mode app from Google Play.
  2. Open it and go to Hardware Testing β†’ Sensor β†’ Proximity Sensor.
  3. Write down the current Min and Max values (usually 0 and 5).
  4. Press Calibrate and wait for the process to be completed.

Once calibrated, the sensor should fire faster, and if the problem persists, it may need to reset the sensor settings (more on this in the next section).

What to do if the engineering menu is not opened?
If the code ##36446337## It doesn't work, try it: 1. Install the Shortcut Master app and find hidden menus through it. 2. Update the firmware to the latest version MIUI (In older builds, the engineering menu is often blocked). 3. Use it. ADB-Command: Adb shell am start -n com.mediatek.engineermode/.EngineerMode

Reset sensor settings to factory parameters

If the calibration doesn’t work, the next step is to reset the sensor settings, which will return all the parameters of the proximity sensor (and other sensors) to the original values. On the Xiaomi Redmi 9 with NFC, the reset is only performed through a full reset of the phone settings or using ADB.

Method 1: Through phone settings (soft reset)

  1. Go to Settings β†’ About the phone β†’ Reset settings.
  2. Select Reset Application Settings (does not delete data, but resets system settings).
  3. After restarting, check the sensor.

Method 2: ADB (for experienced users)

Connect your phone to your PC, turn on USB Debugging and execute the command:

adb shell pm clear com.android.providers.settings

This command will reset the settings of all sensors, including the proximity sensor.

πŸ’‘

Resetting sensor settings does not delete your data (photos, contacts), but may require re-tuning screen brightness, gestures, and other settings.

Adjustment of the proximity sensor sensitivity

Some MIUI firmware has hidden parameters to adjust sensor sensitivity, which is useful if the sensor is triggered too early (the screen goes out at the slightest approach of the hand) or, conversely, reacts late.

How to change the threshold of response:

  1. Install the BuildProp Editor app (root rights required!).
  2. Find ro.proximity.delay (delay) and ro.proximity.threshold (sensitivity threshold).
  3. For Redmi 9, optimal values are: ro.proximity.delay=100 (delay in MS) ro.proximity.threshold=3 (threshold where 0 is maximum sensitivity)

Save the changes and restart the phone.

Without root rights, you can not change these parameters, but you can try an alternative way:

  • πŸ“± Install the Sensor Disabler app (disables the sensor completely if it interferes with the sensor).
  • πŸ”§ Use Magisk modules for fine tuning (e.g. Proximity Sensor Fix).
ParameterDefault valueRecommended valueThe effect
ro.proximity.delay200100–150Reduces screen shutdown delay
ro.proximity.threshold52–4Increases sensitivity to obstacles
persist.sys.proximity_offset01Corrects the shift of the sensor

Frequent problems and their solutions

Even after setting up, the proximity sensor on Redmi 9 may not work properly.

⚠️ Warning: If the sensor stops working after a phone drops or moisture hits, don't try to calibrate it software.This is a hardware malfunction that requires a replacement of the sensor or plume.

Problem 1: The screen does not go out during the call

  • πŸ” Check if the sensor is blocking the protective glass or cover.
  • πŸ“± Update the firmware to the latest version MIUI (In older versions, there were bugs with signal processing).
  • πŸ”§ Calibrate through the engineering menu (see section above).

Problem 2: The sensor is going off too late.

  • πŸ› οΈ Reduce the value of ro.proximity.delay (root required).
  • πŸ“Š Check if your phone is overloaded (close the background apps).
  • πŸ”„ Reset sensor settings through ADB.

Problem 3: The screen does not turn on after the call is completed

  • πŸ”‹ Check if the battery is discharged (at low charge, the sensor can glitch).
  • πŸ“± Turn off the "Energy Saving" function in the settings.
  • πŸ”§ Reinstall the firmware via Fastboot (if the problem has appeared after the update).

⚠️ Warning: If the sensor doesn't work after all the manipulations, check it through the test menu (##6484##).If the values don't change when you close the sensor, it's a 100% hardware malfunction.

Alternative ways to control the screen during a call

If the proximity sensor is not repairable, workaround solutions can be used:

  • πŸ“± Substitute applications: Proximity Sensor Fix (simulates the sensor operation) Gravity Screen (disables the screen by movement).
  • πŸ”§ Settings MIUI: Turn on the option to turn off the screen when you lift to the ear in Settings β†’ Special facilities β†’ Universal access. Use the "Raise to wake up" gesture to quickly turn on the screen after the call.
  • πŸ› οΈ Hardware solutions: Replace the sensor module (repair cost) ~1500–2500 β‚½). Use headphones with a microphone to make calls.

The downside of alternative methods is increased battery consumption (constant operation of the accelerometer) or less convenient control, and the best option is to repair the sensor if the phone is still warranty.

FAQ: Frequent questions about the proximity sensor on Redmi 9

Can I turn off the proximity sensor completely?
Yes, but it's not recommended, because the screen will remain on while you're calling. To turn off: Install the Sensor Disabler app (root required). Or turn off the option to turn off the screen when you're lifting it to your ear in the special features settings. Without root rights, you can't completely deactivate the sensor.
Why does the sensor only work in certain applications (like WhatsApp)?
This is because not all messengers are properly integrated with the sensor API in MIUI. Solutions: Update the app to the latest version. In WhatsApp settings, enable the option to Use the proximity sensor (if any).
How to check if the sensor is physically broken?
Do this: Call your phone and put a flashlight on the top of the screen. If the sensor is working, the screen will go out (infrared sensor responds to light). Check the values in the engineering menu (#6484##). If the numbers do not change when you close the sensor, it is broken. Check the top frame for cracks or moisture.
Can the protective film interfere with the sensor?
Yes, especially if it's too thick (over 0.3 mm), not glued correctly (goes into the sensor area), has a metallized coating, solution: replace the film with a thinner one or cut the hole above the sensor.
After the MIUI update, the sensor stopped working.
This is a typical problem for Redmi 9. Try: roll back the firmware to the previous version via Fastboot. perform a reset of sensor settings via ADB (team in the section above). Clear the system cache: Settings β†’ About Phone β†’ Clean (three dots) β†’ Clear the cache. If nothing helps, wait for the next patch update.