The proximity sensor in the Xiaomi Mi 9S (the cepheus model) is responsible for turning off the screen during a phone conversation when you bring the device to your ear. If it fails, the screen can go out arbitrarily, not react to a closeup or, conversely, remain active during a call - which leads to accidental pressing. The problem is relevant for 15-20% of owners after 2-3 years of use, especially if the smartphone has been subjected to falls or moisture.
In this article, you will find 5 proven diagnostic methods, from software tests to physical inspection of the sensor, as well as instructions for calibration and repair, we will understand how to distinguish hardware failure from firmware failure, and what to do if the sensor stopped working after the MIUI update.
β οΈ Attention: On Xiaomi Mi 9S proximity sensor combined with illumination (module) STK3338). If the automatic brightness adjustment does not work, the problem is precisely in the hardware part - a replacement of the module or soldering of contacts is required.
Before you start checking, make sure that there is no protective film or glass on the screen that blocks the sensor's infrared signal, and also turn off the energy saving modes, which can affect the operation of the sensors.
Quick check through the engineering menu (##6484##)
The most reliable way to test the proximity sensor is to use Xiaomiβs hidden engineering menu, which is available on all Qualcomm Snapdragon processor devices, including the Mi 9S.
Open the phone app and enter the combination:
##6484##The Hardware Test menu will then automatically open. Select Proximity Sensor. When you approach the top of the screen (where the sensors are located), the value should change from 5.0 cm to 0.0 cm, and the background of the screen should turn green.
β οΈ Warning: If the values don't change or if the Sensor failed error is displayed, this indicates a hardware failure.Try to restart the phone and repeat the test - sometimes resetting the sensor cache via fastboot helps.
In addition, you can check in this menu:
- π¦ Light Sensor β Values should change when lighting changes.
- π Automatically turn off the screen during a call (Call Test item).
- π Calibration β If the values float, press Calibrate (root rights required).
Check for protective film |Reboot phone |Protest in safe mode |Reset sensor settings via ADB
-->
2. Application Verification (CPU-Z)
If the engineering menu is not available (for example, after the update) MIUI), Use third-party utilities. Best options for Xiaomi Mi 9S:
1. Sensor Test (from Innovative Apps)
Download the app from Google Play and select the "Proximity" tab. Real-time displays:
- π Current distance (in cm).
- π Sensor status (NEAR or FAR).
- β‘ Reaction time (should be) < 200 ms).
π If the values constantly show 0.0 cm or 5.0 cm unchanged, the sensor is defective.
2. CPU-Z
In the Sensors section, look for Proximity, which shows the raw sensor data, and the normal readings for the Mi 9S:
- πΉ Far from obstacles: 5.0 cm.
- πΉ At arm approach: 0.0 cm.
β οΈ Attention: Some applications (e.g, AIDA64) They may not be able to show the sensors on MIUI Because of the limitations of the system. ADB (section).
Engineering menu|Sensor Test Application|Teams. ADB|Physical examination-->
3. Test during the call (practical method)
The easiest way to check the sensor is to call another phone and watch the screen behavior.
- Call another number (or use a voice assistant).
- Put your phone to your ear, the screen should go out instantly.
- Take the phone away - the screen should turn on in 0.5-1 seconds.
- Repeat 3-5 times, changing the angle of inclination.
π Signs of malfunction:
- π The screen doesn't go out when you approach.
- π¦ The screen goes out with a delay (> 1 second) or arbitrarily.
- π΅ The screen does not turn on after the phone is withdrawn.
- π During the call, the screen spontaneously turns on / off.
If the problem only occurs during calls, check your settings:
- Open Settings β Applications β Phone β Permissions.
- Make sure the βChange System Settingsβ permission is enabled.
- Go to Settings β Screen β Autoturn and turn it off during the test.
What to do if the screen goes off too fast?
4. Check through ADB (for advanced users)
If standard methods fail, use Android Debug Bridge (ADB), which is suitable for system-level diagnostics and allows you to get raw data from the sensor.
π Preparation:
- Enable Developer Mode: Settings β About Phone β MIUI version (click 7 times).
- Activate "Debugging by" USBΒ» In Settings β Additionally. β For developers.
- Connect your phone to your PC and install ADB drivers (download from the XDA Developers website).
π» Test teams:
adb shell
su
cat /sys/class/sensors/proximity/proximity_rawIn normal condition, when approaching the hand to the sensor, the value should change from 5 to 0. If the output is empty or shows an error, the sensor is faulty.
π§ Additional teams:
| Team team. | Description |
|---|---|
| dumpsys sensorservice | Shows all active sensors and their status. |
| getevent -l | It displays sensor events in real time. |
| echo 1 > /sys/class/sensors/proximity/proximity_enable | Forced to turn on the sensor (root required). |
| cat /proc/version | Checks the kernel version (useful for compatibility diagnostics). |
π‘
If ADB does not recognize the device, try reinstalling the drivers in Device Manager (select Mi ADB Interface manually).
5. Physical check of the sensor (disassembly of the phone)
If software methods don't work, you'll have to look at the sensor visually, and on the Xiaomi Mi 9S, it's located at the top of the screen, next to the speaker and the front camera, and you'll need to take off the display module to access it, which is a complex procedure that requires experience and special tools.
π οΈ Essential tools:
- π§ Setting screwdrivers T3, T5.
- π§² Screen suction cup.
- π₯ Fryer (for softening glue).
- π Plastic mediators.
π What to check:
- Integrity of the plume - often it is rubbed or moves away from the connector.
- Sensor pollution β dust or moisture can block the infrared signal.
- Salting contacts - there should be no microcracks on the board (use a magnifying glass).
- Glass over the sensor β cracks or chips can distort the signal.
β οΈ Note: If you do not have experience in dismantling smartphones, it is better to contact the service center. 9S β From 1,500 to 3,000 rubles (depending on the region) self-repair can damage the plume of the display or motherboard.
π‘
On the Xiaomi Mi 9S, the proximity and illumination sensor is combined into one module (STK3338). If both sensors are not working, the entire module needs to be replaced, rather than a single element.
Calibration of the sensor (if it is not operating in a stable manner)
Sometimes the proximity sensor will fail after updating the MIUI or resetting the settings, in which case calibration will help.
1.Using the engineering menu
- Open ##6484##.
- Select Proximity Sensor.
- Press Calibrate (if the button is active).
- Follow the instructions on the screen (usually you need to bring your hand closer and away 3-5 times).
2. via ADB (root required)
adb shell
su
echo "1" > /sys/class/sensors/proximity/proximity_calibrate3. Reset sensor settings
- Go to Settings β System β Resetting settings.
- Select βReset App Settingsβ (does not delete data).
- After restarting, check the sensor again.
β οΈ Note: If the calibration does not help, and the sensor in the engineering menu shows incorrect values (for example, 2.5 cm instead of 0.0 cm), the problem is hardware - a replacement is required.
7. Frequent causes of sensor breakdown on Xiaomi Mi 9S
Analysis of service centers shows that 70% of the Mi 9S proximity sensor failures are due to the following factors:
- π§ Moisture intrusion - even a small amount of condensate under the glass can block the infrared signal. check the moisture indicator (red dot under the tray) SIM-map).
- π± Falls and impacts β the sensor is located next to the front camera, and when falling on the screen often suffers its plume.
- β‘ Unstable Firmware β After Updating to MIUI 12.5+ Some users are experiencing software failures of the sensor. MIUI 12.0.3.0.
- π Overheating β if the phone is frequently heated (such as when playing), the sensor may temporarily shut down. AIDA64.
- π οΈ Poor-quality repairs β after replacing the screen, the master sometimes forgets to connect the sensor plume or damage it.
π Breakdown statistics (according to service centers, 2023):
| Reason. | Proportion of cases | Cost of repair |
|---|---|---|
| Fall/impact | 45% | 1 500β3 000 β½ |
| Moisture/condensate | 25% | 2 000β4 000 β½ |
| Firmware failure | 15% | Free (flashing) |
| Wear of the plume | 10% | 1 000β2 500 β½ |
| Factory marriage | 5% | Guarantee. |