How to Calibrate a Compass on a Xiaomi Phone: A Complete Guide to Solving Typical Problems

Why Xiaomi Compasses Are Wrong and How to Fix Them

You’ve noticed that the compass needle is on your Xiaomi (whether it’s a Redmi Note). 12, POCO X5 or Mi 13) Does it turn randomly, freezes in one position, or shows direction with an error in the direction of the 30-90 The problem is the uncalibrated magnetometer, the sensor that detects the cardinal points, even in the new smartphones after the upgrade. MIUI or physical impacts (e.g. falling) the compass may be knocked down.

Calibration of a compass on Xiaomi is not just about β€œflagging the phone with an eight,” as many forums have written. The process involves checking hardware sensors, resetting location settings, and sometimes even manually adjusting through an engineering menu. In this article, we’ll take a look at all the working methods, from basic to advanced, and explain why the compass can go down again in a week and how to avoid it.

It is important to understand: the exact operation of the compass is critical not only for applications like Google Maps or Yandex.Maps, but also for applications like Google Maps. AR-games, for example, PokΓ©mon GO), fitness trackers and even some camera features (e.g., skyline-based panoramic photography) If you actively use navigation or geolocation services, an inaccurate compass can lead to errors in determining the route to the location. 50-100 meters.

Preparing the phone for calibration: 5 mandatory steps

Before you start calibrating, make sure your Xiaomi is ready for the procedure. Skipping these steps can cause the compass to malfunction and you'll waste your time.

  • πŸ“± Update. MIUI In older firmware (especially on Redmi 9 and the Redmi). POCO M3) There were sensor bugs fixed in new builds. β†’ The phone. β†’ Updating the system.
  • 🧲 Take away the metal objects. Even a magnetically attached case or keys in your pocket can distort the magnetometer readings.
  • πŸ“‘ Enable high-precision location. Go to Settings. β†’ Security and location β†’ precision β†’ High precision mode.
  • πŸ”„ Reboot your phone. This will reset the temporary sensor errors, especially if the compass starts to glittle after prolonged use of the navigator.
  • πŸ› οΈ Check the physical condition of the sensor, if the phone fell or was subjected to a strong vibration (for example, in a car), the magnetometer could shift.

Pay special attention to the item with metal objects, POCO F4 Xiaomi 12T They have sensitive sensors that respond to even the magnetic fastener on the bag, and if you're calibrating indoors, you better go outside, or at least walk up to the window, concrete walls with rebars can also affect the readings.

⚠️ Warning: If the compass has stopped responding at all after the phone restart (the shooter is not moving), this may indicate a hardware malfunction.

πŸ“Š How often do you use a compass on your smartphone?
Every day.
Several times a week
Nearby
Only when traveling.
Never.

Method 1: Standard calibration via Google Maps (for most models)

The easiest and most versatile method is to use the built-in calibration utility in Google Maps.It is suitable for all Xiaomi smartphones based on Android 10 and later, including the Redmi Note 11, POCO X4 Pro and Mi 11. Here's the step-by-step instruction:

  1. Open the Google Maps app and wait until your location is determined (blue dot on the map).
  2. Touch the blue dot (your location) once, and a pop-up will appear at the bottom of the screen with accuracy information.
  3. Click on the Calibration button (if it is not available, then the compass has already been calibrated or another method is required).
  4. Follow the instructions on the screen: rotate the phone in space, describing it as an eight or a circle. Movements should be smooth, without jerking.
  5. Wait for the Compass to be calibrated. Now the arrow must show direction exactly (check by comparing it to a physical compass or the sun).

If the compass needle still β€œtwitches” or shows incorrectly after calibrating, try repeating the procedure. 2-3 Sometimes the sensor needs to get used to new data, and also make sure you have a gyroscope on, and without it, the compass will work worse. You can check this in the engineering menu (more on this below).

All metal objects near the phone removed|

High precision location detection mode enabled|

The phone has been rebooted in the last 10 minutes.|

No active VPN or location-shifting programs|

Free at least 1 GB of RAM (close background applications)-->

Method 2: Calibration through the engineering menu (for power users)

If the standard method doesn’t work, you’ll have to go to the Engineering Mode, which is more accurate, but requires caution β€” wrong actions can knock down other phone settings. POCO) and Mediatek (Xiaomi Civi) some Redmi Note).

