Sudden failure of screen auto-rotation or incorrect control in racing simulators is often the result of a malfunction of the internal sensors of your smartphone. Accelerometer is a tiny but critical component responsible for determining the deviceโs position in space and its acceleration. When it starts to โlie,โ the interface freezes in one orientation, and the virtual steering wheel in games takes the car into a ditch without your participation.
Fortunately, in most cases the problem does not require a visit to the service center and replacing the hardware. Most often, it is enough to carry out a app calibrationto restore the accuracy of the sensor. In this article we will analyze all available methods: from standard engineering menus to using specialized utilities from Google Play.
You will learn how to diagnose a malfunction, what hidden commands can help owners of different brands, and why sometimes a simple reboot solves the problem better than complex manipulations. Let's take a look at how to make your Android feel gravity correctly again.
Diagnostics: how to understand that the accelerometer is broken
Before you start setting up, you need to make sure that the problem lies precisely in the sensor, and not in a software failure of a specific application. The first sign of a problem is that the system ignores the screen orientation lock command. You turn the phone, but the picture remains static.
The second obvious symptom is observed in games that use gyroscopic control. If a character or vehicle constantly moves to one side, even when you hold the device perfectly level, then zero point the sensor has gone wrong. This often happens after a smartphone has been dropped or been in a non-standard position for a long time.
For a quick check, you can use the built-in engineering menu, which is found on most devices. Enter the code #0# or ##4636##in your phone. If the menu opens, find the section Sensor or Accelerometer. Place the phone on a flat surface and look at the X and Y axis values.
โ ๏ธ Attention: Engineering codes may vary depending on the processor manufacturer and smartphone model. On some modern devices (especially with MIUI or ColorOS shells), access to these menus may be closed by the manufacturer.
In an ideal state, when the phone is lying horizontally, the values โโโโon the X and Y axes should tend to zero, and the Z axis should show a value close to 9.8 (gravitational acceleration). If you see significant deviations, for example, 2.5 or -3.0 on the horizontal axis, immediate calibration is required.
Standard calibration methods through settings
Many users do not even realize that their smartphone has a built-in sensor reset function. Manufacturers often hide it deep in the menu to avoid accidental changes by ordinary users. Try looking for a section related to accessibility or gesture controls.
On Samsung devices, a combination of actions through the accessibility menu often works. Go to Settings, select Special features, then find the item Coordination and motor skills. There may be an option to calibrate the gyroscope and accelerometer, which is launched by simply pressing a button after placing the phone on the table.
For Xiaomi and Redmi devices, the procedure may differ. In some versions of MIUI, resetting all settings to factory settings without deleting personal data helps, but this is a last resort. A softer way is to use the development menu. Activate developer mode by clicking 7 times on the build number in the section About phone.
- ๐ฑ Go to
SettingsโAdvanced settingsโFor developers. - ๐ Look for items related to โQuick Tile Settingsโ or โSensorsโ.
- ๐ Try to find the hidden calibration menu by searching in the settings for the word โcalibrationโ.
If you cannot find the item you need in the settings, try using Google Voice Assistant. Say "Hey Google, open accelerometer settings," and the system may redirect you to the correct section if it exists in your firmware.
Some manufacturers, such as Sony or Motorola, do not provide a direct interface for calibration in the user menu. In such cases, the system relies on automatic adjustments each time the screen is turned on. If the automation fails, you will have to resort to third-party software or engineering codes.
Using engineering codes and hidden menus
The most powerful tool for configuring Android hardware is the engineering menu. It allows you to interact with sensors directly, bypassing the limitations of the user interface. However, be careful: changing unknown parameters can lead to unstable system operation.
For devices based on MediaTek (MEDIATEK) processors, there is a universal way to enter the engineering menu. You will need a dialer app. Enter the code ##3646633##. The interface Engineer Modewill open. Go to the Hardware Testingtab, then select Sensor and Accelerometer.
##3646633##
In the window that opens, you will see the current sensor readings in real time. To perform calibration, find the button Do Calibration or similar. Place your smartphone on a completely flat horizontal surface before pressing. The system will write new zero values.
What to do if the code does not work?
If the standard MediaTek code does not work, try the universal codes for other platforms. For Qualcomm: ##8351## or ##8350##. For Samsung: #0#. Please remember that on Android 10 and higher, access to these menus is often blocked for security reasons.
After completing the procedure, be sure to restart your device. Without a reboot, new settings may not be applied to the system kernel. If the problem persists after a reboot, the sensor may be physically damaged or the cable has come loose.
| Manufacturer | Engineering code | Menu section | Action |
|---|---|---|---|
| MediaTek (Xiaomi, Meizu) | ##3646633## |
Hardware Testing > Sensor | Do Calibration |
| Samsung | #0# |
Sensor > Accelerometer | Self-test |
| Universal Android | ##4636## |
Phone Information | Running a test (not always available) |
| Huawei / Honor | ##2846579## |
Project Menu > VeneerInfo | Component test |
โ ๏ธ Attention: Do not change parameters in sections whose names you do not understand (for example, CDS Information or RF). This may lead to loss of communication or incorrect operation of the radio module.
Third-party applications for fine tuning
If the built-in tools do not help or access to them is blocked, applications from the Google Play Store come to the rescue. Developers have created many utilities that emulate the calibration process or offer alternative methods for resetting sensor data.
One โโof the most popular and reliable solutions is the application GPS Status & Toolbox. Despite the name, it contains a powerful tool for managing all sensors. After installation, go to the menu, select Manage A-GPS status and click Reset. Then go back and select Calibrate.
Another effective application is Sensor Box for Android. It not only performs diagnostics, but also offers step-by-step guide for calibration. You will need to perform several movements of the phone in space, following the instructions on the screen, so that the app can calculate correction factors.
- ๐ ๏ธ GPS Status & Toolbox: The best choice for a comprehensive reset of all sensors (GPS, accelerometer, compass).
- ๐ Sensor Kinetics: An advanced tool for visualizing sensor operation graphs in real time.
- ๐ฎ Accelerometer Calibration Free: A specialized utility with a simple interface, tailored specifically for this task.
It is important to understand that third-party applications do not have superuser (Root) privileges. They operate within the permissions issued by the system. Therefore, their efficiency may be lower than that of the engineering menu, but they are usually sufficient to solve everyday problems.
Third-party applications work on the principle of software redefinition of the zero point. They do not physically โfixโ the sensor, but tell the system: โconsider the current position of the phone as zero.โ
Calibration via ADB for advanced users
For those who are not afraid of the command line and have access to a computer, there is the most reliable method - using a debug bridge ADB (Android Debug Bridge). This method allows you to send a command to reset the calibration directly to the system, bypassing graphical interfaces.
First you need to enable USB debugging in the developer menu on your smartphone and install ADB drivers on your computer. Connect the phone with a cable and enter the command in the terminal adb devicesto make sure the device is visible. If everything is in order, you can proceed with the reset.
adb shell settings put secure accelerometer_calibration 0,0,0
This command resets the calibration parameters in the protected settings area. After completing it, be sure to restart your smartphone. Some custom firmwares (LineageOS, Pixel Experience) may require other commands, but for stock Android this method is often decisive.
If you have root access, the possibilities expand. You can manually edit the sensor configuration files in the /system/etc/directory, but this requires in-depth knowledge of your firmware architecture. An error in one character can brick the device.
โ ๏ธ Warning: Using ADB requires caution. Entering commands incorrectly may delete important data or cause system malfunction. Always make a backup copy before tampering with system settings.
Physical causes of malfunction and repair
Sometimes no software methods help because the problem is physical in nature. The accelerometer is a microelectromechanical system (MEMS) that can be damaged by a strong shock, a drop, or moisture entering the case.
If the phone was dropped from a height of more than a meter or was subjected to extreme vibration (for example, driven off-road in the glove compartment of a car), the sensor crystal could become dislodged or destroyed. In such cases, software calibration will only give a temporary effect or will not work at all.
It is also worth checking whether a thick protective case or magnetic holders are interfering with the operation of the sensor. Although the accelerometer responds to acceleration and not to a magnetic field (this is the job of a compass), massive metal inserts in the case can create parasitic vibrations or interfere with the operation of neighboring sensors in the module.
โ๏ธ Physical inspection checklist
If a physical breakdown is suspected, the only correct solution would be to contact a service center center The accelerometer module is usually not replaced separately, since it is soldered into a common board along with the gyroscope and other sensors. Most often, a replacement of the motherboard or re-soldering of the microcircuit by a specialist with a soldering station is required.
Frequently asked questions (FAQ)
Why does the accelerometer go astray after updating Android?
When updating the operating system, device drivers or configuration files may change. Old calibration data may become incompatible with new software, causing desync. It is recommended to reset the calibration immediately after a major system update.
Does a low battery affect sensor operation?
Yes, when the battery charge is critically low, the system may turn off non-essential functions to save energy, or the voltage becomes unstable for accurate operation of sensitive sensors. If the sensor behaves strangely, try charging the phone to 100% first.
Is it possible to disable the accelerometer completely?
You cannot completely disable it without root access, since it is necessary for the basic operation of the interface (auto-rotate). However, you can prevent specific applications from accessing it through the privacy settings in Android 12 and higher, or use sensor blocking applications.
Will a factory reset help?
Factory Reset deletes all user data and returns system settings to their original state. This often helps if the failure is caused by a conflict of third-party software or erroneous entries in the settings registry, but will not fix the physical breakdown.
Why is an accelerometer needed in everyday life?
In addition to games and auto-rotate the screen, it is used by a pedometer to count steps taken, the โShake to Actionโ function, and automatic screen turning on when you pick up the phone (Raise to Wake) and the operation of the video stabilizer when shooting.