How to completely disable the accelerometer on Xiaomi: 4 proven ways

The accelerometer in Xiaomi smartphones is responsible for determining the angle of the device, automatically rotating the screen and the operation of some applications (for example, games or fitness trackers). However, this sensor can cause inconvenience: accidental screen rotation, increased battery consumption or even conflicts with custom firmware, in some cases, users want to turn it off โ€” temporarily or permanently.

In this article, we will analyze all possible methods of deactivation of the accelerometer on Xiaomi, Redmi and other devices. POCO โ€” standardized MIUI to the hidden engineering menus and ADB-We will pay special attention to the models with MIUI 12-14, where the interface has changed dramatically, and we'll also look at the consequences of turning off the sensor and how to get it back if something goes wrong.

Why turn off the accelerometer on Xiaomi?

Before we proceed to the instructions, letโ€™s understand in what situations users decide to deactivate this sensor:

  • ๐Ÿ”„ False screen rotations โ€“ Xiaomi screens sometimes spin spontaneously, especially in pockets or bags.
  • ๐Ÿ”‹ Battery savings โ€“ the accelerometer consumes energy even in the background. 9A or POCO C31) It might be noticeable.
  • ๐ŸŽฎ Conflicts with games/applications โ€“ some programs (e.g. emulators or software) AR-games) misinterpret sensor data, which leads to bugs.
  • ๐Ÿ› ๏ธ Testing or debugging โ€“ developers and enthusiasts sometimes turn off sensors to check the software under โ€œcleanโ€ conditions.
  • ๐Ÿ”’ Privacy โ€“ an accelerometer can be used to collect data about a userโ€™s movement (e.g., in activity trackers).

It's important to understand that completely disabling the accelerometer will cause autorotation, pedometer and some games to fail, and if you just need to block the screen turn, just turn off the option in the notification curtain, and it doesn't affect the sensor itself.

๐Ÿ“Š Why do you want to turn off the accelerometer?
False turn-offs
Battery savings
Problems with games/applications
Software testing
Another reason.

Method 1: Disconnect via MIUI settings (without root)

The easiest method is to use the built-in MIUI tools. It is suitable for most modern devices (Xiaomi 11/12/13, Redmi Note 10/11/12, POCO F3/F4/F5, etc.) and does not require superuser rights. However, there is a caveat: you can not completely disable the accelerometer through the standard menu, but you can block its effect on the turn of the screen and some functions.

Follow the steps:

  1. Open the Settings โ†’ Display.
  2. Find the Autoturn option (or Screen Turn in some versions of MIUI) and turn it off.
  3. For additional restrictions, go to Settings โ†’ Special Features โ†’ Physical buttons and check if there are options associated with motion sensors.

This method does not shut down the sensor completely, but minimizes its activity, and more radical methods will be needed to completely deactivate it.

โ˜‘๏ธ Preparation for disconnection of the accelerometer

Done: 0 / 4

