Xiaomi’s proximity sensor sensitivity: how to increase or decrease

The proximity sensor in Xiaomi smartphones is responsible for automatically turning off the screen during a conversation, which prevents accidental pressing of the cheek or ear. However, many users face problems: the screen goes off too early, does not respond to the approach of the hand or, conversely, does not turn off at all, the reason most often lies in the wrong calibration or factory sensitivity settings, which do not take into account the individual characteristics of use.

In this article, we will look at all the ways available to change the sensitivity of the proximity sensor, from standard MIUI settings to hidden engineering menus and ADB commands. You will learn how to check the sensor's performance, calibrate it manually and even disable it if it interferes. And for owners of older models (Redmi Note 4/5, Mi A1), we will give individual solutions - their sensors often require a special approach.

⚠️ Important: Not all methods are safe. Wrong actions on the engineering menu or through the ADB If you're not sure, use only standard settings. MIUI.

1.How the proximity sensor works in Xiaomi and why it "glues"

The proximity sensor in Xiaomi smartphones is an infrared sensor that measures the distance to an object (usually the head of the user during a call) and consists of two elements: an emitter (sends an IR signal) and a receiver (reflects the signal), when you hold the phone to the ear, the sensor registers the obstacle and sends a command to turn off the screen.

Typical problems with the proximity sensor on Xiaomi:

  • πŸ”΄ The screen does not go out during the call (the sensor does not work)
  • 🟑 The screen goes out too early (false positives)
  • 🟒 The screen is turned on/off chaotically (unstable operation)
  • ⚫ The sensor does not work after the update MIUI phone crash

The main causes of the failure:

Sensor contamination (dust, protective film, high-sided cover).

- Software failure after firmware update.

Incorrect calibration at the factory or after resetting the settings.

Physical damage (crack on the glass above the sensor, ingress of moisture).

πŸ’‘ The first thing to do is wipe the sensor area (usually to the right of the speaker) with an alcohol wipe.

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

2. Standard sensitivity settings in MIUI

Most Xiaomi models (starting with MIUI 10) have built-in tools for adjusting the proximity sensor, but not all firmware versions provide direct access to sensitivity adjustment – often you can only turn on/off the feature or recalibrate.

πŸ“Œ How to open sensor settings:

  1. Go to Settings β†’ System and device β†’ Additional settings.
  2. Select Special Options β†’ Approximation Sensor (on some models, the path may be different).
  3. If there is no item, use the search by settings (the magnifying glass icon at the top).

You'll find this menu:

  • πŸ”„ Calibration reset – returns the sensor’s factory settings.
  • πŸ“± Sensor test – check the health (put your hand to the top of the screen).
  • βš™οΈ Sensitivity (if any) – a slider or choice of options (low/medium/high).

⚠️ Note: Some models (Redmi 9, Poco) X3) The sensitivity option is hidden, and you'll have to use an engineering menu or ADB (see the following sections).

β˜‘οΈ Preparation for sensor setup

Done: 0 / 4

