The proximity sensor in Xiaomi smartphones is responsible for turning off the screen during phone calls to prevent accidental clicks with the cheek or ear. However, on the MIUI 12 firmware version, this sensor often fails: the screen goes out too early, does not turn on after a call or reacts to foreign objects. If you encounter similar problems or just want to turn off the function, this article will help you understand all the nuances.
It is important to understand that disabling the proximity sensor can lead to inconvenience when calling (random taps, activation of functions during a conversation). But in some cases -- like when you're using a headset, or if the sensor is physically damaged -- that's the only way to get your phone back to normal. MIUI 12, with the help of ADB-commands and through the engineering menu.
Why does the proximity sensor interfere?
On MIUI 12, the proximity sensor is often a source of irritation, and these are the most common problems.
- π΅ The screen goes out during a conversation and does not turn back on, even if you remove the phone from your ear.
- π The sensor works when the hand is approached, for example, when you hold your smartphone in a horizontal position.
- π± After updating to MIUI 12 sensor started to work incorrectly (hangs, false positives).
- π When using a charger or headset, the screen spontaneously turns off.
Most often, these failures are associated with software errors of the firmware, less often with physical damage to the sensor (for example, after a fall or moisture). If the problem appeared after the update, first try resetting the sensors through Settings β About the phone β Resetting. If this did not help, read on.
Method 1: Disconnect via MIUI 12 settings (without root)
The easiest way is to use the built-in options. Unfortunately, MIUI 12 doesn't have a direct "Disable the proximity sensor" button, but you can get around this limitation through customization.
- Open the Settings. β Special facilities.
- Scroll down and select System Settings β Delete animation (this will open hidden options).
- Return to the main menu Special Opportunities and find the Approach Sensor (may be called Automatic Screen Shutdown).
- Turn off the slider next to the option.
If there is no such item, try an alternative path:
- Go to Settings. β The phone.
- Click 7 times on the MIUI version to activate the developer mode.
- Back to Settings β Additionally. β For developers.
- Find the option to Disable the proximity sensor (on some models it is hidden β see the following method).
βοΈ Preparation for sensor shutdown
Note: On some models (Redmi Note 9 Pro, Poco X3), this method may not work due to manufacturer limitations, in which case move to the ADB method.
Method 2: Disconnect via ADB (for power users)
If the standard settings do not allow you to turn off the sensor, you can use Android Debug Bridge (ADB), which requires connecting the phone to the computer, but does not need root rights.
You'll need:
- π» Computer with installed Xiaomi and ADB-tools drivers.
- π± Developer's Included Mode and Debugging USB phone-on.
- π USB-cable (preferably original).
Step-by-step:
- Connect the phone to the PC and allow debugging over USB (a request will appear on the smartphone screen).
- Open the command line (Win + R β cmd) and type:
adb devicesIf the device is determined (the serial number will appear), enter a command to disable the sensor:
adb shell settings put global proximity_sensor_disabled 1To return the original settings, use:
adb shell settings put global proximity_sensor_disabled 0π‘
If the command doesnβt work, try to enter the adb shell first, and then sets put global. proximity_sensor_disabled 1.
Important: Some models (such as the Mi 10T or Redmi K40) reset after restarting, in which case you will have to repeat the command or use the engineering menu.
Method 3: Engineering menu (for advanced users)
The engineering menu (#4636##) allows you to directly control the sensors, but it requires caution β wrong actions can disrupt the phone.
Instructions:
- Open the Phone app and enter the combination: ##4636##.
- In the menu, select Testing β Single Item Test.
- Scroll down to the Proximity Sensor and click on it.
- In the new window, you will see the current state of the sensor. To turn it off, press Disable (if available).
If there is no Disable button, try an alternative path:
- In the engineering menu, go to Hardware Testing β Sensors.
- Find Proximity Sensor and uncheck the Enable box.
What to do if the engineering menu is not opened?
β οΈ Warning: Changes to the engineering menu can cause the phone to run in an unstable way. Do not change other settings unless you are sure of their purpose!
Comparison of methods: which one to choose?
Each of the methods has its pros and cons. Below the table will help you determine the choice:
| Method | Difficulty | You need a PC? | Root rights | Post-reset reset | Suitable for all models |
|---|---|---|---|---|---|
| Through MIUI settings | β (simple) | β No. | β No. | β No. | β οΈ Not always. |
| ADB-team | ββ (middle-of-the-road) | β Yes. | β No. | β οΈ Sometimes. | β Yes. |
| Engineering menu | βββ (difficult) | β No. | β No. | β No. | β οΈ Depends on the model. |
For most users, the best solution is ADB, which is universal and does not require root rights. If you do not want to connect your phone to your computer, try the standard settings first, and if they do not work, try the engineering menu.
What if the sensor doesnβt turn off anyway?
If none of the methods worked, the following reasons are possible:
- π§ Firmware with limitations. Some versions MIUI 12 (e.g., for the Chinese region) block changes in system parameters. Solution: install global or European firmware.
- π οΈ Hardware malfunction: If the sensor is physically damaged, it can only be replaced, and you can check this at the service center or using a test (in the engineering menu).
- π Security policy: Some models (Mi 11 Ultra, Black Shark) have a lock on the sensor at the core level.
If the problem is firmware, try upgrading to the latest version of MIUI or rolling back to the previous one (if the crashes started after the update).
- Download the necessary firmware version from the official Xiaomi website.
- Go to Settings β About the phone β System update.
- Click on the three dots in the upper right corner and select Select the firmware file.
β οΈ Attention: Firmware rollback may cause data loss.Pre-backup through Settings β Additionally. β Backup and reset.
FAQ: Frequent questions about the proximity sensor on Xiaomi
Can I turn off the proximity sensor without a computer?
Will automatic brightness adjustment work after the sensor is turned off?
How to check if the proximity sensor is working?
Can the sensor be turned off only during calls?
Will the sensor return to its original state after resetting the settings?
π‘
If the proximity sensor is turned off, the screen will not go out automatically during the call. This can lead to accidental taps, so use this method only when you really need it!