How to set up a proximity sensor on Xiaomi Redmi 9C: a complete guide with solutions to problems

What is a proximity sensor and why you need it in the Redmi 9C

The proximity sensor in the Xiaomi Redmi 9C smartphone is a small but critical component that is responsible for automatically turning off the screen during a phone call. When you bring the device to your ear, the sensor captures close distance and extinguishes the display, preventing accidental pressing and saving battery power. Without the correct operation of this sensor, you risk problems: the screen does not turn off when you call (which leads to the pressing of the buttons with your cheek), or, conversely, does not turn on again after the conversation is completed.

The Redmi 9C uses an infrared proximity sensor that is located next to the front camera, and its work is based on measuring the reflected signal: when an object (like your head) is close, the sensor detects changes in infrared intensity. Despite its simplicity, this module can fail due to software failures, contamination or mechanical damage. Next, we will discuss how to check its performance, adjust and fix typical problems.

It's important to understand that proximity sensor problems are often confused with display or firmware malfunctions, for example, if the screen doesn't respond to touch after a call, it might be due to the touch layer hanging, not the sensor, and to accurately diagnose the problem, you'll need to run several tests, and this section is about it.

How to check the proximity sensor on the Redmi 9C

Before you set up the sensor, make sure it works at all, and there are a number of ways to do that, from built-in MIUI tools to third-party applications, starting with the simplest method.

The Xiaomi Redmi 9C has a hidden test mode that allows you to check all sensors, including approximations.

  1. Open the Phone app.
  2. Enter the combination: ##6484### (or #4636## for the alternative menu).
  3. Select the Hardware Testing option β†’ Sensor Test.
  4. Find the Proximity Sensor bar and cover the top of the screen with your hand.

If the sensor is in good condition, it will change from 5.0 cm (or similar) to 0.0 cm. If the numbers don't change, the sensor won't work. Also, pay attention to the screen response: in test mode, it should go out when the hand approaches.

Alternatively, third-party utilities like CPU-Z or Sensor Box (available on Google Play) can display data from all sensors in real time, and the advantage of this approach is that you can watch the sensor work in the dynamics, not just in the static test, but remember that if the sensor is not detected even in these applications, the problem is likely hardware (damaged by the plume or module).

πŸ“Š How often do you encounter sensor problems on your smartphone?
Never.
Nearby (1-2 times a year)
Frequently (once a month)
Constantly.

Configure the proximity sensor through the MIUI menu

In most cases, the proximity sensor on the Redmi 9C does not require manual adjustment β€” it works out of the box. However, if you notice a failure (for example, the screen does not go out on a call or wakes up too long), you can try to adjust the settings through hidden settings.

Follow the instructions:

  1. Open the Settings. β†’ The phone.
  2. Tap 5-7 times on the line MIUI version until the notification appears You became a developer!
  3. Go back to the main Settings menu and select a new Developers item.
  4. Scroll down to the Hardware Acceleration block and find the Debug Option of the Approach Sensor (or Proximity Sensor Calibration).
  5. Activate it and follow the prompts on the screen (usually cover the sensor with your hand and wait for the calibration to be completed).

If you don't have the Debugging Option, it means your version of MIUI doesn't support manual calibration, and you have two options:

  • πŸ”„ Reset sensor settings via the engineering menu (combination ##3644633##).
  • πŸ“± Update the firmware to the latest version – sometimes bugs with sensors are fixed in new builds.
  • πŸ› οΈ Contact the service if the problem is hardware (for example, the train has gone away).

Make sure the screen is clean (no film or glass blocking the sensor)

Close all background applications

Connect the charger (the battery must be charged at least 50%)

Make a backup copy of important data-->

Typical problems of the proximity sensor and their solutions

Even after calibration, the proximity sensor on the Redmi 9C may not work properly, so let's look at the most common symptoms and how to treat them.

Problem.Possible causeDecision
The screen doesn't go out when you ring.Sensor contamination, software failure, damaged glassClean the sensor, restart the phone, check the integrity of the glass
The screen will not turn on after the call.Incorrect calibration, conflict with the shellCalibrate, reset the MIUI settings.
The sensor is acting arbitrarily.Moisture intrusion, mechanical damageDry your phone, check the service.
Sensor not detected in testsHardware malfunction (pipe, chip)Contact the service center.

Special attention should be paid to safety glasses and covers. If they cover the area of the sensor (usually the top of the screen next to the camera), this can block the infrared signal. Try to remove the accessories and repeat the test. Also check if moisture has been hit by the glass, which is a common cause of false positives.

⚠️ Warning: If the sensor stopped working after the phone fell, don't try to disassemble the device yourself. 9C The loop of the proximity sensor is very thin and easily damaged by careless handling.

Reset sensor settings and firmware

If manual calibration doesn't work, the next step is to reset the sensors to the factory settings, which you can do through an engineering menu or a full phone reset, and let's look at both.

Method 1: Reset through the engineering menu

  1. Enter the combination ##3644633##.
  2. Select Proximity Sensor.
  3. Press Reset Calibration (or similar option).
  4. Reboot the phone.

Method 2: Complete reset (Hard Reset)

This method will delete all the data from the phone, so make a backup first.

  1. Go to Settings β†’ About the phone β†’ Reset settings.
  2. Select Reset all settings.
  3. Confirm the action and wait for the process to be completed.

Once reset, the proximity sensor should be activated in normal mode, and if the problem persists, you just have to reflash the phone via Fastboot or Recovery.

  • πŸ“₯ Download the official firmware for Redmi 9C Xiaomi.
  • πŸ”§ Use the Mi Flash Tool to install via Fastboot.
  • ⚠️ Make sure the firmware version matches the model (angelica for Redmi) 9C).
