How to turn on and configure a gyroscope on Xiaomi: The Complete Guide

Many budget and mid-budget users experience a situation where the smartphone screen does not respond to the turns of the device. In navigation applications, racing games or watching video in horizontal mode, this is very uncomfortable. Often the problem is not a failure, but a software failure or incorrect calibration of the accelerometer and gyroscope. In Xiaomi, Redmi and POCO smartphones, these sensors are closely related to the MIUI or HyperOS interface management system.

Before you bring a gadget to a service center or panic, it is worth checking the basic system settings. A gyroscope is a hardware module that cannot be turned on with a single button in a regular menu, since it works constantly. However, it can be reconfigured, calibrated or forced to activate through an engineering menu. In this article, we will discuss all available methods for activating orientation sensors and fixing errors in their operation.

There's a common misconception that you can turn off the sensor to save charge. In fact, the accelerometer and the gyroscope consume minimal energy in the background. Screen rotation problems are most often caused by software conflicts or proximity sensor contamination, which also affects orientation blocking. Let's look at step-by-step steps for diagnosis and tuning.

Basic check of autoturn settings in MIUI

The most obvious, but often ignored, step is to check the standard interface settings. In the MIUI 12, 13, 14 shells and the new HyperOS, orientation control is put in the "curtain" of notifications. If there's a lock icon on there, the screen will be fixed in an upright position, regardless of how you turn the phone. Make sure that the "Turn" function is active.

Sometimes the system blocks the turn in specific applications. This is normal for social networks like Instagram or TikTok, where the content is sharpened vertically. However, in a browser or gallery, the screen must rotate. If this does not happen, check whether Do Not Disturb or save energy, which may limit the background processes of sensors, is on.

⚠️ Note: If autorotation does not work in any application, including YouTube and the browser, but it is enabled in the settings, there is likely a driver problem or a physical malfunction of the display plume.

For quick diagnosis, you can use the system's built-in tools. Go to Settings β†’ Advanced Settings β†’ Language and input. Here you can find keyboard settings that sometimes affect the orientation of the input field. It's also worth checking the "Special Features" section, where gesture control functions that conflict with the gyroscope may be active.

It's important to understand the difference between software lock and hardware lock, and if you're rebooting and checking your settings, you still don't turn the screen, you have to go into the system settings through the engineering menu, and that's the next level of diagnostics that allows you to interact directly with the sensors.

πŸ“Š Have you ever faced the problem of a broken auto turn?
Yeah, all the time.
Sometimes.
Only on the old models.
No, it's working.

Using the CIT Engineering Menu for Testing

The Calibration and Information Test (CIT) is a hidden partition of the system designed to test hardware components. This is where you can check if the system sees the gyroscope and the accelerometer at all. To enter the menu, type in the Phone app code ##6484##. If the code doesn't work, try ##4636##, although it's more typical of pure Android.

When you log into the CIT menu, you'll see a long list of tests. You'll find items called "Gyroscope," "Accelerometer," or "Sensor." When you run the test, you'll see an image of a level or cube on the screen. You'll have to put the phone on a flat surface and slowly tilt it. If the image on the screen is late or not moving at all, then the sensor is not transmitting data to the system.

The calibration function is available in the same menu. Select "Calibration", put the device on a flat table and press "Start". The process takes about 10-15 seconds. Once successfully completed, the system will reset accumulated positioning errors, which often solves the problem of a "floating" cursor in games or misidentifying the cardinal points.

β˜‘οΈ Checklist of diagnostics in CIT

Done: 0 / 6

It is worth noting that in some firmware versions, access to CIT can be limited or changed. If standard codes do not work, you can try logging in via the About menu. You need to quickly click on Kernel version in the About section 7-10 times to do this, which will open an additional menu where an advanced hardware test is sometimes available.

What to do if the CIT code does not work?
If the codes don't work, you may have a global firmware with a stripped down engineering menu or a Chinese version with locks, in which case, try installing the "CIT" or "Device Info HW" app from Google Play for similar sensor data.

Hidden settings through USSD-codes and applications

In addition to the standard CIT, there are alternative codes for accessing logs and sensor settings. Code ##3646633## opens the Engineer Mode menu, which looks more technical and complex, and you go to the Hardware Testing tab, then select Sensor and then Gyroscope.

This menu provides a detailed setting of the sensor's polling frequency and sensitivity. Be careful: changing parameters without understanding the physics of the process can lead to a twitchy interface. The main purpose here is to check whether the sensor is active ("Enable" status) and what data it transmits in real time (Data).

ParameterDescriptionNormal value.
StatusCurrent status of sensorActive / Enabled
FrequencySurvey frequency (Hz)50 - 100 Hz
RangeMeasurement rangeΒ±2000 dps
ResolutionAccuracy of measurement16 bit

For ordinary users, the safer option is to use specialized applications from the Google Play store. Programs like "GPS Status & Toolbox" or "Sensor Sense" allow you not only to see the readings of all sensors, but also to perform a reset calibration (Reset Calibration), which is especially useful if the standard CIT menu is not available.

