Checking the proximity sensor on Xiaomi Redmi: from diagnosis to repair

The proximity sensor in Xiaomi Redmi smartphones is a small but critical component that is responsible for turning off the screen during a phone conversation. When it fails, you face annoying problems: accidental pressing during a call, inability to complete a call, or even complete inoperability of the touch screen. According to service centers, up to 12% of the calls for malfunctioning of the screen are actually related to the failure of this sensor, not the display.

In this article, we will discuss 5 working methods for checking the proximity sensor on any Redmi models - from the budget Redmi. 9A up to the flagship Redmi K60 Pro. You'll learn how to test a sensor without special tools, what secret codes Xiaomi engineers use, and what to do if the sensor does not respond to the cover of the hand. ADB, which works even on blocked loaders.

Signs of malfunction of the proximity sensor

Before you start diagnosing, it is important to make sure that the problem is in the sensor, not a software failure or mechanical damage to the screen.

  • πŸ“± The screen doesn’t go out when you hold your phone to your ear during a ringing (even if you don’t touch the sensor)
  • πŸ”„ The screen is spontaneously turned on/off for no apparent reason.
  • 🎧 When using a headset or Bluetooth headphones, the screen behaves as if the phone is pressed to the ear.
  • πŸ› οΈ After replacing the glass or display, the sensor stopped working (a common problem with unskilled repairs)
  • πŸ”‹ The battery is discharged faster than usual – a faulty sensor can constantly interrogate the system

If you know any of these signs, the probability of a proximity sensor breaking is 80-90%, but before you bring your phone to the service, try self-diagnosis, 60% of the time it's software-solved.

⚠️ Note: On Redmi Note 10 Pros and later, the proximity sensor is often combined with the light sensor in one module. If you find out after checking that the automatic brightness adjustment is not working, prepare to replace the entire module.

Method 1: Checking through the engineering menu (codes ##)

The fastest way to diagnose is to use the service codes that Xiaomi leaves behind for hardware testing, which work on all Redmi smartphones regardless of the MIUI version.

Open the Phone app and enter one of the combinations:

##6484##


or


##4636##

Once you enter, you will open an engineering menu. Select Hardware Testing β†’ Sensor Test β†’ Proximity Sensor. In some firmware, the path may be different β€” look for tabs called Sensors or Device Test.

  • 🟒 Green indicator and value 0 with open sensor / 1 (or 5) with closed sensor is serviceable
  • πŸ”΄ Red indicator or no response to cover – sensor is faulty
  • βšͺ White screen or Sensor not found error – sensor connection problem (possibly the plume has moved away)

β˜‘οΈ What to do if the engineering menu does not open

Done: 0 / 5

On some models (e.g. Redmi Note 8 Pro), the engineering menu may be blocked, in which case use alternative methods from the following sections.

Method 2: Testing with the Sensor Test application

If service codes don’t work or you want more details, install a third-party sensor diagnostics app.We recommend CPU-Z (Sensors section) or a dedicated Sensor Test app from Innovative Apps.

After installation:

  1. Open the app and find the Proximity Sensor tab
  2. Look at the current value (usually 0.0 cm or Far with the sensor open)
  3. Cover the sensor with your hand – the value should change to 5.0 cm, Near or similar
  4. Remove your hand – the value should return to the original
Showing of the annexMeaningDiagnosis.
Far β†’ Near at the coverSensor reacts.βœ… Corrected.
The meaning doesn't change.Sensor's not responding.❌ Faulty or disabled
Not availableSensor not detected.⚠️ Problem with the plume or firmware
Meaning jumps chaoticallyUnstable signalπŸ”§ Requires cleaning or replacement

If the app shows that the sensor is working, but the screen does not go out during the call, the problem may lie in the system settings or conflicts with the MIUI shell.

Settings β†’ Applications β†’ Application Management β†’ Phone β†’ Storage β†’ Clear data

πŸ“Š Which test method do you prefer?
Service codes
Third-party annexes
ADB-team
Visual examination

Method 3: Checking through ADB (for advanced users)

This method requires you to connect your phone to your computer, but it's the most accurate method, because it goes directly to your system logs.

  • πŸ–₯️ Computer with installed ADB-Drivers (you can download on the official Android website)
  • πŸ“± Included debugging by USB on the phone (Settings) β†’ The phone. β†’ Version. MIUI β†’ 7 times to unlock the developer menu, then Settings β†’ Additionally. β†’ For developers β†’ Debugging by USB)
  • πŸ”Œ USB-cable (preferably original)

Connect your phone to your PC and execute the following commands in the terminal (command line):

adb shell


su




cat /sys/class/sensors/proximity/proximity_raw

If you do not have root rights, use an alternative command:

adb shell dumpsys sensorservice

In the output, look for a unit called the Proximity Sensor.

mPendingEvents:


sensor=5, handle=5, type=8, accuracy=3, value=[0.0], timestamp=123456789




sensor=5, handle=5, type=8, accuracy=3, value=[5.0], timestamp=123456790

Here, value=[0.0] -- the sensor is open, value=[5.0] is closed. If the values don't change or there's no sensor unit, the problem is hardware.

