How to set up the proximity sensor on Xiaomi Redmi Note 9 Pro: the full guide

The Xiaomi Redmi Note 9 Pro is one of the most popular mid-range smartphones, but even it has problems with its proximity sensor. This small but important sensor is responsible for turning off the screen during a phone call when you hold the device to your ear. If the sensor is not working properly, the screen may go out too early, not switch off at all or behave unpredictably. In this article, we will discuss how to check, configure and calibrate the proximity sensor on the Redmi Note 9 Pro without going to the service center.

Sensor problems often occur after MIUI updates, mechanical damage (such as a phone crash) or because of sensor contamination, and in 90% of cases, they can be fixed by software, either through system settings or engineering menus. We will look at all available methods, including hidden MIUI functions that are not documented in the official instructions.

What is a proximity sensor and how does it work

The proximity sensor in the Redmi Note 9 Pro is an infrared sensor that detects the distance between the screen and an object (like your ear).

  • ๐Ÿ”ฆ Infrared emitter emits invisible light.
  • ๐Ÿ“ก Photodiode โ€“ captures the reflected signal and transmits data to the processor.

When you hold your phone to your ear while you're ringing, the sensor picks up the obstacle and tells the system to turn off the screen and touch buttons. This prevents accidental taps and saves battery life. The Redmi Note 9 Pro uses a model sensor, STK3338 (or similar), which is integrated into the top of the display next to the front camera.

The sensor can operate at a distance of up to 5-7 cm, which is enough for comfortable use, but over time, its sensitivity may decrease due to:

  • ๐Ÿงน Pollution (dust, greasy stains on glass).
  • ๐Ÿ”ง Software failures (errors in firmware) MIUI).
  • ๐Ÿ’ฅ Mechanical damage (cracks on glass, impacts).
๐Ÿ“Š Have you encountered proximity sensor problems on Xiaomi?
Yes, the screen doesn't go out during the call.
Yeah, the screen goes out too soon.
Yeah, the sensor's not working well.
No, it's working fine.
I don't know what that is.

How to check the operation of the proximity sensor

Before you set up the sensor, make sure it's really the problem.

  1. Open the phone app and dial the combination: ##6484##
  2. The Manual Test Mode menu will appear on the screen.
  3. Select Proximity Sensor (approximation sensor).
  4. Hold your hand or a piece of paper to the top of the screen (where the front camera is located).

If the sensor is in good shape, the screen will show the words Near (close) or the number 0 (usually indicating that the object is detected). When you remove the hand, the value should change to Far (far) or 1. If there is no reaction or values do not change, the sensor is defective or contaminated.

๐Ÿ’ก

If the test mode does not open, try entering the combination ##4636## and select Usage statistics. โ†’ Sensor test. On some versions MIUI This path works more stable.

You can also use third-party applications for diagnosis, for example:

  • ๐Ÿ“ฑ Phone Doctor Plus (checks all sensors).
  • ๐Ÿ” Sensor Box for Android (Shows Values in Real Time).
  • ๐Ÿ› ๏ธ CPU-Z (sensors).

โš ๏ธ Warning: If the sensor doesn't respond even in test mode, the problem may be hardware, in which case only replacing the sensor or the entire display module will help (on the Redmi Note 9 Pro, the sensor is soldered to the screen plume).

Adjust the proximity sensor through standard MIUI settings

In most cases, sensor problems are solved through standard MIUI settings.

  1. Open the Settings. โ†’ System system โ†’ Additionally.
  2. Select Special Opportunities.
  3. Scroll down and find the System Settings section.
  4. Activate the option to automatically turn off the screen during the call (if it is disabled).

If the option is already on, but the sensor is not working correctly, try turning it off and turning it on again.

  • Open the phone. โ†’ โ‹ฎ (menu) โ†’ Settings.
  • Select Calls โ†’ Additional settings.
  • Make sure that the approach sensor option is enabled.

"Automatic Screen Shutdown" option in special features enabled |

The proximity sensor is activated in the settings of the "Phone" application |

Test mode shows correct values (0/1 or Near/Far)|

There is no protective film or glass on the screen that blocks the IR signal.-->

If after these manipulations the sensor still does not work, proceed to calibration through the engineering menu.

Calibration of the proximity sensor through the engineering menu

The Engineering Mode is a hidden settings section that allows you to manually calibrate sensors, and on the Redmi Note 9 Pro, it is accessed through a secret code:

  1. Open the Phone app.
  2. Enter the combination: ##36446337##
  3. The Engineering Mode menu (can be called MTK Engineer Mode or Qualcomm Engineer Mode depending on the processor) will appear on the screen.

Then proceed according to the version of the firmware:

MIUI versionThe path to sensor settingsAction
MIUI 11โ€“12Hardware Testing โ†’ Sensor โ†’ Proximity SensorPress Calibration, then hold and remove your hand 3-5 times.
MIUI 13+Hardware Testing โ†’ Single Item Test โ†’ Proximity SensorSelect Auto Test, follow Value values.
Global ROMHardware Testing โ†’ ProximityPress Do Calibration and confirm.

After calibration, restart your phone. If the sensor still doesn't work, try resetting to factory settings (but back up the data first!).

