Calibration of a gyroscope on Xiaomi: why it gets lost and how to fix it

The gyroscope in Xiaomi smartphones is responsible for correctly determining the spatial position of the device, from the turns of the screen to the work of augmented reality in games and applications. However, even in new models like the Redmi Note 12 Pro+ or POCO F5, users face problems: the screen spontaneously rotates, games โ€œfloatโ€, and virtual reality works with distortions.

In this article, we will discuss why the gyroscope on Xiaomi begins to โ€œglueโ€, how to calibrate it software and hardware, as well as which models are most susceptible to such failures. Separately, we will focus on the hidden MIUI settings, which the manufacturer does not advertise, but which are able to return the accurate operation of the sensors without contacting the service.

Causes of gyroscope failures on Xiaomi: when you need calibration

The gyroscope in Xiaomi smartphones is a microelectromechanical sensor (MEMS) that can lose accuracy over time.

  • ๐Ÿ“ฑ Fall or impact โ€“ even a minor shake can displace the internal components of the sensor.
  • ๐Ÿ”„ Update MIUI โ€” after major updates (for example, before the MIUI 14) factory sensor settings are lost.
  • ๐Ÿ”‹ Battery discharge up to 0% - a sharp power outage can lead to errors in the operation of the microcontroller gyroscope.
  • ๐ŸŒก๏ธ Overheating or hypothermia โ€“ extreme temperatures affect accuracy MEMS-sensor.
  • ๐Ÿ› ๏ธ Self-repair โ€“ after replacing the screen or battery, recalibration is often required.