What if the sensor doesn’t work after the firmware is installed?
If the flashing doesn't solve the problem, it almost always indicates a hardware malfunction. In the Redmi 9C, the proximity sensor is integrated into one module with a front camera and an LED. Replacing it requires a complete disassembly of the phone and soldering of the plume, so self-repair is not recommended. The cost of replacing the module in the service is usually 1,500-3,000 rubles (depending on the region).

Alternative solutions: disabling the sensor and using third-party applications

If the proximity sensor is permanently out of order and repair is not possible, you can temporarily do without it.

1. Disconnect the sensor through settings

Some versions of MIUI have an option to force the proximity sensor to shut down.

  1. Go to Settings. β†’ For developers.
  2. Find the option to turn off the proximity sensor (or Disable Proximity Sensor).
  3. Activate it.

After that, the screen won't go out during calls, but you can manually block it with a power button.

Applications for sensor emulation

There are utilities in Google Play that replace the proximity sensor software, like Proximity Sensor Fix or Sensor Disabler, which are timer-based, and the screen goes out after a predetermined time, and the downside is delay and possible crashes.

⚠️ Warning: Disabling the proximity sensor can lead to increased battery consumption, as the screen will remain on during conversations, and it also reduces usability - you will have to constantly monitor for accidental presses.

Prevention of malfunctions of the proximity sensor

To make the proximity sensor on the Redmi 9C last longer, follow the simple recommendations:

  • 🧼 Clean the sensor area regularly of dust and fat. Use a soft wipe and alcohol (non-aggressive solvents!).
  • πŸ“΅ Avoid mechanical damage. Don't drop your phone or press the top of the screen.
  • πŸ’§ Protect yourself from moisture. Even a small ingestion of water can cause the sensor's contacts to corrosion.
  • πŸ”„ Update the firmware. In new versions. MIUI Often fix sensor bugs.
  • πŸ›‘οΈ Use quality accessories. Cheap glass and covers can block the sensor signal.

Critical information: In the Redmi 9C, the proximity sensor is located under the display glass, so replacing it requires a complete disassembly of the phone and replacing the entire camera / sensor module. Self-repair without experience can damage the plume or screen matrix.

If you notice that the sensor started to crash after installing custom firmware, try returning to the official version of MIUI. Some custom builds (for example, LineageOS) may not work properly with Xiaomi hardware components.

πŸ’‘

Before cleaning the sensor, turn off the phone and let it cool. Heating from prolonged operation can distort the readings of the infrared sensor.

FAQ: Frequent questions about the Redmi 9C proximity sensor

Can I replace the sensor by myself?
Technically, but it's extremely difficult. In the Redmi 9C, the sensor is soldered into a common module with a front camera and an LED. To replace it, you need to: Disassemble the phone (risk of damage to the display plume); Seal off the old module and solder a new one (requires a soldering station); glue a new module for tightness; Without experience, you better contact the service. The cost of replacing it is from 1,500 rubles.
Why does the sensor work poorly after the upgrade?
This is a typical problem when switching to a new version of MIUI. Reasons: Incompatibility of sensor drivers with new firmware; calibration failure after updating; conflict with battery optimizations; Solution: perform a reset of sensor settings (as described above) or roll back to the previous version of MIUI.
How to check the sensor without an engineering menu?
If ## combinations don’t work, use third-party apps: Sensor Box for Android (represents real-time data), CPU-Z (Sensors tab), Proximity Sensor Test (specialized test). You can also call your phone and cover the top with your hand β€” if the sensor is working, the screen will go out.
Does the security glass affect the sensor?
Yes, if the glass is covering the sensor area (usually a circular hole next to the camera). Solutions: Use the glass with the cutout under the sensor. Check if the glass at the top has unstuck (this blocks the signal). Take the glass off and test the sensor without it. The film usually does not interfere, because they are thinner than the glass.
Can the virus affect the sensor?
No, viruses can't physically damage the sensor, but they can: Block it through system settings (rarely), call the MIUI lags that cause the sensor to be delayed, and if you suspect a virus, scan the Malwarebytes or Dr.Web phone and reset the settings.