The proximity sensor in Xiaomi Redmi 8 is a small but critical element that is responsible for automatically turning off the screen during phone calls. When you hold your smartphone to your ear, the sensor registers the obstacle and extinguishes the backlight, preventing accidental pressing and saving battery power. However, many users are faced with the fact that this feature is either disabled by default or does not work correctly after updating the firmware.
In this article, we will explore not only the standard way to turn on the sensor through settings, but also alternative methods for diagnosing its health. You will learn how to check if the sensor is working, what to do if the screen does not go out during calls, and how to circumvent the limitations of MIUI if the option is hidden in your version of the firmware.
If your Redmi 8 ignores the ear or turns off the screen too aggressively, this will help you regain control of the device. All methods are tested on current versions of MIUI (including MIUI 12.5 and MIUI 14) and do not require root rights.
What is a proximity sensor and why you need it in Redmi 8
The proximity sensor in Xiaomi Redmi 8 is an infrared sensor located at the top of the screen next to the front camera, and its main task is to determine the distance between the phone and an object (for example, your ear) and transmit this information to the system. MIUI automatically:
- π Turns off the screen during a call to prevent accidental tapping of the cheek or ear.
- π Saves battery power by reducing display power consumption at unnecessary moments.
- π§ Adapts screen behavior when using a headset or wireless headphones.
- π οΈ Runs additional functions in some applications (for example, automatically turning on hands-free communication in instant messengers).
Redmi 8 uses a sensor like STK3311 (or similar) that uses infrared radiation, emits invisible light and analyzes the reflected signal, and if an object is too close (usually 2-5 cm), the system interprets it as "the phone is held to the ear" and turns off the screen.
The lack of proper operation of the sensor leads to two main problems:
- The screen does not go out during calls β this is not only annoying, but also leads to accidental presses (for example, on the call completion key).
- The screen goes out too early or does not turn back on, which prevents you from using your smartphone in hands-free mode or with a headset.
β οΈ Attention: If the proximity sensor stopped working after the phone fell or moisture hit, the problem may be hardware, in which case the software methods will not help - you need a diagnosis in the service center.
How to check if the proximity sensor is working on Redmi 8
Before you set up the sensor, make sure it's working, and MIUI has a built-in sensor testing tool.
- Open the Phone app and dial the combination: ##6484## (or #4636## β select Equipment Testing).
- In the test menu, find the Sensor Test or Proximity Sensor.
- Hold your hand or any opaque object to the top of the screen (where the front camera is located).
- If the sensor is working, the screen will appear the inscription Near (Close) or the value will change from 5.0 cm to 0.0 cm.
Alternative verification method:
- π± Install the app CPU-Z Phone Doctor Plus from Google Play.
- π Run the sensor test and find the Proximity Sensor section.
- ποΈ Put your hand in the sensor, the value should change from 1 (no obstacle) to 0 (there is an obstacle).
If the sensor is not responding:
- π Restart your phone β sometimes sensors freeze after a long period of work.
- π οΈ Check if the sensor is covered with a film or cover (even a thin protective film can block the infrared signal).
- π² Update the firmware - in older versions MIUI There were sensor bugs.
Standard way to enable proximity sensor through MIUI settings
In most cases, the proximity sensor is activated automatically, but sometimes you have to manually turn it on. Here is a step-by-step instruction for the Xiaomi Redmi 8:
- Open Settings (the gear icon on the main screen).
- Go to System Applications β Calls (or Call Settings).
- Find Incoming Calls or Call Settings.
- Activate the Approach Sensor option (or Turn off the screen during a call).
- If you donβt have an option, check the section Additional settings β Special features β Physical buttons.
In some versions of MIUI, the path may be different, for example, in MIUI 12.5, the option is hidden here:
Settings β Applications β Application Management β Phone β Permissions β SensorsIf you donβt find an item on the menu, try an alternative method:
- π In the search bar in Settings, enter the request for the proximity sensor - the system will show all related parameters.
- π² Install Google Phone (the standard Google Phone app) from the Play Market β there is always the option to turn on the sensor.
Make sure there is no protective film in the sensor area on the phone |
Update MIUI to the latest version|
Restart the device before setting up |
Check the sensor through the engineering menu-->
β οΈ Note: On some custom firmware (such as LineageOS or Pixel Experience), the proximity sensor may not work properly due to the lack of drivers. MIUI.
Alternative ways to turn on the sensor if the option is hidden
If the standard method doesnβt work, try one of these methods:
Method 1: Engineering menu (for experienced users)
This method requires caution, as incorrect changes in the engineering menu can disrupt the operation of the phone.
- Open the Phone app and enter the combination: ##3646633##.
- Go to the Hardware Testing β Sensor section.
- Find the Proximity Sensor and check its condition.
- If the sensor is disabled, try changing the PS Calibration setting to 1.
Method 2: With the help of ADB-commands without root)
If you have a computer, you can turn on the sensor via ADB (Android Debug Bridge).
adb shell settings put system proximity_delay 0
adb shell settings put system proximity_on_call_enabled 1These teams:
- π§ Set the sensor response delay of 0 ms (instant screen shutdown).
- π Forced to turn on the sensor during calls.
Method 3: Installation of a third-party application
If system settings do not allow access to the sensor, install one of these applications:
- π Proximity Sensor Reset β Resets sensor settings to factory.
- π Sensor Box for Android β allows you to manually test and calibrate sensors.
- π MIUI Hidden Settings β reveals hidden options MIUI, including sensor settings.
What if the sensor is working βon the contraryβ?
Adjustment of the proximity sensor sensitivity
In some MIUI firmware, you can adjust the sensitivity of the sensor to make it work more accurately.
- Open the Settings. β The phone.
- Click on the MIUI version 7 times to unlock the developer mode.
- Back to Settings β Additionally. β For developers.
- Find the Debugging by USB and turn it on.
- Connect your phone to your PC and use it ADB-Sensitivity change command: adb shell settings put system proximity_sensor_calibration 1
Calibration values:
| Meaning | Sensitivity | The effect |
|---|---|---|
| 0 | Low. | The sensor only works with direct contact. |
| 1 | Medium | Standard behaviour (recommended) |
| 2 | Tall. | The screen will be turned off at the slightest approach (may interfere) |
| 3 | Maximum | It works even at a distance of 10 + cm |
If the sensor is too aggressive to turn off the screen (for example, when using a headset), set the value of 0. If, on the contrary, the screen does not go out during calls, try 2.
π‘
If the sensor stops working completely after the sensitivity change, reset the settings via the adb shell settings delete system command. proximity_sensor_calibration.
Solving common problems with the proximity sensor
Even after switching on, the sensor may not work properly. Consider typical scenarios and their solutions:
Problem 1: The screen doesnβt go out during calls
Possible causes and solutions:
- πΉ A protective film or case blocks the sensor β remove the protection or cut the sensor hole.
- πΉ Failure in the "Phone" application" β Clear the cache (Settings) β Annexes β Phone. β Warehouse β Clear the cache).
- πΉ Conflict with other applications (e.g. Green Phone or Truecaller) β Temporarily remove third-party call apps.
- πΉ Wrong firmware β refresh MIUI until the last stable version.
Problem 2: The screen goes off too quickly or doesn't turn back on
What to do:
- πΉ Reduce sensor sensitivity (see section above).
- πΉ Enable the option to raise for activation (Settings) β Display. β Raise for activation β this will help to βwake upβ the screen faster.
- πΉ Check your energy saving settings: some modes (e.g., Ultra-Economic) can affect sensor performance.
Problem 3: The sensor only works with the native phone app
If the sensor does not work in WhatsApp, Telegram or other messengers:
- πΉ Enable sensor permission for these applications (Settings) β Annexes β [Title of the annex] β Permits β Sensors).
- πΉ Update your messengers to the latest versions.
- πΉ Some firmware requires manual activation of the option to turn off the screen during calls for each application separately.
π‘
If the sensor stopped working after the MIUI update, try rolling back on the previous firmware version or wait for a patch from Xiaomi. Often, sensor bugs are fixed in the next updates.
Additional tips for optimizing the sensor
To ensure that the proximity sensor works stably, follow these recommendations:
- π΅ Avoid magnetic covers β they can affect the work of sensors.
- π Clean the sensor area regularly of dust and dirt (use a soft brush or compressed air).
- π± Do not install βoptimizationβ apps β they often conflict with system services. MIUI.
- π Keep an eye on the charge level β at a discharge below 10%, some sensors may turn off to save energy.
If you use a headset or wireless headphones frequently, set up the sensor exceptions:
- Put the headset on.
- Open Settings β Connected Devices β [Name of your headset].
- Activate the option Do not turn off the screen when connected (if available).
Important: On the Xiaomi Redmi 8, the proximity sensor is used not only for calls, but also for the Smart Cover function. If you use a magnet case, make sure that the sensor does not conflict with this feature.