3. Sensitivity change via engineering menu (code ##6484##)

The Engineering Menu is a hidden settings section where you can test and calibrate your smartphone hardware. Xiaomi's approximation sensor uses the code ##6484## (some models use ##4636##), which works on most devices, but requires caution.

πŸ“Œ Step-by-step instruction:

  1. Open the Phone app and enter the code ##6484##.
  2. Select Proximity Sensor (proximity sensor).
  3. In the menu that opens, you will see the current values: Value is the current distance (0-5 cm), Max is the maximum response distance, Min is the minimum distance (usually 0).

Calibration

Set Threshold

Max

3

5

Save the settings and restart the phone.

πŸ”§ Recommended values for popular models:

Xiaomi modelFactory value MaxRecommended rangeNotes
Redmi Note 10/1153–5If <3, false positives are possible.
Poco F3/F442–4Sensitive to protective glass
Mi 11/1253–6Supports automatic calibration
Redmi 9/9A32–4Often requires manual resetting.

⚠️ Note: Do not set Max above 6, which can cause the screen to permanently shut down even without the object approaching. If the sensor stops working after the changes, reset through the same menu.

What to do if the engineering menu is not opened?
If nothing happens after you enter the code, try the following options: 1. Use the alternative code: ##4636## β†’ β€œEquipment Testing” β†’ β€œSensors.” 2. Install the Engineering Mode MTK app (for MediaTek processors) or QPST (for Snapdragon). 3. Check if the operator has blocked access to the engineering menu (relevant for some regional firmware).

4.Configure via ADB (for power users)

If standard methods don't work, you can change the sensitivity of the proximity sensor through the ADB (Android Debug Bridge), which requires connecting the phone to a computer and basic command line knowledge. Suitable for all Xiaomi models, but risky - the wrong command can disrupt the system.

πŸ› οΈ What's the matter:

  • πŸ–₯️ A computer with installed Xiaomi drivers and ADB Tools.

πŸ“Œ Instructions:

  1. Connect your phone to your PC and open the command prompt (cmd) in the ADB folder.
  2. Check the connection command: adb devices (should display the serial number of your device).
  3. Enter the command to check the current values of the sensor: adb shell dumpsys sensorservice Find the proximity line in the output - there will be threshold parameters.
  4. To change the sensitivity, use: adb shell settings put system proximity_delay [where [value] is the time of the screen shutdown delay in milliseconds (e.g, 1000 for 1 seconds).
  5. For resetting: adb shell am broadcast -a android.intent.action.CALIBRATE_PROXIMITY

πŸ’‘ Useful tip: If you are not sure about the teams, use the utility ADB AppControl – It provides a graphical interface for sensor management.

πŸ’‘

Before working with ADB, back up your data through Settings β†’ System & Device β†’ Backup. This will help restore your phone if something goes wrong.

5. Sensor problems on older Xiaomi models (Redmi 4/5, Mi A1, etc.)

Owners of older Xiaomi smartphones (released before 2019) often find that the proximity sensor either doesn’t work at all or behaves unpredictably, due to outdated firmware and wear and tear of the hardware.

πŸ”§ Specific solutions for old models:

  • πŸ“² Redmi Note 4/5: Update the firmware to the latest version MIUI 12 (Even if official support is over, you can install custom via Xiaomi.eu.
  • πŸ€– Mi A1/A2 (Android One: These models use "clean" Android, so the sensor settings are hidden deeper.Try the Hardware Info app for testing and resetting.
  • πŸ”„ General tip: If the sensor is working randomly, try turning off the Settings function β†’ System system β†’ Gestures β†’ Lifting to wake up – it may conflict with sensor performance.

⚠️ Attention: On Redmi 3S/4X In other budget models, the proximity sensor often fails due to dust falling under the glass. If none of the methods worked, you may need to replace the sensor (cost - from the point of view of the sensor). 500 before 1500 ruble-in-center).

πŸ“Š Failure statistics by model (according to service centers):

Model% of devices with sensor problemsThe main reason
Redmi Note 412%Sensor wear, outdated firmware
Mi A18%Conflict with β€œclean” Android
Redmi 5 Plus15%Moisture exposure under the display

6. Alternative solutions: disabling the sensor or using third-party applications

If the sensitivity setting does not work, you can go in two ways:

  1. Turn off the sensor completely (the screen will not go out during the call).
  2. Use third-party applications to control the sensor.

πŸ”Ή How to disable the proximity sensor:

  1. Go to Settings β†’ Special Options β†’ Approximation Sensor.
  2. Turn off the option Automatically turn off the screen (the name may be different).
  3. Or use it. ADB-Adb shell settings put system screen_off_by_proximity 0

πŸ“± Top.-3 sensor-control:

  • πŸ› οΈ Proximity Sensor Reset – Reset and calibration of the sensor.
  • πŸ“Š Hardware Info – Checking and Testing.
  • πŸ”§ QPST β€” Advanced settings for Snapdragon processors.

⚠️ Warning: Disabling the proximity sensor will keep the screen on while the call is being made, increasing the risk of accidental tapping and rapid battery discharge.

πŸ’‘

If the sensor is completely out of order, and it is not possible to replace it, use headphones with a microphone - this will eliminate the need to bring the phone to the ear.

7. Frequent mistakes and how to avoid them

When trying to change the sensitivity of the sensor, users often make mistakes that only exacerbate the problem.

❌ Error 1: Using unofficial firmware.

Installing custom firmware (like LineageOS) can disrupt the sensor, as it often lacks the original Xiaomi drivers. Solution: go back to the official MIUI or find firmware that supports your model.

❌ Error 2: Resetting settings without backup.

Calibration of the sensor through the engineering menu or ADB sometimes resets other system settings.Solution: Save data through Settings β†’ Google β†’ Backup before the changes.

❌ Mistake 3: Misinterpreting the values in the engineering menu.

Many users confuse Value (current distance) with Max (trigger threshold). Solution: change only Max, and Value is only for testing.

❌ Mistake 4: Ignoring physical damage.

If the sensor doesn't work after the phone falls, no software methods will help. Solution: check the integrity of the glass over the sensor or contact the service.

πŸ” How to know if the sensor has broken down:

  • πŸ”΄ Test on engineering menu shows Value = 0 at any distance.
  • πŸ”΄ After resetting the calibration, nothing changes.
  • πŸ”΄ The sensor does not respond to direct commands. ADB.

FAQ: Answers to Frequent Questions

πŸ”Ή Why Xiaomi’s proximity sensor is working too early?
This is due to high factory sensitivity or sensor contamination. Try: Rub the sensor area with alcohol. Reduce the Max value in the engineering menu to 3–4. Calibrate the sensor through ADB (Adb shell am broadcast -a android.intent.action.CALIBRATE_PROXIMITY).
πŸ”Ή Can you increase the sensitivity of the sensor on Xiaomi Redmi Note 8 Pro?
Yes, but the methods depend on the firmware: On MIUI 12+: use the engineering menu (#6484##) and install Max = 5. On custom firmware: try Hardware Info for manual calibration. If the sensor does not respond to changes, check if it is closed with a protective glass.
πŸ”Ή What to do if you update after the update MIUI sensor stopped working?
Updates sometimes reset calibration. Try: Reset sensor settings in Settings β†’ Special Opportunities. Executing a command through ADB: adb shell settings delete system proximity_delay If it doesn’t help, go back to the previous version. MIUI via official website.
πŸ”Ή How to check if the proximity sensor works on Xiaomi?
There are a number of ways: πŸ“± Enter the code ##6484## β†’ Choose Proximity Sensor β†’ Put your hand up to the top of the screen, and the value of Value should change from 5 to 0. πŸ” Install the Hardware Info application β†’ sensors β†’ Proximity. πŸ“ž Call your phone and put your palm over the top, the screen should go out, and if the sensor doesn't respond to any of the methods, it's defective.
πŸ”Ή Can I replace the sensor by myself?
Technically yes, but it's complicated: πŸ› οΈ The sensor is soldered to the motherboard, so a soldering station is required. πŸ’° The cost of the new sensor is from 300 to 1000 rubles (depending on the model). ⚠️ Risk of damaging display plumes or other components: Recommendation: If you have no experience in electronics repair, contact Xiaomi Service Center.