πŸ’‘

If the su command doesn’t work but you have a bootloader unlocked, try getting a temporary root via Magisk or a temporary patch using the Temporary Root app (available in XDA Developers).

Method 4: Visual inspection and mechanical inspection

Sometimes the proximity sensor doesn't stop working because of the electronics, but because of contamination or damage, and on Redmi models, it's usually located at the top of the screen, next to the speaker. Here's how to look at it.

  1. Take a magnifying glass and flashlight – the sensor looks like a small circular hole (sometimes covered by a grid)
  2. Check if it is dusty, dirty or glue residue (a common problem after glass replacement)
  3. Gently wipe the area with a soft brush or cotton swab dipped in alcohol
  4. Blow into the sensor hole – sometimes dust accumulates inside, which blocks the infrared signal.

If your phone has fallen or been repaired, check:

  • πŸ”§ Integrity of the sensor plume (on models with a collapsible screen it can come off)
  • πŸ“ The gap between the glass and the case – if the glass is installed incorrectly, it can press the sensor
  • πŸ”‹ Oxidation of contacts on the board (visible only when completely disassembled)

⚠️ Note: On the Redmi Note 11 and later, the proximity sensor is often integrated into the flexible display plume. If the plume is damaged when replacing the screen, the sensor will not work even after flashing.

What does the proximity sensor look like on different Redmi models
On the Redmi 9/9A/9C, there's a small hole to the left of the speaker; on the Redmi Note 10/11, under the infrared port; on the Redmi K40/K50, hidden under a black grid next to the front camera.

Method 5: Software reboot of the sensor

If the sensor is physically functional but not working properly, the problem may be a system services failure.

  1. Open Settings β†’ Applications β†’ Application Management
  2. Find the Phone app and select Stop.
  3. Then go to Settings β†’ System β†’ Resetting Settings β†’ Resetting App Settings
  4. After resetting, restart your phone.

For models on MIUI 13/14 there is another way:

adb shell cmd phone reset-proximity-calibration

This command resets the sensor calibration to factory values, and then you run it, test it again through the engineering menu.

If nothing worked, but you are sure that the problem is software, try rolling back the MIUI update or installing custom firmware (for example, Xiaomi.eu).In forums, users of the Redmi Note 8 Pro reported that the sensor starts working after a downgrade from MIUI 14 to MIUI 12.5.

πŸ’‘

Before resetting or flashing, be sure to back up your data through Settings β†’ Additional β†’ Backup and Reset.

What to do if the sensor is not working?

If all tests show that the proximity sensor is faulty, you have a few options:

OptionCostDifficultyEfficiency
Cleaning the sensor with alcohol0 ₽⭐60% (if the problem is pollution)
Replacement of sensor plume500–1500 ₽⭐⭐⭐90%
Phone flashing0 ₽⭐⭐30% (if the problem is in the software)
Replacement of the entire display module3000–8000 ₽⭐⭐⭐⭐100%
Disabling the sensor via ADB0 ₽⭐⭐Provisional decision

If you decide to disable the sensor software (for example, while waiting for repair), use the command:

adb shell settings put global proximity_delay 0

This will turn off screen delay during the call, but may result in occasional taps.

To completely disable the sensor, root rights and file editing /system/usr/idc/*.idc will be required (not recommended for inexperienced users).

FAQ: Frequent questions about the proximity sensor on Xiaomi Redmi

πŸ” Why the sensor works in tests but doesn't turn off the screen when you call?
This is a typical MIUI problem where the system app Phone is not properly processing sensor signals. Try: Clear the cache of the Phone app and Contacts Set an alternative dialer (e.g. Google Phone) Disable the Smart Assistant feature in call settings
πŸ› οΈ Can I replace the proximity sensor separately from the screen?
Depends on the model: On the Redmi 8/9/Note 8/9 β€” Yes, the sensor is separate (cost) 200–500 β‚½) On the Redmi Note. 10/11/K40/K50 β€” No, it is soldered into the display plume For accurate information check the disassembly of your model on YouTube or in the service manual.
πŸ”„ After the glass was replaced, the sensor stopped working?
In 95% of cases, this means that: The wizard did not connect the sensor plume back (on models with a removable sensor) The glass is skewed and presses on the sensor The flexible plume is damaged (on models with an integrated sensor) Return the phone to the service - under the law "On consumer protection" you are entitled to free re-repair.
πŸ“± How to check the sensor on Redmi with AMOLED-screen?
Nana AMOLED-models (Redmi) K30 Pro, K40, K50) The proximity sensor is often integrated into the screen and has no visible hole. To check: Use the Sensor Test app - it will show a reaction even to a hidden sensor Try to cover the entire top of the screen (the sensor can fire at a distance of 1-2 cm) Check through the ADB β€” The commands work the same for all types of screens.
πŸ”§ Can the sensor be calibrated independently?
Most Redmi models do not have manual proximity sensor calibration, but you can try: Reset the settings via the engineering menu (##6484## β†’ Calibration) Follow the command adb shell cmd sensorservice reset-prox Install the Magisk Proximity Sensor Fix module (requires root) If the sensor is physically damaged, calibration will not help.