How do you know if a gyro needs to be adjusted?

  • ๐ŸŽฎ In games, for example, PUBG Mobile or Genshin Impact: Character is spontaneously turned.
  • ๐Ÿ“ฑ The screen is rotating with a delay or in the wrong direction.
  • ๐Ÿ“ Augmented reality applications (AR) shift.
  • ๐Ÿ“Š In sensor tests (via ##6484##) the gyroscope shows zero values or chaotic jumps.
๐Ÿ“Š What symptom of a gyroscope failure you are faced with?
Spontaneous rotation of the screen
Problems in games with tilt control
Imaculate work AR-applications
Other
I don't know if I need to calibrate.

Calibration Preparation: What to Do Before Starting

Before you start setting up the gyroscope, follow several mandatory steps:

Battery charge โ‰ฅ 50% | Remove the case and film from the device |Close all background applications |Check the temperature of the case (should be room) |Switch off the power saving mode-->

Pay special attention to the temperature of the smartphone. If the case is hot (for example, after prolonged use of the navigator), let the device cool for 15-20 minutes. Overheating can distort the readings of the sensors, and the calibration will not be correct.

It is also recommended to check the work of the gyroscope through the engineering menu:

  1. Open the Phone app and enter the combination ##6484##.
  2. Select the Sensor Test (Sensor Test).
  3. Look at the Gyroscope charts โ€“ in a calm state (the smartphone is on the table), the values should be close to zero.

โš ๏ธ Note: If the gyroscope does not appear on the engineering menu at all or if it shows a Sensor failed error, the problem may be hardware.

Method 1: Calibration of the gyroscope through MIUI settings

The easiest method is to use the built-in MIUI tools. It is suitable for most models, including the Xiaomi 13T, Redmi Note 11 and POCO X5 Pro.

  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 settings โ†’ For developers.
  4. Find the Sensors section and select the Calibration of the gyroscope (on some firmware, the item may be called Sensor Reset).
  5. Follow the instructions on the screen: you usually need to put your smartphone on a flat surface and wait 10-15 seconds.

If the calibration of the gyroscope is missing, try an alternative path:

  1. Open Settings โ†’ System and device โ†’ Sensors.
  2. Select Sensor Reset (this will result in all sensors, including the accelerometer and compass, being zeroed).

๐Ÿ’ก

After calibration, restart the smartphone โ€“ this will help to fix the new sensor settings in the deviceโ€™s memory.

Method 2: Calibration through the engineering menu (for advanced)

If the standard method didnโ€™t work, you can use a hidden engineering menu, which is suitable for models based on Qualcomm processors (for example, Xiaomi 12 Pro, Black Shark 5).

  1. Open the Phone app and enter the code ##36446337## (for Mediatek) or ##4636## (for Qualcomm).
  2. Select Sensor Test or Hardware Testing.
  3. Find the Gyroscope Sensor section and click Calibration.
  4. Place your smartphone on a perfectly flat surface (like a glass table) and wait until the process is complete (usually takes 20-30 seconds).

Some firmware may require additional commands, such as a POCO F4 GT with a Snapdragon 8 Gen 1 processor, after logging into the engineering menu, you need to:

Select "PCBA Test" โ†’ "Manual Test" โ†’ "Sensor" โ†’ "Gyroscope" โ†’ "Calibration"

โš ๏ธ Warning: Continuous use of the engineering menu can cause firmware malfunctions. Do not change settings unless you are sure of their purpose!

What to do if the engineering menu is not opened?
If nothing happens after you enter the code, check: 1. MIUI version โ€“ on some regional firmware (for example, for India) the engineering menu is disabled. 2. Developer rights โ€“ make sure they are activated (see Method 1). 3. Alternative codes: - For older models (Redmi 4X, Mi A1): ##36446337## - For new flagships (Xiaomi 14): #4636### โ†’ Testing โ†’ Sensor Testing โ†’

Method 3: Software calibration via ADB (for power users)

If the built-in techniques didnโ€™t work, you can use the Android Debug Bridge (ADB) tool, which requires a computer and basic command line knowledge.

Preparation:

  1. Download and install Platform Tools from the official Android website.
  2. Turn on your smartphone Debugging over USB (Settings โ†’ About Phone โ†’ MIUI version (tap 7 times) โ†’ For developers โ†’ Debugging over USB).
  3. Connect your smartphone to your PC through USB-cable (preferably original).

Sizing:

  1. Open the command line (Windows) or terminal (macOS/Linux) in the folder with the platform-tools.
  2. Enter the command to check the connection: Adb devices Make sure your device appears in the list.
  3. Reset the sensors: adb shell cmd sensorservice reset
  4. For forced gyro calibration, use: adb shell am broadcast -a android.intent.action.CALIBRATE_GYRO

Once you have completed the commands, restart your smartphone. If ADB issues a command not found error, make sure that the path to the platform-tools is added to the system environment variables.

๐Ÿ’ก

ADB-Calibration is the most profound method, because it resets the sensor settings at the system level. Use it if other methods have not worked.

Xiaomi models with frequent gyroscope problems: what to do for owners

Some Xiaomi models have historically suffered from gyroscope issues due to hardware features or firmware errors, and the table below shows the most problematic devices and recommendations for setting them up.

ModelTypical problemRecommendations
Redmi Note 10 ProSpontaneous Screen Rotation in GamesUpdate your firmware to MIUI 14.0.4+. Use ADB calibration.
POCO X3 ProThe gyroscope floats in AR-annexesTurn off battery optimization for applications with AR. Calibrate through the engineering menu.
Xiaomi Mi 11 UltraInaccurate readings of the gyroscope when shooting a videoReset the camera settings (Camera Settings โ†’ Restore Default Settings).
Redmi 9AThe gyroscope does not respond to turnsCheck the integrity of the sensor plume (a common problem after falls).
Black Shark 4/5Delays in games with tilt controlTurn on Game Turbo mode and calibrate the gyroscope through Shark Space.

If your model is not listed in the table, but problems with the gyroscope persist after all the manipulations, check:

  • ๐Ÿ” Firmware integrity โ€“ you may need to reflash the device via Fastboot.
  • ๐Ÿ› ๏ธ Physical damage โ€“ after falls, a gyroscope replacement may be required (cost) ~1500โ€“3000 โ‚ฝ service-centre).
  • ๐Ÿ“ฆ Application conflict โ€“ some programs (e.g, GPU Turbo or Game Booster can block sensor access.

Preventing gyroscope failures: how to avoid repeated problems

To ensure that the gyroscope on Xiaomi works stably, follow these recommendations:

  • ๐Ÿ›ก๏ธ Use depreciation cases โ€“ they reduce the risk of sensor damage in falls.
  • ๐Ÿ”‹ Avoid battery drains โ€“ this can knock down microcontroller settings.
  • ๐Ÿ“ฑ Update regularly MIUI โ€” In new versions, sensor errors are often corrected.
  • ๐Ÿงฒ Do not put your smartphone next to magnets โ€“ they can affect the work of the compass, which indirectly affects the gyroscope.
  • ๐ŸŒก๏ธ Avoid overheating โ€“ do not use your phone in direct sunlight or while charging in games.

It is also useful to periodically check the status of sensors through applications such as Sensor Test (available on Google Play).If you notice jumps in the values of the gyroscope in a calm state (for example, X: 0.5, Y: -0.3, Z: 1.1 instead of X: 0, Y: 0, Z: 0), repeat the calibration.

๐Ÿ’ก

For gamers: In game settings (such as Call of Duty Mobile or Free Fire), reduce the sensitivity of the gyroscope by 10-15% after calibration, which will reduce the effect of micro-shaking the sensor.

FAQ: Frequent questions about gyroscope calibration on Xiaomi

Can a gyroscope be calibrated without a computer?
In 90% of cases, there are enough built-in tools. MIUI (See Method 1) or Engineering Menu (Method 2). ADB It's only necessary for complex failures.
After calibration, the gyro started to work worse.
Return sensor settings to factory settings: Settings โ†’ System and device โ†’ Resetting โ†’ Reset sensor settings. If it doesnโ€™t help, perform a full phone reset (with data saved).
My Xiaomi doesn't have a "Gyro calibration" option in the settings. Why?
This depends on the MIUI version and regional firmware. For the Chinese version (China ROM), the item may be called Sensor Correction. Also on budget models (Redmi A1, POCO C50), calibration may be simplified or absent.
How long does it take to calibrate?
The standard procedure through MIUI settings is 10-20 seconds, and calibration through the engineering menu or ADB can take up to 1-2 minutes (including reboot).
Can a faulty gyroscope affect GPS?
Indirectly, yes. The gyroscope, along with the accelerometer, helps determine the orientation of the device, which speeds up the capture of satellites. If the gyroscope is shot down, the GPS can take longer to "catch" the signal or show inaccurate coordinates when moving.