Why to turn off the proximity sensor and when it really needs to
The proximity sensor in Xiaomi 9 Pro is responsible for automatically turning off the screen during a phone call when you hold the device to your ear. In most cases, this feature works correctly, but sometimes users experience false positives: the screen goes out when you simply hold the smartphone in your hand, does not respond to touches after a call or, conversely, does not turn off during a conversation, which leads to accidental pressing.
Disabling the sensor may be necessary in several scenarios:
- ๐ง Failure of the sensor - after falling or getting moisture, it begins to work incorrectly.
- ๐ฎ Game mode โ if you use your smartphone for streaming or voice chat games, permanently turning off the screen prevents you from playing.
- ๐ฑ Castom firmware โ after installing unofficial software, the sensor may conflict with the system.
- ๐ Experimenting with settings โ some users prefer to manually control the screen.
However, before deactivation, it is worth considering an important nuance: without a proximity sensor, the screen will not lock during calls, which increases the risk of accidental pressing. If the problem lies in the incorrect operation of the sensor, it is better to first try its calibration or resetting settings.
Method 1: Disconnect via standard settings (without root)
The easiest and safest method is to use built-in MIUI options. Unfortunately, in the latest firmware versions, the direct option to disable the proximity sensor may be hidden, but it can be activated through Settings โ Special features.
Instructions:
- Open Settings and go to Special Opportunities.
- Choose Physical Opportunities โ Gesture management.
- Activate the option to Disable the proximity sensor (if not, see method 2).
- Confirm the action and restart the device.
If the item is not on the menu, try an alternative path:
- ๐ Go to Settings. โ System system โ Additionally.
- ๐ง Find the Sensors and disable the Approach Sensor.
- ๐ Reboot Xiaomi 9 Pro to Apply Changes.
โ๏ธ Preparation before sensor shutdown
โ ๏ธ Note: In some regional versions MIUI (For example, in China, the option to disable the sensor can be blocked, in which case it will be necessary to unlock the bootloader or use the sensor. ADB.
Method 2: Engineering menu (for experienced users)
If the standard settings fail, you can use the engineering menu (##6484## or #4636###) which requires caution, as incorrect changes can cause sensors to malfunction.
Step-by-step:
- Open the Phone app and enter the combination ##6484##.
- In the menu that opens, select Proximity Sensor.
- Click Disable or uncheck Enable.
- Go back to the main menu and select Save & Exit.
If the combination doesnโt work, try the alternative code:
##4636## โ Testing โ Sensors โ Disable the proximity sensor| Combination | Description | Works for MIUI? |
|---|---|---|
| ##6484## | Direct access to proximity sensor settings | Yes (most versions) |
| ##4636## | General engineering menu (sensor testing) | Yeah, but the path may be different. |
| ##36446337## | Menu of hardware diagnostics | No (not for all models) |
โ ๏ธ Warning: After the sensor is turned off through the engineering menu, some functions (such as automatic brightness control) may not work properly. To get it back, repeat the steps and turn the sensor on again.
What to do if the engineering menu is not opened?
Method 3: Disconnect via ADB (for advanced)
If the first two methods fail, you can use Android Debug Bridge (ADB), which requires connecting your smartphone to your computer and basic command line knowledge.
What you need:
- ๐ฅ๏ธ A computer with installed Xiaomi drivers and ADB.
- ๐ฑ Included debugging by USB (Settings โ The phone. โ Version. MIUI โ 7 times to press to unlock the developer mode, then additionally โ For developers โ Debugging by USB).
- ๐ USB-Type-C cable (original or quality).
Instructions:
- Connect Xiaomi 9 Pro to your computer and confirm the debugging permission.
- Open the command line (cmd) and enter:
adb shell
settings put global proximity_sensor_enabled 0- Reset the device.
To get the sensor back to work, do:
adb shell
settings put global proximity_sensor_enabled 1๐ก
If after the sensor is turned off, the screen stops responding to touches during calls, try using headphones with a microphone or turn on speakerphone, which will temporarily resolve the problem before the sensor is reactivated.
Possible problems after disconnecting the sensor and how to solve them
Disabling the proximity sensor can cause several side effects, and here are the most common ones and how to eliminate them:
| Problem. | Reason. | Decision |
|---|---|---|
| The screen doesn't go off during calls. | There is no automatic locking. | Use the power button to manually shut down |
| Accidental taps during a conversation | The screen remains active. | Turn on the "In your pocket" mode or use a cover |
| Automatic brightness control does not work | Conflict with the light sensor | Calibrate the light sensor manually |
| The smartphone overheats during calls | Constant operation of the screen at maximum brightness | Reduce brightness manually before calling |
If you notice that other sensors (such as a gyroscope or accelerometer) are deteriorating after the sensor is turned off, you may be dealing with a conflict at the core level, which can help:
- ๐ Resetting settings to factory (with data preservation).
- ๐ฅ Reflashing the device to the official version MIUI.
- ๐ ๏ธ Contacting a service center (if the sensor is physically damaged).
๐ก
Disabling the proximity sensor does not affect the basic functions of the smartphone, but can create discomfort when calling.Always check alternative solutions (calibration, reset) before fully deactivating.
Alternative solutions: if you do not want to turn off the sensor
Before fully deactivating the proximity sensor, less radical methods are worth trying, and in many cases, they help avoid the need to shut down.
Calibration of the sensor
The sensor's malfunction is often due to its calibration, to return it to normal.
- Install the Sensor Calibration app from Google Play.
- Follow the instructions for calibrating the proximity sensor.
- Reset the device.
2. Use of third-party applications
Some tools allow you to programmatically control the operation of the sensor without completely turning it off.
- ๐ฑ Proximity Sensor Reset โ Resets sensor settings.
- ๐ง Sensor Disabler โ temporarily disables the sensor without root.
- ๐ ๏ธ MacroDroid Automates Screen Locking During Calls.
3. Firmware update
If the problem has occurred after the MIUI update, check for new patches. Often, sensor bugs are fixed in the following versions of the software.
- Go to Settings โ About the phone โ System update.
- Click Update Checker.
- If a new version is available, install it.