To open the engineering menu:

  1. Open the phone app and enter the combination: ##4636##
  2. In the menu that appears, select Testing.
  3. Scroll down and find the Sensors.
  4. In the sensor list, look for the Magnetic field or Magnetometer. Press it.
  5. The screen will show a graph with three axes (X, Y, Z) and you need to calibrate it: rotate the phone in space so that the values on the graph vary from one to the next. -200 before +200 all-axis.
  6. After successful calibration, save the settings (if there is a Save button) and restart the phone.

For smartphones on Mediatek (e.g. Redmi) 10A or POCO M5) combination:

##36446337##

Sensor β†’ Magnetometer β†’ Calibration

⚠️ Warning: If the compass gets worse after calibrating through the engineering menu (the arrow rotates randomly), then the sensor was initially damaged. Try resetting the sensors to the factory settings on the same menu (Restore Default).

What to do if the engineering menu is not opened?
If nothing happens after you enter the code, maybe: 1. Your Xiaomi model blocks access to the engineering menu (relevant for some firmware). MIUI 14). 2. You have custom firmware installed (e.g. LineageOS) where the engineering menu is disabled. 3. The code is incorrectly entered (check register and *# characters). In this case, try an alternative method - through the application. GPS Status & Toolbox (described below).

Method 3: Using Third-Party Applications (GPS Status, Compass)

If Xiaomi’s built-in tools fail, third-party utilities will come to the rescue, and we recommend two proven apps:

  • 🧭 GPS Status & Toolbox – shows detailed sensor information and allows you to calibrate the compass manually. Suitable for all Xiaomi models, including old ones (Redmi 5, Mi) A2).
  • πŸ“ Compass (from Lexa Fork) is a minimalist compass with autocalibration function. Good for quick accuracy checks.

Instructions for GPS Status & Toolbox:

  1. Download the app from Google Play and open it.
  2. Go to the Compass tab (compass).
  3. Press Calibrate and follow the instructions on the screen (usually rotate the phone in space, as in Google Maps).
  4. After calibration, check the readings: if the compass needle matches the physical one (for example, the sun at noon), everything went well.

The advantage of this method is that GPS Status shows raw data from sensors, including a magnetometer, accelerometer and gyroscope. If the magnetic field is constantly close to zero or jumps randomly, it is a sign of hardware malfunction.

AnnexAdvantagesDeficienciesSuitable for models
Google MapsBuilt-in tool, you don't need to download anythingIt doesn’t always work on the old Xiaomi.All models on Android 10+
GPS Status & ToolboxShows raw sensor data, accurate calibrationAdvertising in the free versionAll models, including the Redmi 4X, Mi 8
Compass (Lexa Fork)Simple interface, quick calibrationLess setup than in GPS StatusAll models with Android 8+
Engineering menuDeepest access to sensorsDifficult for beginners, risk of knocking down settingsAll models on the Qualcomm/Mediatek

πŸ’‘

If the compass still doesn't work correctly after calibrating, try turning off battery saving for navigation applications. In power saving mode, the system can restrict sensors' access to the processor, leading to lags of the arrow.

Method 4: Reset sensor and location settings (if nothing helps)

If all previous methods fail, you have a hard reset of sensor and geolocation settings, which will return all parameters to factory settings, but will not affect your personal data (photos, contacts, etc.).

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Find the Google Play Services app (or Google Play Services) and open its settings.
  3. Click Warehouse β†’ Clear the cache and Clear the data.
  4. Go back to the main settings and go to Memory. β†’ Cleanup β†’ Deep Clean. Select System Settings and confirm cleanup.
  5. Restart the phone and recalibrate the compass in any of the ways described above.

This method is especially effective if compass problems started after the update. MIUI The thing is, when you update, sometimes you get lost the sensor configuration files, and you have to manually reset them.

If this doesn’t work, the last chance is a complete reset (Settings) β†’ The phone. β†’ Resetting settings, but before that, you have to:

  • πŸ”„ Backup your data via Mi Cloud or Google Drive.
  • πŸ“ Write down logins / passwords from accounts (they will be saved, but it is better to be safe).
  • πŸ“± Make sure the battery is at least charged. 50% (discharge 10-15 minute).

⚠️ Note: Some Xiaomi models (e.g. Redmi) K50 Xiaomi 13 Pro) after resetting, you may need to re-assign your Mi Account. If you forget your password, your phone may lock.

Why Xiaomi Compasses Are Getting Down Again and How to Prevent It