Using third-party software also helps to identify the "dead zones" of the sensor. If the gyroscope readings in the application jump wildly with a stationary phone, this may indicate a software failure in the drivers or incipient problems with the "hardware", in which case a complete reset or flashing helps.

πŸ’‘

Before resetting the calibration through the application, be sure to put the phone on a perfectly flat horizontal surface, otherwise the calibration will be error-prone and the autorotation will work incorrectly.

Proximation sensor problems and their impact

Many people don't know, but on Xiaomi smartphones, not only the gyroscope, but the proximity sensor is often responsible for blocking the screen's turn, and it's located at the top of the screen, next to the speaker, and if the sensor "thinks" that the phone is near the ear (for example, because of dirty glass or a bad case), it locks the screen and prevents it from turning.

You can check the sensor's performance in the same CIT engineering menu by selecting the "Proximity Sensor" test. Close the top of the screen with your hand - the value should change from 5.0 to 0.0. If the value does not change or changes randomly, try to wipe the top of the screen with an alcohol wipe. Fat spots often cause false positives.

In some cases, software to disable the proximity sensor through hidden settings helps. To do this, type ##6485## in the dial menu. In the list of parameters that opens, find the proximity string and try to change its value. However, this method does not work on all models and versions of Android.

⚠️ Warning: Camera stickers or thick black-framed protective glass often overlap the proximity sensor, and if the problem occurs after the protection is glued, it is because of it.

Also worth mentioning is Pocket Mode, which prevents accidental taps when the phone is in your pocket, but can conflict with the gyroscope. You can turn it off by Settings β†’ Screen Lock β†’ Pocket Mode. If after switching off the screen began to turn normally, then the conflict was in the algorithms of protection against accidental taps.

Calibration through ADB for advanced users

For those who are not afraid of the command line, there is a method of calibration through the ADB (Android Debug Bridge. This is a way to reset sensor configuration files at the system level, which is often more efficient than standard calibration. You'll need a computer, USB-cable and installed drivers ADB.

First, you need to include β€œDebugging by USB" Then connect the phone to your PC and enter a command to access the shell. With the adb shell command, you access the file system. The key is to find and delete (or rename) the calibration files that are usually in the section. /data/misc/sensors/.

adb shell


su




rm /data/misc/sensors/sensors_cal_data




reboot

Once you reboot, the phone will restart. The system will detect no calibration files and create new ones with zero values on the first run. This is a hard reset that helps in cases where software calibration through the menu does not work. However, remember that deleting system files always carries risks.

πŸ’‘

Using ADB allows you to perform deep cleaning of the sensor cache, but requires root rights or unlocked bootloader on some Xiaomi models.

If you do not have root rights, you can try a reset command without deleting files using system utilities through the ADB. For example, the am broadcast team -a android.intent.action.CALIBRATE_GYROSCOPE (If supported by firmware, it can initiate a system recalibration process. MIUI.

Frequent causes of failure and their solution

  • πŸ“± Mechanical damage: A smartphone crash could have damaged the gyroscope chip, in which case the software is powerless, requiring a replacement module in the service.
  • 🧲 Magnetic field: Being close to powerful magnets (columns, magnets in covers) can temporarily demagnetize or knock down the Hall sensor, affecting the compass and gyroscope.
  • πŸ’Ύ Firmware error. After Android update or MIUI It helps to clean the partition cache (Wipe Cache Partition) through Recovery Mode.
  • πŸ”‹ Power failure: With a high battery discharge (less than 5%), the system can turn off energy-intensive sensors to maintain charge.

The magnetic fasteners on bookcases are the number one enemy for accurate navigation and gyroscope operation. If you notice that after installing a new case, the navigator started lying and the screen stopped turning, remove the case and check the work.

In rare cases, the problem is with a specific application. For example, an updated card or game client may not properly request permissions. Check Settings β†’ Apps β†’ All applications, whether the problem program has access to sensors and an accelerameter. Sometimes reinstallation of the application helps.

Questions and Answers (FAQ)

Why does Xiaomi not have a separate β€œEnable the gyro” button?
A gyroscope is a hardware sensor that works constantly, using minimal power. There is no global switch on the Android operating system to turn it off, because it is necessary for the basic operation of the interface. You can only control the permission of applications to use its data.
Does the gyroscope on affect the battery’s discharge rate?
The impact is minimal. MEMS-gyroscopes in smartphones Redmi and POCO A noticeable charge flow can only be observed if a "heavy" application (for example, AR-play) polls the sensor at maximum frequency continuously.
Can I play PUBG Mobile without a gyroscope on Xiaomi?
Yes, you can. In the game settings, you can select to control the swipe aiming on the screen, but for professional play, the gyroscope (always on or aiming) provides a significant advantage in accuracy, especially at long distances.
What if the gyro stopped working after resetting the settings?
If the full Wipe Data reset didn't help, it's likely that the physical sensor module or the plume has been damaged, and it's also possible that a custom ROM has been installed with incorrect drivers, in which case it's recommended to return to the official global firmware via the Mi Flash Tool.