Many Xiaomi smartphone owners are faced with a situation where the screen stops responding to the device's rotation or turns in the wrong direction. A gyroscope is a microelectromechanical system responsible for determining the angular speed and orientation of the phone in space, and it is the malfunctions in its work that most often cause such inconveniences. Sometimes the problem lies in a software failure, and sometimes it requires physical calibration of sensors through hidden system menus.
In this article, we will discuss in detail how to adjust the gyroscope on Xiaomi using the built-in tools of the MIUI and HyperOS operating system. You will learn how to enter the engineering menu, what tests you need to pass to properly operate the accelerometer, and what to do if the software setting does not help. It is important to understand that calibration is the process of "training" the phone to your style of use and current operating conditions.
Before you start complex manipulations, it is worth noting that in most cases the problem can be solved without installing third-party software. Sensors installed by the manufacturer are highly accurate, but require the correct reset of accumulated errors. If your Xiaomi, Redmi or POCO smartphone began to behave strangely, do not rush to carry it into the service - try to restore the factory parameters of the sensors yourself.
Diagnostics: checking the operation of sensors
The first step before any setup is to thoroughly diagnose the current state of the system, and you need to make sure that the problem is really in the gyroscope or accelerometer, not in a particular application or temporary freeze system.
Open the standard Phone app and dial ##6484##. If the code is entered correctly, the CIT menu will open. In the test list, look for the "Gsensor" or "Accelerometer." When you click on it, you will see the current position coordinates of the phone on the X, Y, Z axes. Put the device on a flat horizontal surface - the values should tend to zero or stable values indicated on the screen.
β οΈ Note: If the values in the test jump chaotically even on a stationary table, this may indicate physical damage to the sensor or the need to solder the component on the motherboard.
Itβs also worth checking if the autorotation function is enabled. Go to Settings β Screen β Screen Autorotation and make sure the switch is active. Sometimes users accidentally block orientation through the notification curtain, taking it for a gyroscope break.
Calibration through CIT Engineering Menu
The most effective way to calibrate a gyroscope on Xiaomi is to use the built-in CIT mode we mentioned above, which allows you to reset the accumulated positioning errors and re-remember the position of the device in space, a process that requires care, because the accelerometer is sensitive to vibrations.
From the CIT menu, select the Gsensor test and press the Calibrate button. The phone will ask you to put it on a completely flat surface. Don't touch the device while the process is underway -- it can take 10 to 30 seconds. Once it's completed successfully, the system will give you a Pass message. If you get a Fail, repeat the procedure, making sure the table isn't staggering.
βοΈ Checklist before calibration
There's also an advanced calibration mode available in some firmware versions. If a simple reset didn't work, try sequentially calibrating all the motion sensors. The test menu often features a "Single test" where you can run a comprehensive check. Make sure the battery is at least 20 percent charged, as when the charge is low, the sensors may not work properly.
After successful calibration, be sure to restart the device. Press Power Menu β Reboot. This is necessary for the Android operating system to apply new correction factors to hardware drivers. Without a reboot, the changes may not take effect immediately.
Setup through hidden codes and applications
If the standard CIT menu is not available or is not working properly, alternative methods can be used. Xiaomi and Redmi smartphones sometimes use the code ##4636##, which opens the test menu, and you can select Phone Information and search for sensor-related options, although newer versions of MIUI often cut this functionality.
For a deeper setup, many users turn to third-party apps from the Google Play Market, programs like GPS Status & Toolbox or Sensor Multitool that not only diagnose but also reset gyroscope data, and in these applications, look for "Reset Sensors" or "Clear AGPS data," which compulsorily clears the sensor cache.
| Method | Difficulty | Efficiency | Risk of data loss |
|---|---|---|---|
| CIT menu (#6484##) | Low. | Tall. | No. |
| Third-party annexes | Medium | Medium | No. |
| Resetting (Hard Reset) | Tall. | Maximum | Total loss. |
| Engineering cable/PC | Very high. | Depends on the software. | There's a risk. |
Using third-party software is especially important if Xiaomiβs regular tools donβt see the problem. Apps can show the sensorβs schedule in real time, which helps to detect βdriftβ readings. A gyroscope drift is a situation where the phone thinks it is tilted, even though it lies flat, which causes the screen to turn spontaneously.
Problems with autorotating the screen in MIUI and HyperOS
Often users are looking for a way to adjust the gyroscope on Xiaomi when it comes to sticking the image in a horizontal or vertical mode. In the shells of MIUI and the new HyperOS, a separate system service is responsible for this, sometimes helping a simple reset of the display settings without affecting personal data.
Go to Settings β Advanced Settings β Availability. Find the item related to managing your phone or turning the screen, and try to switch it. In some cases, cleaning the cache of the system application "Settings" helps. To do this, go to Settings β Apps β All Apps β Settings β Memory β Clear the cache.
β οΈ Warning: When cleaning system applications data, be careful β resetting βall dataβ (not just cache) can return your phoneβs settings to factory settings by removing your Wi-Fi passwords and alarm clocks.
Itβs also worth checking the settings of the particular app where the problem is, such as YouTube or TikTok, which may have their own internal orientation blockers, and make sure that the notification curtain does not activate the βOriental Blockβ mode, which takes precedence over the system gyroscope.
π‘
If the screen turns in jerks, try to reduce the refresh rate of the screen in the display settings from 120 Hz to 60 Hz β this will reduce the load on the sensor processing processor.
Resetting to factory settings as an extreme measure
When software failures become critical and neither calibration nor third-party utilities help, the radical method remains: a complete reset. This action will return the operating system to its original state, removing all driver conflicts and accumulated software debris.
To perform the reset, go to Settings β About Phone β Settings Reset β Erase All Data. The phone will reboot and start the cleanup process, which can take 10-15 minutes. Once switched on, Xiaomi will be as new and the gyroscope drivers will be initialized again with factory settings.
There is also Recovery mode available when the phone is off. Press Volume up + Power buttons at the same time until the logo appears. From the Recovery menu, select the language (English), then "Wipe Data" β "Wipe All Data", which is more effective because it eliminates the impact of corrupted files in the user section.
What if the reset didn't help?
Hardware causes of malfunction
And remember, a gyroscope is a physical device, and if the phone falls, gets hit, or gets underwater, the sensor microcontroller might fail, and in those cases, no software adjustments on Xiaomi will work, and the hallmark of a breakdown is a complete failure to respond to turns or chaotic cursor behavior.
Sometimes the problem is a broken plume connecting the board to the sensors, and if you press the back cover in the chamber or the bottom of the body, you can temporarily restore contact, and if you press the sensors, you have a problem in the contact group or the deformation of the body.
In the models with AMOLED-The combined module is often used by screens and built-in fingerprint scanners, and damage to the screen when glass is replaced in an informal service can damage the gyroscope, as the plumes often pass in close proximity to each other.
π‘
Software calibration is effective only in the absence of physical damage to the housing and the device board.