The proximity sensor in Xiaomi smartphones is a small but important element that is responsible for turning off the screen during a phone call. When you hold the device to your ear, the sensor goes off and the display goes off, preventing accidental pressing. However, sometimes this mechanism works with malfunctions: the screen does not turn off when you call, reacts with a delay or, conversely, it works too sharply, in such cases, users are looking for a way to turn off the proximity sensor, temporarily or permanently.
But here lies the catch: in the standard settings MIUI There's no option to shut down the sensor completely, and the manufacturer hides it to avoid the phone from working properly, but there are workarounds, from simple tricks with settings to using an engineering menu and using a computerized device. ADB-In this article, we will discuss all the current ways for Redmi models, POCO Xiaomi 2020-2026, and explain why the sensor may behave inadequately and when it is really justified to disable it.
โ ๏ธ Attention: Disabling the proximity sensor may cause random taps on the screen during a call (e.g., turning off the microphone or completing the call!
Before you go to the radical measures, check if the sensor problems are related to contamination or damage. Often, just wipe the top of the screen (where the sensor is located) with a dry wipe or reboot the phone. If this does not help, read on.
1.Why is the proximity sensor on Xiaomi not working properly?
Before you turn off the sensor, you need to understand the reasons why it's not working properly, and here are the most common scenarios and their solutions:
๐น The screen doesn't go out during the call. Cause: Sensor contamination (dust, greasy traces), damage to the protective glass or film, software failure. Wipe the sensor area (usually located to the right of the speaker), remove the protective film (if it closes the sensor), or reset the phone settings.
๐น Sensor fires too late or too early Cause: Sensor calibration incorrect, outdated firmware, shell conflict MIUI. Solution: Update the system to the latest version or calibrate through the engineering menu (instruction below).
๐น The screen goes out arbitrarily outside the bell Reason: Sensor damage, moisture ingress, error in work MIUI. Solution: Check your phone for physical damage or perform a sensor test (see Section 3).
If the problem is software-based, it can often be solved without turning off the sensor, for example, resetting your phone to factory settings (Settings โ Phone โ Reset) brings all sensors back to their original settings, but this is a radical measure: save important data before you use it.
Method 2: Disconnect the sensor through call settings (without root)
The easiest and safest method is to use the built-in MIUI options, which does not shut down the sensor completely, but allows you to monitor its behavior during calls, and is suitable for most Xiaomi, Redmi and POCO models based on MIUI 12-14.
๐ Instructions:
- Open the phone application (call).
- Press three points (โฎ) in the upper right corner and select "Settingsยป.
- Go to the โCall Settingsโ or โAdditional Settingsโ section (the name may differ).
- Find the option โAccess Sensorโ or โAutomatic Screen Shutdownโ and turn it off.
โ ๏ธ Note: On some models (e.g, POCO F3 or Redmi Note 11) this option may not be available, so move on to the next method.
If you have an option, but the sensor still works after you turn it off, try to turn off the Smart Response function in the same settings, sometimes it conflicts with the sensor.
โ๏ธ Preparation for sensor shutdown
Method 2: Use of the engineering menu (code ##6484##)
The Engineering Menu is a hidden section of MIUI where you can test and configure the hardware components of your smartphone, including the proximity sensor, which does not require root rights, but is temporary (until the phone restarts).
๐ How to Open an Engineering Menu:
- Open the phone app.
- Enter the code ##6484## (on some models, it may not work โ see the alternative below).
- Select the "Proximity Sensor" option.
- In the window that opens, you'll see the current readings of the sensor. To turn it off, click Disable or uncheck Enable.
๐น Alternative code for new models:
If #6484## doesn't work, try it.
#
#
"Equipment testing"
"Sensors"
โ ๏ธ Warning: Changes to the engineering menu are not saved after the phone is restarted.If you need to permanently disconnect, use the method with ADB (section).
๐ก How to check the operation of the sensor?
In the engineering menu, you can test the sensor in real time. Put your hand up to the top of the screen, and it has to change from 5 (far) to 0 (close), and if the readings don't change, the sensor is defective.
What to do if the engineering menu is not opened?
Method 3: Disabling the sensor through applications (without root)
If standard methods don't work, you can use third-party applications, which don't require root rights, but some features may be limited.
๐ Top.-3 approximation:
- ๐ง Sensor Disabler allows you to turn off sensors temporarily, suitable for most Xiaomi models. MIUI.
- ๐ ๏ธ Proximity Sensor Reset - resets the sensor settings to factory settings. Helps if the sensor "gluts" after the update.
- ๐ฑ MIUI Hidden Settings โ reveals hidden options MIUI, including sensor settings.
๐ Instructions for Sensor Disabler:
- Download and install the app from Google Play.
- Run it and give access to โSpecial Featuresโ (in your phone settings).
- In the sensor list, look for the Proximity Sensor and turn it off.
- Reboot the phone.
โ ๏ธ Note: Some applications may request permissions that appear suspicious (e.g. access to a website) SMS Install them only from verified sources!
5. Method 4: Disconnect the sensor via ADB (permanent solution)
If you want to permanently disable the proximity sensor, the most reliable way is to use ADB (Android Debug Bridge), which requires connecting the phone to your computer, but does not need root rights.
๐ What's the matter:
- ๐ป Computer with installed Xiaomi and ADB-tools drivers.
- ๐ฑ Included debugging by USB on the phone (Settings) โ The phone. โ Version. MIUI (press 7 times) โ Additional settings โ For developers โ Debugging by USB).
- ๐ USB-cable (preferably original).
๐ Step-by-step instruction:
- Connect the phone to your computer and allow debugging over USB.
- Open the command prompt (Win + R โ enter cmd) and go to the folder with ADB.
- Enter the command to check the connection: Adb devices should appear the name of your device.
- Execute the command to disable the proximity sensor: adb shell settings put system proximity_sensor_enabled 0
- Reboot the phone.
Important: To get the sensor back to work, use the same command, replacing 0 by 1.
๐ก If the team doesnโt work, try an alternative:
adb shell settings put global device_provisioned 1
adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS| Xiaomi model | Support ADB-team | Notes |
|---|---|---|
| Redmi Note 10/11 | โ Yes. | Requires MIUI 12.5+ |
| POCO X3/X4 | โ Yes. | Some firmware requires developer rights |
| Xiaomi 12/13 | โ ๏ธ Partially. | Teams can be blocked on new MIUI versions |
| Redmi 9/9A | โ Yes. | It works without restrictions. |
๐ก
If, after the execution, ADB-And the teams are still working, and check if it's covered by a protective glass or a cover, and sometimes even a thick film can interfere with the sensor's performance.
Method 5: Disable the sensor with root rights (for advanced)
If none of the previous methods worked, the radical solution is to disable the sensor through editing system files, which requires root rights and is only suitable for advanced users.
โ ๏ธ Attention: Wrong root actions can lead to a phone "breakdown!
๐ Instructions:
- Get root rights (for example, through Magisk).
- Install a file manager with root support (such as Root Explorer or Solid Explorer).
- Go to /system/usr/keylayout Find the file "Generic.kl" or "qwerty.kl" (name depends on the model).
- Open the file in the text editor and find the line: key 213 PROXIMITY Replace it with: #key 213 PROXIMITY (add # to the beginning to comment on the line).
- Save the file, set the rights to 644, and restart the phone.
๐น Alternative method (via build.prop):
Add a line to /system/build.prop file:
persist.sys.proximity.disable=1โ ๏ธ Attention: After update MIUI All changes to the system files will be reset. You'll have to repeat the procedure again.
๐ก
Turning the sensor off through root is the most reliable way, but it's also the riskiest way, and only use it if other methods haven't worked, and you understand the consequences.
7.What to do if the proximity sensor is physically broken?
If the sensor doesn't respond to commands, doesn't calibrate, doesn't shut down software, it may have failed, and then only a replacement will help.
๐น Signs of physical breakdown:
- ๐ต The sensor does not respond to any commands (including the engineering menu).
- ๐ง The phone fell into the water or was hit hard.
- ๐ In the engineering menu, the sensor readings are always "0" or "5" (do not change).
๐ How to check the sensor for hardware damage?
- Install the iPhone Doctor Plus or Sensor Test app from Google Play.
- Run the proximity sensor test.
- If the app shows an error or the sensor does not respond, it is faulty.
๐ฐ Cost of repair:
Replacing the proximity sensor in the service center costs 800-2000 rubles (depending on the model). If you are confident in your abilities, you can replace it yourself - the sensor costs about 300-600 rubles on AliExpress.
โ ๏ธ Note: On some Xiaomi models (e.g. Redmi Note 10 Pro), the proximity sensor is soldered into the motherboard, in which case it can only be replaced at the service center.