Method 2: Use the engineering menu (#4636##)

The hidden engineering menu allows you to test and disable individual sensors, including the accelerometer, which works on most Xiaomi devices, but requires caution โ€“ wrong actions can disrupt the system.

Instructions:

  1. Open the Phone app and enter the combination: ##4636##.
  2. In the menu that opens, select Testing (or Testing on Russian firmware).
  3. Scroll down to the Sensors section.
  4. Find the Accelerometer string and tap it.
  5. In some versions of MIUI, there will be a Disable button. Press it and confirm the action.

โš ๏ธ Attention: On new versions MIUI (13+) The engineering menu can be blocked. If nothing happens after you enter the code, try using the ADB-method (described below) or check if the menu in your firmware is removed.

If the shutdown is successful, the sensor will stop responding to movement. To get it back, repeat the steps and press Enable.

What to do if the engineering menu is not opened?
If the combination ##4636## doesn't work, try the alternative codes: - ##36446337## (to test sensors on some models) - ##6484## (to check hardware) If they don't work, then the manufacturer has blocked access, in which case only ADB or root methods remain.

Method 3: Disconnect via ADB (without root rights)

The method using Android Debug Bridge (ADB) is suitable for advanced users and allows you to disable the accelerometer without obtaining root rights.

What you need:

  • ๐Ÿ’ป A computer with installed Xiaomi drivers and ADB Tools.
  • ๐Ÿ“ฑ Included debugging by USB on the phone (Settings) โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to tap the version number โ†’ return to Settings โ†’ Additionally. โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ USB-cable (preferably original).

Step-by-step:

1. Connect your phone to your PC and open the command prompt (Windows) or terminal (macOS/Linux).


2. Enter a command to check the connection:




adb devices




(The name of your device should appear).




3. issue debugging rights (if requested by phone).




Enter a command to disable the accelerometer:




adb shell settings put global accelerometer_rotation 0




5. Reset the device:




adb reboot

When you restart, the sensor will be turned off. To get it back, use the command:

adb shell settings put global accelerometer_rotation 1

โš ๏ธ Note: On some Xiaomi firmware (especially custom ones), this command may not work due to manufacturer limitations, in which case you will need to use pm disable to disable system services associated with the sensor, but this is risky without knowing the exact names of the packages.

๐Ÿ’ก

If ADB doesnโ€™t recognize the device, try reinstalling drivers through the Mi Flash Tool or using alternative versions of ADB (e.g., from Googleโ€™s Platform Tools package).

Method 4: Completely disable through root and edit system files

This is the most radical method, requiring unlocking the bootloader and obtaining root rights, suitable for advanced users who are willing to risk the stability of the system, but allows you to disable the accelerometer at the kernel level.

What needs to be done:

  1. Unlock the bootloader through the official Xiaomi tool (the process takes up to 7 days to wait for permissions).
  2. Install custom recovery (such as TWRP) and get root rights through Magisk.
  3. Using a root-access file manager (such as Root Explorer) go to /system/vendor/etc/ or /system/etc/.
  4. Find files associated with sensors (for example, sensor_def.xml or sensor_list.conf).
  5. Edit the file by commenting on or deleting the lines responsible for the accelerometer (usually containing an accelerometer or gsensor).
  6. Save the changes, set the correct rights (e.g. 644) and restart the device.

Example of a line in sensor_def.xml, shutdown:

<sensor name="accelerometer" type="1" />

โš ๏ธ Warning: Incorrect editing of system files can lead to bootloop ( looped reboot) or loss of functionality of other sensors.Be sure to backup through the system before making changes TWRP!

๐Ÿ’ก

Turning off the accelerometer through root is an irreversible process without a backup, and if the phone stopped working properly after the changes, the only way to get it back up is to restore the backup or reflash the device.

The consequences of turning off the accelerometer: what will stop working?

Before you deactivate the sensor, evaluate which features will become unavailable:

FunctionDepends on the accelerometer?Alternative solution
Screen reversalโœ… Yes.Manually turn through the notification curtain
Google Fit (Mi Fitness, Google Fitness)โœ… Yes.Use external fitness bracelets
Tilt control games (Asphalt, PUBG)โœ… Yes.Switch to touch control
AR-applications (Pokรฉmon GO, Snapchat)โœ… Partially.Use only the gyroscope (unless switched off)
Gestures in MIUI (shaking for flashlight)โœ… Yes.Assign other gestures or buttons

If you only use your phone to make calls, to chat with instant messengers, to watch content, the absence of an accelerometer may go unnoticed, but for gamers or fitness trackers, this will be a serious limitation.

How do you get the accelerometer back?

Depending on the method chosen, recovery works differently:

  • ๐Ÿ”„ Standard settings MIUI: Just turn the autoturn back on to Settings โ†’ Display.
  • ๐Ÿ› ๏ธ Engineering menu: Repeat steps and press Enable for accelerometer.
  • ๐Ÿ’ป ADB: Adb shell settings put global settings accelerometer_rotation 1 and reboot the device.
  • ๐Ÿ”ง Root Method: Restore the original files from the backup or reflash the device.

If after turning off the sensor, the phone began to work unstable (for example, lags or errors appeared), try resetting to factory settings via Settings โ†’ About Phone โ†’ Resetting. This will return all system parameters to the original state.

FAQ: Frequent questions about shutting down the accelerometer

Can I turn off the accelerometer for individual applications only?
Yes, but not through standard settings. This will require applications like AppOps (requires root) or Island (to create an isolated environment), which can restrict specific applications from accessing sensors, but this does not guarantee 100% lock-down, because some programs can bypass such restrictions.
Will the battery be saved after the accelerometer is turned off?
The savings will be only 1 to 3 percent of the total consumption, the accelerometer uses little power compared to a screen or processor, and the noticeable effect can only be obtained on very weak devices (for example, the Redmi 8A or the POCO C3).
Why does the sensor still work after the ADB shutdown?
It's probably the command that's been entered incorrectly or the firmware is ignoring the change. Try the alternative command: adb shell settings put system. accelerometer_rotation 0 If this does not help, check if the settings are reset after the reboot (typical for some custom firmware).
Can I turn off the accelerometer on Xiaomi without a computer?
Yes, but only partially through standard settings or engineering menus, and a root rights and file manager (like FX Explorer) would be needed to completely shut down without a PC, but thatโ€™s risky without a backup.
Does the accelerometer shutdown affect the operation of the gyroscope?
No, they're different sensors. A gyroscope is responsible for angular velocity (for example, in tilt control games), and an accelerometer is responsible for linear acceleration, but some applications can use them together, so some functions may not work properly.