Calibration of the gyroscope on Xiaomi: fixing failures and improving accuracy

The gyroscope in Xiaomi smartphones is responsible for determining the spatial position of the device, from the turns of the screen to the work of augmented reality in games and applications. However, over time, this sensor can begin to โ€œlieโ€: the screen spontaneously rotates, games with the help of a computer. AR-It's floating, and functions like Gestures or Unlock Raises don't work properly, and most of the time, it's just calibration, but few people know how to do it correctly.

In this article, weโ€™ll take a look at all the ways Xiaomi calibrates a gyroscope, from standard MIUI tools to hidden engineering menus and third-party apps. Youโ€™ll learn why the sensor is going crazy, how to check its performance, and what to do if the calibration doesnโ€™t work. Instructions are right for most models, from the budget Redmi Note to the flagship Xiaomi 13/14.

Signs of a gyroscope malfunction: when calibration is needed

The gyro rarely fails completely, often with inaccurate data, and here are the key symptoms that signal calibration:

  • ๐Ÿ“ฑ The screen rotates arbitrarily even when the phone is fixed (for example, lying on the table).
  • ๐ŸŽฎ In games with AR (for example, Pokรฉmon GO Harry Potter: Wizards Unite: objects float or turn with a delay.
  • ๐Ÿ”„ The unlock function is unstable โ€“ sometimes it doesnโ€™t turn on the screen, sometimes it reacts to false movements.
  • ๐Ÿ“ฒ In apps like Google Street View or Compass, the image twitches or turns in jerks.
  • ๐Ÿšซ Gestures (e.g., double tapping to wake up) work multiple times.

If you see at least 2-3 signs from the list, most likely, the gyroscope requires calibration, especially after a phone drop, MIUI update or reset.

๐Ÿ“Š Have you ever encountered a gyroscope incorrect operation on Xiaomi?
Yeah, the screen rotates itself.
Yeah, AR games are a problem.
Yeah, no unlock lifting.
No, it's working fine.

Calibration Preparation: What to Do in Advance

Before you start calibrating, follow a few simple steps to avoid errors:

  1. Check the physical condition of the phone. If the smartphone fell or was hit, it may be that the gyroscope is mechanically damaged, in which case calibration will not help.
  2. Update MIUI. Some firmware versions have had sensor bugs. Go to Settings โ†’ About Phone โ†’ System Update.
  3. Turn off the automatic rotation of the screen. This will help you understand whether calibration solves the problem, you can do this through the Notification Panel or in Settings โ†’ Display โ†’ Autopivot.
  4. Make sure there is no magnetic interference.The gyroscope can crash near magnets, speakers or metal objects.

๐Ÿ’ก

If the gyroscope starts to gag after placing the magnet case (for example, to attach to the holder in the car), try to remove the case and restart the phone, often enough to restore the sensor.

It is also recommended to restart the device before calibration โ€“ this will reset temporary errors in the operation of the sensors.

Method 1: Calibration through the engineering menu (for advanced users)

The most reliable method is to use the hidden engineering menu (Engineer Mode), which is on all Xiaomi smartphones, which allows you to manually reset the data of the gyroscope and accelerometer.

To get on the menu:

  1. Open the Phone app.
  2. Enter the combination: ##6484## (some models may run ##4636##).
  3. Select Sensor Test (or Sensors).
  4. Find the Gyroscope Sensor (gyroscope) in the list and tap it.
  5. Press Calibration and follow the instructions on the screen โ€“ usually put the phone on a flat surface and wait 10-15 seconds.

After calibration, restart your phone.If the engineering menu doesn't open, it's possible your Xiaomi model requires a different code or the menu is blocked by the manufacturer.

What to do if the engineering menu is not opened?
On some models (e.g. Redmi Note 10 Pro or POCO X3), the standard codes may not work. In this case, try: - Install the MTK Engineering Mode app (for MediaTek processors) or Qualcomm Engineer Mode (for Snapdragon). - Use the code ##36446337## for devices on Qualcomm chips. - If nothing helps, move on to other calibration methods.

Method 2: Calibration through the Sensor app (without root)

If the engineering menu is not available, use the free Sensor Test app (or similar, for example, the Physics Toolbox Sensor Suite), which allows you not only to test the sensors, but also to reset their readings.

Instructions:

  1. Download Sensor Test from Google Play.
  2. Open the app and select the Gyroscope tab.
  3. Place your phone on a perfectly flat surface (like a table).
  4. Click on the calibration icon (usually a circular arrow or a Calibrate button).
  5. Wait 10-20 seconds for the app to collect data.
  6. Reboot the phone.

The app will show the current values of the gyroscope along the X, Y and Z axes. If after calibration they are close to zero (for example, 0.1-0.3), the sensor works correctly. If the values "float" in the range of ยฑ1.0 and above, it is possible that the gyroscope is damaged.

Install the application from the official store

Close all background programs

Put the phone on a flat surface (without tilting)

Turn off the cover (if it has a magnet)

Reboot the phone after calibration-->

Method 3: Reset sensor settings via MIUI (no applications)

MIUI has a hidden sensor reset feature that helps in 70% of cases.

  1. Go to Settings. โ†’ The phone.
  2. Tap 5-7 times on the MIUI version until you become a developer!
  3. Return to the main Settings menu and open Additional โ†’ for developers.
  4. Find Sensor Reset (or Sensor Reset) and click on it.
  5. Confirm the action and restart the phone.

This method resets all sensors (gyroscope, accelerometer, compass), so after the reboot, some functions may need to be re-tuned, such as Autoturn or Gestures.

๐Ÿ’ก

Resetting sensors through the developer menu is the safest way, as it does not require third-party applications and does not affect the warranty.

Method 4: Calibration through ADB (for power users)

If standard methods don't work, you can try resetting the gyroscope through the ADB (Android Debug Bridge), which requires connecting the phone to a computer and basic command line knowledge.

Instructions:

  1. Enable USB Debugging in Settings โ†’ For Developers.
  2. Connect your phone to your PC and install ADB drivers (you can download from Android Studio).
  3. Open the command line (cmd) and enter:
adb shell


su




echo 1 > /sys/class/sensors/gyro_sensor/calibration

If the command doesnโ€™t work, try an alternative:

adb shell am start -n com.android.settings/.DevelopmentSettings

Once you have completed the commands, restart the phone.This method doesnโ€™t work on all Xiaomi models, as the path to the sensor may be different.

โš ๏ธ Attention: Use ADB The wrong commands can cause the system to fail. If you're not sure what you're doing, skip this method.

Table: Compatibility of calibration methods with Xiaomi models

Xiaomi modelEngineering menuSensor TestReset to MIUIADB
Redmi Note 10/11/12โœ… (code ##6484##)โœ…โœ…โš ๏ธ (root)
POCO X3/X4/X5โœ… (code ##4636##)โœ…โœ…โŒ (unsupported)
Xiaomi 12/13/14โœ… (only through the application MTK/QCOM Engineer)โœ…โœ…โš ๏ธ (limited support)
Redmi 9/9A/9CโŒ (menu blocked)โœ…โœ…โŒ
Mi 11 Lite/11Tโœ… (code ##6484##)โœ…โœ…โš ๏ธ (partially)

If your model is not in the table, try universal methods (Sensor Test or reset in MIUI). New flagships (Xiaomi 14 Ultra, Mix Fold 3) may need to update the firmware to the latest version.

What if calibration doesnโ€™t help?

If after all attempts the gyroscope continues to work incorrectly, the reasons may be more serious:

  • ๐Ÿ”ง Mechanical damage. A gyroscope is a fragile sensor, and even a small impact can make it go downhill.
  • ๐Ÿ”„ Software failure MIUI. Try resetting your phone to factory settings (Settings) โ†’ Reset settings. Pre-reverse the data!
  • ๐Ÿ“ฑ Some models (like the Redmi Note 8 Pro) had sensor bugs in certain versions. MIUI. Check the forums (for example, 4PDA) update-in.
  • ๐Ÿงฒ If there are magnets in the phone (such as a case or holder) all the time, the gyroscope will malfunction.

โš ๏ธ Warning: If the gyro stopped working after a phone fell into the water or hit hard, don't try to calibrate it programmatically.

If none of these methods worked, contact a Xiaomi authorized service center. In some cases, the gyro can be soldered over, but more often, a replacement motherboard is required.

FAQ: Frequent questions about gyroscope calibration on Xiaomi

Can a gyroscope be calibrated without a computer?
Yes, most methods (engineering menu, Sensor Test application, MIUI reset) do not require a PC connection. ADB is only needed for advanced methods.
Why does the gyroscope start lying again after calibration?
This can be due to: Bad sensor contact with the board (repair required); MIUI system lags (try rolling back on the old firmware version); magnetic interference (check the case or accessories).
Should I calibrate the gyroscope after changing the screen?
Yes, after any repair (replacement of the screen, battery, motherboard) it is recommended to perform calibration of all sensors, as their position may have changed.
Can the virus affect the operation of the gyroscope?
Theoretically, yes, but extremely unlikely. Viruses don't normally interact with hardware sensors. If you suspect an infection, scan your phone with an antivirus (like Malwarebytes) and reset your settings.
How to check if the gyroscope works at all?
If you install the Sensor Test or AndroSensor app, and you look at the gyroscope, if you're rotating your phone, the X/Y/Z axes don't change or you're showing zeros, the sensor is defective.