How to turn off the proximity sensor on Xiaomi Redmi 9: safe methods and risks

The proximity sensor in Xiaomi Redmi 9 smartphones is responsible for automatically turning off the screen during a phone conversation when the device is brought to the ear. However, many users face situations when this sensor does not work correctly: the screen goes out too early, does not respond to gestures or, conversely, remains active during the call, which leads to accidental pressing. In some cases, the sensor can interfere with the use of the phone in non-standard scenarios, for example, when listening to music through a speaker with a device held to the ear.

In this article, we will discuss three official and informal ways to disable the proximity sensor on Redmi 9, including methods through standard settings, engineering menus and the use of a new approach sensor. ADB-It's important to understand that deactivating the sensor can affect the usability of the phone during calls, so we'll also analyze the possible consequences and alternative solutions. If you're willing to sacrifice automatic screen control for stability, read on.

Why turn off the proximity sensor on Xiaomi Redmi 9?

Before we get to the instructions, we need to figure out where to turn off the sensor, and here are the most common reasons:

  • ๐Ÿ“ž False positives โ€“ the screen goes out when you hold your phone in your hand, not while you call.
  • ๐Ÿ”„ Sensor freezes - after the call the screen does not turn on, a reboot is required.
  • ๐ŸŽต Discomfort when listening to music โ€“ if you put your phone to your ear to hear the speaker better and the screen shuts down.
  • ๐Ÿ› ๏ธ Damage to the sensor โ€“ after falling or repairing it does not work properly.
  • ๐Ÿ”ง Software testing โ€“ when debugging applications where it is required to simulate the absence of a sensor.

On the other hand, disabling the sensor has negative consequences:

  • โš ๏ธ Accidental taps during a call (the cheek may touch the screen).
  • โš ๏ธ Fast battery discharge as the screen stays on longer.
  • โš ๏ธ Discomfort in speakerphone communication โ€“ you will have to manually lock the screen.

If the sensor problems are temporary, try restarting your phone first or rubbing the sensor area (located next to the front camera) โ€“ sometimes dust or contamination interferes with its operation.

๐Ÿ“Š How often do you have problems with the proximity sensor?
Constantly.
Sometimes.
We used to be, not now.
Never.

Method 1: Disconnect via standard settings (MIUI 12โ€“14)

The easiest and safest method is to use the built-in MIUI options. Unfortunately, in the latest firmware versions, Xiaomi has removed direct access to the sensor settings, but the workaround still works.

Follow the instructions:

  1. Open the phone application (standard call).
  2. Press three points (โ‹ฎ) in the upper right corner and select Settings.
  3. Go to the Calls section โ†’ Additional settings.
  4. Find the option of the Approach Sensor (may be called Automatic Screen Shutdown).
  5. Move the slider to the off position.

If you donโ€™t have this option, try an alternative route:

  1. Go to Settings โ†’ System and device โ†’ Additional settings.
  2. Choose Special Opportunities โ†’ Physical buttons.
  3. Scroll down and find Turn off the screen when approaching.

Some firmware (e.g. MIUI 13 Global) may not have this item, so move on to the next method.

โ˜‘๏ธ Preparation for sensor shutdown

Done: 0 / 4

Method 2: Use the engineering menu (code ##6484##)

The engineering menu allows you to access hidden settings Xiaomi Redmi 9, including sensor control.This method works on most versions of MIUI, but requires caution โ€“ improper changes can disrupt the phone.

Instructions:

  1. Open the Phone app and enter the combination: ##6484##.
  2. You'll see the MTK Engineer Mode (or similar) menu. Select Hardware Testing.
  3. Go to the Sensor section. โ†’ Proximity Sensor.
  4. Click Disable (or uncheck Enable).
  5. Save the changes and restart the phone.

If ##6484## does not work, try the alternative codes:

  • ##4636## โ†’ Usage statistics โ†’ Sensor test.
  • #36446337## (for some versions of MIUI)
What to do if the engineering menu is not opened?
If nothing happens after you enter the code, your version of MIUI blocks access to the engineering menu, which leaves you with two options: use ADB (method 3) or install a third-party application like MTK Engineering Mode from Google Play. Note that such applications require super-user rights (root), which on Redmi 9 are difficult to obtain without unlocking the bootloader.

Attention! Changes to the engineering menu can lead to:

  • โš ๏ธ Failures in the operation of sensors (gyroscope, accelerometer).
  • โš ๏ธ Loss of warranty if the phone is in service.
  • โš ๏ธ Unstable operation of the phone (hangs, overheating).

โš ๏ธ Warning: If after disabling the sensor in the engineering menu, the phone begins to behave inadequately (for example, does not respond to touch), return the settings to the original state or reset to factory parameters through Settings. โ†’ The phone. โ†’ Resetting settings.

Method 3: Disconnect via ADB (for power users)

The Android Debug Bridge (ADB) method is suitable for those who are ready to work with the command line, and it is the most reliable method, since changes are made at the system level, but it requires preparation.

What you need:

  • ๐Ÿ’ป A computer with installed Xiaomi drivers and ADB Tools.
  • ๐Ÿ“ฑ Included Debugging by USB on the phone (Settings) โ†’ The phone. โ†’ Version. MIUI โ€” Press 7 times, then return to the Additional Settings โ†’ For developers).
  • ๐Ÿ”Œ Cable USB (preferably original).