You've successfully calibrated the compass, but after a day or two, it starts lying again?

  • πŸ”‹ Weak battery: At a discharge below 15%, the system can limit the operation of sensors to save energy%.
  • πŸ“± If the processor heats up (e.g. during games), the sensors may crash. Let the phone cool down before calibrating.
  • 🧲 If you carry your phone in your pocket next to your keys or work near your electric motors, the compass will get knocked down more often.
  • πŸ”„ Auto-updates MIUI. Sometimes when you update, you get lost on the sensor settings.
  • πŸ› οΈ Physical damage. If the phone fell, the sensor could shift, in which case the calibration helps temporarily.

On some Xiaomi models (for example, Redmi Note 10 Pro and other models) POCO F3) firmware MIUI 13+ There is a bug that causes the compass to go down after every restart of Google Maps. The solution is to roll back the Maps version to 10.82.1 or wait for a patch from Xiaomi.

To keep the compass running smoothly:

  • πŸ”„ Calibrate it once in a while. 1-2 Weeks (even if there are no visible problems).
  • πŸ“΅ Avoid covers with magnets and metal inserts.
  • πŸ“± Clean the Google Play Services cache regularly (once a month).
  • πŸ”‹ Keep your battery healthy (if the capacity drops below 70%, the sensors may not work well).

πŸ’‘

If the compass is only knocked down in one place (e.g. at home), the problem is most likely local magnetic interference (metal furniture, appliances) and check its performance outside β€” if everything is normal there, there is nothing to worry about.

Frequent Errors and Solutions: Discussing Common Problems

Even after calibration, Xiaomi users encounter errors, and here are the most common ways to fix them:

Problem.Possible causeDecision
The compass needle is not moving.Sensor is disabled or damagedCheck the Engineering Menu (Sensor) β†’ Magnetometer: If 0 is a malfunction.
Compass points to 180.Β° wronglySensor polarity down.Calibrate the ins. GPS Status with phone flip "upside down".
The arrow twitches or rotates chaoticallyMagnetic interference or software failureClear the Google Play Services cache and recalibrate it on the street.
The compass works only in a horizontal position.Uncalibrated gyroscopeCalibrate the sensors in the engineering menu (Gyroscope and Accelerometer).
After updating MIUI compass stopped workingConfiguration files are lostReset your location settings (see Method 4) or roll back the firmware.

If your problem is not described in the table, try the following algorithm:

  1. Install the Sensor Test app from Google Play and check how the magnetometer behaves in real time.
  2. If the values jump from -200 before +200 without logic, the sensor is faulty.
  3. If the values are stable but incorrect, the problem is in the software (try resetting the settings).
πŸ” Can I calibrate my compass without the internet?
Yes, the Internet is not needed for the calibration itself. However, to verify accuracy (e.g., through Google Maps) you will need a connection to determine your location. If there is no Internet, use a physical compass or navigate by the sun (at noon, the shadow points north in the Northern Hemisphere).
πŸ“± Why my Xiaomi doesn’t have a calibration option in Google Maps?
This can be for three reasons: You have an old version of Google Maps (update it).The phone does not support calibration through Maps (relevant for some Android Go models, such as Redmi). A1). The compass has already been calibrated (try other methods, such as through an engineering menu).
⚑ After calibration, the battery went down faster?
No, the calibration of the compass should not affect battery consumption: πŸ”„ You didn't close. GPS Status or Engineering Menu (These apps consume a lot of power in the background). πŸ“‘ High-precision geolocation mode is enabled (turn it off if you don't need it). πŸ”‹ Battery is worn out (check battery health via ##4636## β†’ Battery).
πŸ› οΈ Can I replace the compass sensor by myself?
Technically yes, but it is extremely difficult: πŸ”§ The magnetometer sensor is usually soldered into the motherboard (on some models it is separate, but very small). πŸ’» Requires a soldering station and experience with microelectronics. ⚠️ If the compass is critical to you (for example, you use your phone to navigate on a hike), it is better to contact the Xiaomi service center. The cost of replacing the sensor is from 1,500 to 3,000 rubles depending on the model.
🌍 How to check that the compass works exactly?
Here. 3 The sun is in the sun, and the sun is in the midst of the day. 12:00 The sun is close to the south. Compare the compass. Physical compass: If you have a separate compass (like a clock or a tourist set), compare the readings. By the stars: At night, find the North Star, which points north (relevant to the Northern Hemisphere). Permissible error - up to 5-10Β°. If the error is larger, the calibration is required again.