โš ๏ธ Warning: Do not change other options in the engineering menu unless you know their purpose. Incorrect settings can cause failures in the communication module or camera.

What to do if the engineering menu is not opened?
If the code ##36446337### doesn't work, try alternatives: ##4636## โ†’ Testing โ†’ Sensor Test. ##6484## โ†’ Manual Test Mode. Install the MTK Engineering Mode app from Google Play (only for MediaTek processor devices). Some firmware has blocked the engineering menu, in which case only the firmware via Fastboot or the service will help.

Software Solutions: Resetting and Updating the Firmware

If the hardware calibration didn't work, the problem could be the software.

  • ๐Ÿ”„ Resetting settings: Go to Settings โ†’ The phone. โ†’ Reset settings and select Reset all settings. This will delete user data, but save files to internal memory.
  • ๐Ÿ“ฒ Update MIUI: Go to Settings. โ†’ The phone. โ†’ Update the system and check for new firmware versions. Often sensor bugs are patched.
  • ๐Ÿ› ๏ธ Install custom firmware: If the problem persists on the official firmware, try going to Xiaomi.EU or LineageOS. 4PDA or XDA Developers.

On the Redmi Note 9 Pro with MIUI 12.5 firmware and later, the proximity sensor can conflict with the Raise to Wake function. Turn it off in Settings โ†’ Screen โ†’ Raise to wake up if the screen goes out arbitrarily.

If the sensor stops working after the upgrade, reset to factory settings, and sometimes newer versions of MIUI reset the sensors.

Hardware problems: cleaning and replacing the sensor

If the software didn't work, it could be because of physical damage to the sensor, and here's what you can do yourself:

  • ๐Ÿงผ Sensor cleaning: Gently wipe the top of the screen (near the front camera) with a cotton swab dipped in alcohol!
  • ๐Ÿ”ง Security glass check: Thick or poor quality glass can block the IR signal. Try temporarily removing it and testing the sensor.
  • ๐Ÿ”จ Diagnostics of the plume: If the phone fell, the sensor plume could have moved away. To check, you will need to disassemble the device (we recommend contacting the service).

The cost of replacing the proximity sensor on the Redmi Note 9 Pro in service centers is 800-1500 rubles (depending on the region).

  • The sensor is soldered to the flexible plume of the display, so replacing requires soldering work.
  • With careless disassembly, you can damage the camera plume or microphone.
  • After replacement, recalibration through the engineering menu may be required.

๐Ÿ’ก

If the sensor is physically damaged and the phone is warranty--don't disassemble it yourself! - Contact the Xiaomi Authorized Service Center, or the warranty will be canceled.

Frequent Mistakes and How to Avoid Them

When setting up the proximity sensor, users often make mistakes that exacerbate the problem, and here are the most common ones:

Mistake.Effects of consequencesHow to avoid
Use of unofficial firmware without compatibility checkThe sensor stops working or is not working properly.Before firmware check the reviews about the version on the forums
Cleaning the sensor with sharp objectsScratches on the sensor, loss of sensitivityUse only soft materials (coat sticks, microfiber)
Change the parameters in the engineering menu without knowing their purposeFailures in the operation of other sensors (gyroscope, accelerometer)Change the Proximity Sensor (Proximity Sensor) settings
Ignoring MIUI updatesBug accumulation, including sensor problemsCheck for updates regularly in Settings โ†’ System Update

Another common mistake is using magnets or metal inserts, which can interfere with the IR sensor, and if you notice that the sensor starts to malfunction after you buy a new case, try temporarily removing it and testing the sensor.

FAQ: Answers to Frequent Questions

The proximity sensor is working, but the screen goes out too fast. How do you increase the latency?
There is no option for adjusting delay in standard MIUI settings, but you can use the Proximity Sensor Reset app from Google Play, which allows you to manually set the sensor response time, and an alternative way is to turn off the Raise to wake up function in the screen settings, as it can conflict with the sensor.
After the MIUI update, the sensor stopped working.
First, reset your settings via Settings โ†’ About Phone โ†’ Reset. If that doesnโ€™t work, roll back the firmware to the previous version using the Mi Flash Tool (the instructions are on 4PDA). Also check if the installed security glass is blocking the sensor.
Can I turn off the proximity sensor altogether?
Yes, but this is not recommended, as the screen will remain active during calls, which will lead to accidental taps. To turn off the sensor, go to Settings โ†’ Special features โ†’ System settings and deactivate the option Automatically turn off the screen during the call.
The test mode shows that the sensor is working, but the screen doesn't go out when you call. What's the matter?
The problem may be the settings of the Phone app. โ†’ โ‹ฎ โ†’ Settings โ†’ Calls. โ†’ Additional settings and make sure that the approach sensor option is enabled, also check if the installed conversation recording software (for example, Cube Call Recorder) blocks the sensor from working).
How much does it cost to replace the proximity sensor in the service?
The cost of replacement depends on the region and the service center. On average in Russia, the price is 800-1500 rubles (excluding diagnostics); in authorized Xiaomi centers, the price may be higher, but you will get a warranty for repair. If the sensor changes with the display (for example, after a fall), the cost will increase to 3000-5000 rubles.