Step-by-step:

  1. Connect Redmi 9 to your computer and confirm your debugging permission.
  2. Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with ADB.
  3. Enter the command to check the connection: Adb devices should appear the name of your device.
  4. Execute the command to disable the proximity sensor: adb shell settings put global proximity_sensor_disabled 1
  5. Reboot your phone: adb reboot

To get the sensor back to work, use the command:

adb shell settings put global proximity_sensor_disabled 0

Important: Some MIUI firmwares reset the ADB settings after the system update, and you'll have to repeat the procedure after each update.

๐Ÿ’ก

If ADB doesnโ€™t recognize the device, try reinstalling the drivers via the Mi Flash Tool or using Googleโ€™s universal USB Driver. Also check if File Transfer (MTP) mode is enabled when you connect.

What to do if the sensor does not turn off?

If none of the methods worked, the following reasons are possible:

Problem.Possible solution
Sensor is not in the settingsUpdate MIUI to the latest version or use ADB.
Engineering menu not openTry the #4636### code or install the MTK Engineering Mode app.
ADB issues an error device unauthorizedOn the phone, confirm the debugging permission (pop-up window).
After the sensor is turned off, it still works.Check if the cover or film is overlying the sensor, and there's also a possibility of hardware damage.
The phone stopped responding to the touchDo a reset or run your phone through Fastboot.

If the sensor is physically damaged (for example, after a fall or moisture), software methods will not help.

  1. Contact Xiaomi Service Center to Replace Sensor (Cost) ~1 000โ€“1 500 โ‚ฝ).
  2. Use a phone without a sensor, getting used to manually locking the screen during calls.

Alternative solutions: if you do not want to turn off the sensor

Before radically disabling the sensor, try alternative ways to solve the problem:

  • ๐Ÿ”„ Sensor calibration: Enter in ##6484###. Select Proximity Sensor โ†’ Calibration. Follow the instructions on the screen (usually hold and move your hand from the sensor several times).

Use of third-party applications

  • Proximity Sensor Reset โ€“ Resets the sensor settings.
  • Sensor Box for Android โ€“ Tests the operation of all sensors.

Cleaning the sensor

Resetting settings

Settings โ†’ About the phone โ†’ Resetting settings

If false positives only occur in certain applications (for example, during calls via WhatsApp or Telegram), check the settings of these programs โ€“ some messengers have their own screen control options during calls.

๐Ÿ’ก

Before turning off the sensor, be sure to test it through an engineering menu or the Sensor Test application. Perhaps the problem lies not in the sensor itself, but in the firmware or glass that covers it.

Risks and consequences of disconnecting the proximity sensor

Disabling the proximity sensor may seem like a harmless procedure, but it carries a few hidden risks:

โš ๏ธ Note: On some versions MIUI (especially Chinese) after the sensor is switched off ADB Or the engineering menu may stop working, because the light and proximity sensors sometimes use common drivers.

Main implications:

  • ๐Ÿ“ต Accidental taps during a call (cheek or ear can activate hands-free functions, complete a call, or even send messages).
  • ๐Ÿ”‹ Increased battery consumption โ€“ the screen stays on longer than it should.
  • ๐Ÿšซ No response to gestures โ€“ some functions (such as holding a phone to your ear to answer a call) will stop working.
  • ๐Ÿ”„ Problems after update MIUI โ€” settings may reset and the sensor is activated again.

If you decide to turn off the sensor, we recommend:

  • Use a magnetic lock case to lock the screen during calls.
  • Set the power button to lock the screen with one click (Settings โ†’ Lock screen โ†’ Lock power button).
  • Install an app like Gravity Screen that will automatically lock the screen when the phone is in a certain position (e.g. in your pocket).

FAQ: Frequent questions about the proximity sensor on the Redmi 9

Can I turn off the proximity sensor without root rights?
Yes, all three methods in this article (settings, engineering menu, ADB) work without superuser rights. Root is only required for some third-party applications, but it is not mandatory.
Why does the sensor turn on again after the ADB is turned off?
This is due to resetting settings after the update. MIUI. To avoid the problem, you can create a script to automatically execute. ADB-commands after reboot (you will need a PC or an application like Tasker).
How to check if the proximity sensor is working?
Type the code ##6484## in the call, select Proximity Sensor and hold your hand to the top of the screen. The value should change from 5.0 cm (far) to 0.0 cm (close). If the readings do not change, the sensor is defective.
Could disabling the sensor affect the Face Unlock?
No, the proximity sensor and the front camera (used to unlock the face) operate independently, but if the sensor is physically damaged, it can indirectly affect facial recognition due to the phone's improper position.
How to return the sensor to work after disconnection?
The way it works depends on the way it's turned off: If you've been off by settings, just turn the slider back on. If you've been on the engineering menu, go back there and activate the sensor. ADB โ€” Adb shell settings put global settings proximity_sensor_disabled 0.