Compass in Xiaomi smartphones is not just an additional feature, but an important tool for navigation, AR-But many users have a problem when the compass needle floats, shows the wrong direction, or refuses to work, and the reasons range from software failures to hardware malfunctions in the magnetometer sensor. In this article, we will discuss how to calibrate the compass on Xiaomi, check its accuracy and eliminate typical errors.
It is important to understand that the calibration process on modern Xiaomi smartphones (especially on models with HyperOS) is different from older versions of MIUI. We will look at universal methods that work on most devices, from budget Redmi to flagship Xiaomi 14. If after all the manipulations the compass still works wrong, at the end of the article you will find recommendations for diagnosing hardware problems.
Why does the compass on Xiaomi show incorrectly?
Before you start setting up, you should understand the possible causes of the compass malfunction, and most often the problem lies in one of the following factors:
- π Lack of calibration β after updating the firmware or resetting the settings, the magnetometer sensor requires re-configuration.
- π± The influence of metal objects β magnet covers, keys or even metal elements of clothing can distort readings.
- π Energy-saving mode - some versions MIUI Turn off sensors to save charge.
- π οΈ Hardware malfunctions β physical damage to the sensor (for example, after a phone falls).
- π Geomagnetic anomalies β in rare cases, interference creates natural magnetic fields (for example, near power lines).
If the compass starts lying after installing custom firmware or root rights, the problem may be that the sensor drivers are not working properly, in which case only the firmware or rollback to the sewage software will help.
Calibration Preparation: What to Do in Advance
Before you start setting up your compass, follow a few preparatory steps to avoid typical errors and speed up the process:
- Remove metal objects β remove the case (especially with magnetic fastening), move away from laptops, speakers and other electronic devices.
- Enable high-precision location β go to Settings β Security and Location β Location and activate High Accuracy mode.
- Turn off energy saving β in Settings β Battery, check that the energy saving mode does not limit the operation of sensors.
- Update the software β outdated firmware may contain bugs that affect the compass. Check for updates in Settings β About Phone β System Update.
If youβre using Xiaomi with HyperOS, note that the path to some settings may be different, for example, on newer versions of the software, the Location section is moved to Settings β Apps β Permissions β Location.
π‘
Before calibration, restart your smartphone β this will reset temporary sensor errors and improve the accuracy of readings.
Method 1: Calibration of the compass through Equipment Tests (MIUI)
The most reliable way to calibrate a compass on Xiaomi is to use the built-in hardware test menu, which is available on most devices, but the path to it may vary depending on the version of MIUI or HyperOS.
Instructions for MIUI 12-14:
- Open the Phone app and type in the combination: ##6484## (some models run ##4636###).
- Select Test hardware or Test equipment (on Russian firmware).
- Find the Sensor section (Sensors) β Magnetic field sensor (magnetic field sensor).
- Press Calibrate and follow the instructions on the screen.
On HyperOS, the path may be different:
Settings β About phone β All specifications β 5 times press on the βCoreβ β Equipment TestIf the codes donβt work, try an alternative method through the developer mode:
Settings β About Phone β MIUI Version (click 7 times) β Return to Settings β Additional β For Developers β Enable βDebugging by USBβ and βDo not turn off the screenβRemove metal objects|Insert high-precision location|Turn off energy saving|Reboot your smartphone-->
Method 2: Calibration with Google Maps
If the built-in tests are not available or helpful, you can use Google Maps, which works on all Xiaomi smartphones, including models without access to the engineering menu.
Step-by-step:
- Open Google Maps and allow access to your location.
- Click on the blue dot (your location) and select Calibration of the compass.
- Follow the instructions on the screen: you usually need to rotate the phone eights 3 times or tilt it in different directions.
- Once completed, check the accuracy β the compass needle should clearly point north.
If you donβt have a calibration option in Google Maps, upgrade to the latest version or use alternative maps, such as Yandex.Maps or OSMAnd.
What if the calibration is not saved in Google Maps?
Method 3: Manual calibration through an engineering menu (MTK)
Xiaomi smartphones with MediaTek processors (e.g. Redmi Note 11, POCO M4 Pro) have an MTK engineering menu where you can manually calibrate the sensors, a method that requires caution, as wrong actions can lead to failures.
Instructions:
- Enter the dialer code ##3644633## (or #4636## β Engineer mode).
- Go to the Sensors section β Magnetic Sensor.
- Press Do calibration and place the phone on a flat surface.
- Wait until the process is completed (usually 10-20 seconds).
Warning: some firmware may have the engineering menu blocked. Do not change other settings unless you are sure of their purpose!
| Xiaomi model | Processor type | Supported Engineering Menu Code |
|---|---|---|
| Redmi Note 12 Pro+ | MediaTek Dimensity 1080 | ##3644633## |
| POCO X5 Pro | Snapdragon 778G | ##4636## β Sensor Test |
| Xiaomi 13 | Snapdragon 8 Gen 2 | Only through Equipment Tests (code ##6484##) |
| Redmi 10A | MediaTek Helio G25 | ##3644633# or #4636## |
Checking the accuracy of the compass after calibration
After calibration, you need to make sure that the compass is working correctly.
- Compare it to a physical compass β if there is a mechanical compass, check for a match.
- Use a tester app like Lexa Fitnessβ Compass or Sensor Box.
- Check in. AR-Apps β run Google Lens or game with augmented reality (e.g., Google Lens, PokΓ©mon GO).
If the compass needle drifts (slowly rotates on its own), it may indicate:
- π Battery interference β on some Xiaomi models, the battery creates magnetic fields.
- π‘ Impact of networks 5G/Wi-Fi β Turn off your mobile data and check again.
- π§ Sensor malfunction β if calibration doesnβt help, repairs may be needed.
π‘
If the compass still shows incorrectly after calibration, try turning off the Adaptive Brightness function, which sometimes conflicts with sensors.
What to do if the compass on Xiaomi is not calibrated?
If none of these methods worked, the problem could be deeper.
β οΈ Warning: If the compass stopped working after a phone drop or moisture hit, donβt try to calibrate it programmatically, this could be a sign of physical damage to the sensor β in which case, a diagnosis at a service center is required.
Possible causes and solutions:
- π Reset settings β perform reset to factory settings (pre-save data!). Way: Settings β The phone. β Resetting settings.
- π¦ Outdated Software β Check for updates to Google Play Services and MIUI.
- π οΈ Sensor plume damage -- if the phone fell, maybe the magnetometer contact has gone.
- π§² Magnetic cases β some accessories (such as smart alarm cases) have built-in magnets that constantly knock down the compass.
On HyperOS models, sometimes a rollback to the previous firmware version helps if the problem appears after the update.
- Download the old firmware from the official Xiaomi website (Download section).
- Go to Settings β About Phone β System Update β Three Dots β Select a firmware file.
- Install the firmware manually (without data cleaning).