Why do sensor calibration is needed and when to do it
The sensors in Xiaomi smartphones are the real sensors of the device, responsible for orientation in space, reaction to movement and even safety. Over time, their readings can be confused due to mechanical impacts (falls, vibrations), software failures or after updating the firmware. For example, the accelerometer begins to misidentify the tilt of the screen, and the compass shows the wrong direction in the maps. Regular calibration helps to restore the accuracy of all sensors.
When exactly does the procedure need to be done? First, if you notice that the screen autorotates with a delay or runs over again. Second, when applications like Google Maps or Yandex Navigator misidentify your location or direction of travel. Third, after a battery change or motherboard repair, 80 percent of the time, sensors require reconfiguration. Finally, calibration should be done after every major MIUI or HyperOS update, as new versions of the software can reset the sensors factory.
Interesting fact: in Xiaomi devices with AMOLED- screens (for example, Xiaomi 13 Ultra or Redmi K60 Pro), the light sensor is calibrated automatically when first turned on, but after a year of use, its readings can โfloatโ to 15-20%. This leads to the fact that the brightness of the screen spontaneously changes even with stable lighting.
Preparing the device for calibration: 5 mandatory steps
Before the procedure begins, several critical steps must be taken to avoid errors and get accurate results. Neglecting preparation can lead to sensors being calibrated incorrectly, and in the worst case, the device will require resetting to factory settings.
- ๐ฑ Fully charge the battery (minimum 80%). Calibration of some sensors (e.g., a barometer) requires a long processor to run, and discharging during the process may interrupt it.
- ๐ก๏ธ Let the device cool. If the smartphone is overheated (temperature above 40ยฐC), the sensors may give out incorrect data. Use the CPU Monitor app to check.
- ๐ถ Turn off mobile internet and Wi-Fi. Some sensors (such as a magnetic compass) are sensitive to electromagnetic interference from communication modules.
- ๐ Reboot the device. This clears the sensor cache and resets temporary errors that may have accumulated in the background.
- ๐ ๏ธ Make sure there are no magnet covers. Even a small magnet in a case can knock down compass readings by 20-30 degrees.
โ ๏ธ Warning: If your device has been repaired with a replacement motherboard or sensors, calibration through the standard MIUI menu may not work, in which case you will need to use the engineering menu (#4636##) or the Mi Flash Tool software to completely reset the sensor configuration.
Calibration of the accelerometer and gyroscope: instructions for MIUI and HyperOS
The accelerometer and the gyroscope are the "duet" of sensors that are responsible for determining the position of the smartphone in space, and their malfunctioning manifests itself in the form of:
- Delays or lack of response to the screen rotation;
- Swimming images in games with gyroscope support (for example, PUBG Mobile or Call of Duty);
- Incorrect operation of AR (augmented reality) functions in applications.
For calibration, follow the following steps:
- Open the Settings โ About Phone โ Click 5 times on the MIUI Version (or HyperOS Version) to activate the Developer Mode.
- Go back to the basic settings and go to the new Developer section.
- Find the item Calibration sensors (or Sensor Calibration in English firmware).
- Select the Accelerometer and follow the instructions on the screen: place the device on a flat surface (screen up), then flip it on all 6 sides (like a cube).
- Repeat the process for the gyroscope, rotating the smartphone on all axes (up-down, left-right, in a circle).
If standard calibration doesnโt help, use the engineering menu:
- Enter the code ##4636## in the Phone app.
- Go to the Testing โ Sensor Test tab.
- Find the Accelerometer and Gyroscope graphs, and if the lines jump randomly when the device is stationary, the sensors require hardware diagnostics.
Put your smartphone on a perfectly flat surface (glass or ceramics)
Make sure there are no vibrating objects nearby (e.g. a working refrigerator)
Disable all applications that use sensors (games, navigators)
Battery charge of at least 50%
-->
Setting up the proximity and light sensor: solving problems with the screen
The proximity sensor is responsible for turning off the screen during a call when you hold the smartphone to your ear, and its malfunctioning manifests itself as:
- A screen that does not go out during a conversation (which leads to occasional tapping);
- Disable the display spontaneously when watching video or reading;
- Smart Stay is not working properly (the screen does not stay on when you look at it).
For calibration of the proximity sensor:
- Go to Settings โ Screen โ Automatically turn off the screen (or Sleep).
- Select Calibration of the proximity sensor (in some firmware, the item is hidden - use the search by settings).
- Follow the instructions: Close the top of the screen with your hand (where the sensor is located) and wait for the signal.
The light sensor is automatically calibrated, but if the autobrightness is not working correctly:
- Turn off autobrightness in the screen settings.
- Manually set a comfortable level of brightness.
- Turn on autobrightness back and restart the device.
โ ๏ธ Warning: On Xiaomi devices with front-facing camera cutouts (such as POCO F5 or Redmi Note 12), the proximity sensor is often located to the right of the cutout, rather than the center. Close this area when calibrating!
| Problem. | Possible cause | Decision |
|---|---|---|
| The screen does not go out during the call. | Pollution of the proximity sensor or its displacement | Clean the sensor area with alcohol, recalibrate |
| Autobrightness too dark/bright | Failure of calibration of the light sensor | Reset the screen settings to factory |
| The screen is spontaneously turned off | False alarms of the proximity sensor | Turn off the Smart Stay feature in the screen settings |
| The car turn doesn't work. | Failure of the accelerometer or blocking the turn in the settings | Check Autoturn Locking in the Notification Curtain |
Calibration of a compass (magnetic sensor) for accurate navigation
A magnetic sensor (compass) is used in navigation applications to determine the direction of movement. If the compass arrow in Google Maps or Yandex.Maps rotates randomly or shows the wrong direction, calibration is required, especially for Xiaomi devices with a metal body (for example, Mi 11 or Black Shark), where magnetic interference is more common.
Calibration instructions:
- Open the Compass app (if you donโt have one, download it from Google Play, like Compass Galaxy).
- Follow the on-screen hints: You usually need to rotate the device in the air, describing the infinity sign (โ).
- If the compass needle continues to twitch, go to Settings โ Applications โ Application Management โ Compass and clear the cache.
For advanced users:
- Use the GPS Status & Toolbox app for detailed diagnosis.
- In the engineering menu (##4636##) check the readings of the Magnetic Field Sensor. Normal values: X: -50..50, Y: -50..50, Z: -100..0 (ฮผT).
What if calibration of the compass does not help?
Problems after calibration: Diagnostics and solutions
Sometimes, after calibration, the sensors get worse, and this can happen for a number of reasons:
- Incomplete calibration: For example, when you calibrate the accelerometer, you missed one side of the cube, so the solution is to repeat the process by following the instructions strictly.
- Application conflict: Some programs (like Tasker or MacroDroid) can block access to sensors. Solution: temporarily disable them.
- Hardware damage: If you fall or get moisture, the sensors can fail, and the solution is diagnostics at the service center.
To check the performance of sensors, use:
- ๐ Sensor Test (an application for testing all sensors)
- ๐งญ GPSTest (check GPS and compass)
- ๐ฎ Sensor Box for Android (detailed analysis of the gyroscope and accelerometer).
โ ๏ธ Warning: If after calibration the light sensor starts to work backwards (in bright light the screen dims, and vice versa), this is a sign of a hardware defect. In 90% of cases, only replacing the sensor helps, since its calibration data is stored in a protected area of memory (EEPROM), inaccessible to user reset.
๐ก
If calibration doesnโt work, try resetting sensor-only settings without affecting personal data. Select Sensor Reset (not available on all models) from the engineering menu (#4636###).
Specificity of calibration on different Xiaomi models
The calibration process may vary depending on the device model and firmware version, and here are the key features for popular lines:
| Model/Lineak | Characteristics of calibration | Frequent problems |
|---|---|---|
| Redmi Note 10/11/12 | Approximation sensor calibrated via Settings โ Screen โ Autobrightness | Frequent false alarms of the proximity sensor due to the proximity to the speaker |
| POCO F3/F4/F5 | Gyroscope requires additional calibration in Game Turbo for gaming | Drift of the gyroscope in games (e.g., in Genshin Impact) |
| Xiaomi 12/13 Series | Automatic Compass Calibration on the First Start of Google Maps | Interferences from wireless charging to the compass sensor |
| Black Shark 4/5 | Separate calibration menu in Shark Space for gamer sensors | Overheating affects the accuracy of the accelerometer |
On HyperOS devices (such as Xiaomi 14 or Redmi K70), the calibration process is simplified, but some features are moved to the Lab menu (available via Settings โ About Phone โ Additional).
๐ก
On infrared-port devices (such as the Redmi Note 9 Pro), the proximity sensor can conflict with the IR transmitter, so the solution is to calibrate both sensors sequentially by turning off the IR port in the settings.