How to permanently turn off the autorotation of the screen on Xiaomi: from MIUI 12 to MIUI 15

The auto-turning of the screen on Xiaomi smartphones is a feature that is both pleasing and infuriating. One moment you lie on the couch trying to read the article, and the screen stubbornly turns into a landscape orientation. The other is playing Genshin Impact, and the sensor refuses to fix the horizontal position. The manufacturer hid the direct settings of the autoturn deep in the menu, and in new versions MIUI 14-15 This article will help you understand how to completely disable autorotation (including forced landscape mode in games) or adjust it to your needs, from basic methods to hidden ones. ADB-team.

We tested all methods on current firmware (June 2026) on Redmi Note 12 Pro+, POCO F5, Xiaomi 13 Ultra and Black Shark 5 Pro. Note: some methods require an unlocked bootloader or root rights โ€“ we will warn you about this in advance. If you need to turn off autorotation only in individual applications (for example, in YouTube or TikTok), skip the first two sections and go straight to the settings for specific programs.

1. Standard turn off of the auto turn in MIUI

The most obvious way is to use built-in settings MIUI. In the latest versions of the slate (beginning with the MIUI 13) The way to these settings has changed, and in some regional assemblies, the option is not at all. MIUI 14/15:

  1. Open the settings (cog icon on the desktop).
  2. Go to the Screen (or Display in English).
  3. Scroll down and find Auto-rotate, and if you don't have one, tap the three dots in the top right corner and select Show all settings.
  4. Turn off the slider next to Autoturn. Some devices (such as the POCO X5) will have a separate switch for Forced Landscape Mode in games.

If you don't have Autoturn on your menu, the manufacturer has hidden it for your region, and then use the Quick Settings Panel:

  • ๐Ÿ“ฑ Swipe your finger down to open the notification curtain.
  • ๐Ÿ” Find the Autoturn icon (usually a circular-arrow phone) and if it's not there, click on the pencil and add it manually.
  • ๐Ÿ”„ Slip the icon to turn off the function. Grey is off, blue is on.

๐Ÿ’ก

On some models (like the Redmi Note 11) after turning off the auto-turn through the curtain, the function still works in games. To fix this, you need to use the ADB method.

2. disable autorotation through the hidden menu of engineering settings

If the standard methods donโ€™t work, you can use the engineering menu (#4636##.#) This method works on most Xiaomi devices, but you need to be careful โ€“ donโ€™t change the other options in this menu unless you know what they are for!

Instructions:

  1. Open the Phone app and type the combination: ##4636##. The Testing menu should open.
  2. Select the Usage statistics tab.
  3. At the top of the screen, find the drop-down menu and select Sensor as Orientation.
  4. Turn off the Enable slider. Reset the device.

Important: After disabling the orientation sensor through the engineering menu, some applications (such as Google Camera or ARCore) may not work properly. If you need these features, use alternative methods from the following sections.

What to do if the engineering menu is not opened?
If, after input ##4636## No one is going to do this, so the manufacturer has blocked access to this menu from your firmware. Alternatives: Install the Activity Launcher app from Google Play and search for Testing (com.android.settings.TestingSettings). ADB-Team: am start -n com.android.settings/.TestingSettings.

3.Use of ADB to force autoturn off

If previous methods failed, youโ€™ll have to connect to the device via ADB (Android Debug Bridge), a method that is suitable for power users and requires a computer with Xiaomi drivers installed, but it is guaranteed to turn off autorotation at the system level, including forced landscape mode in games.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with Windows/macOS/Linux
  • ๐Ÿ“ฑ USB-cable (preferably original)
  • ๐Ÿ”ง Included Debugging by USB phone-on
  • ๐Ÿ› ๏ธ Platform Tools (download from Google website)

Step-by-step:

  1. Turn on USB Debugging on your phone: Settings โ†’ About Phone โ†’ MIUI version (stick 7 times until you say โ€œYouโ€™re a developerโ€). Then go back to Settings โ†’ Additional โ†’ Developer and enable debugging.
  2. Connect the phone to the computer and confirm trust in the device (a pop-up window will appear on the smartphone screen).
  3. Open the command line (or Terminal) macOS/Linux) In the Platform Tools folder, type: adb shell settings put system accelerometer_rotation 0 adb shell settings put system user_rotation 0
  4. Reboot the device. The autorotor will be disabled at the system level.

๐Ÿ”น Make sure the debugging is done USB included

๐Ÿ”น Use the original cable (not all cables support data transmission)

๐Ÿ”น Check that Xiaomi drivers are installed (there should be no exclamation points in Device Manager)

๐Ÿ”น Make a backup copy of the data (in case of failure)

-->

To return the auto turn back, use the commands:

adb shell settings put system accelerometer_rotation 1


adb shell settings put system user_rotation 1

Standard settings of MIUI

Engineering menu (#4636###)

ADB-team

Apps from Google Play

I haven't tried it yet.-->

4. Autoturn control applications

If you don't want to go through the settings or use ADB, you can install a third-party app, and we tested 5 popular utilities and selected the two most reliable ones:

AnnexFunctionsConsReference
Rotation ControlForced orientation for individual applications Autoturn locking in Widget games for quick controlRequires availability-service (may conflict with MIUI)Google Play
Set OrientationPortrait/Album Mode Fixing Works Without Root Support for Automatic RulesAdvertising in the free versionGoogle Play

How to set up Rotation Control:

  1. Install the application and provide all the permissions requested (including Overlay on top of other applications).
  2. In the main menu, select Per-App Settings.
  3. Add apps that you want to block autoturn (like Chrome or Instagram).
  4. Choose a fixed orientation: Portrait (portrait) or Landscape (album).

๐Ÿ’ก

Third-party apps may conflict with optimizing MIUI for games (like Game Turbo), and if after installing the utility, you start to slow down the game, turn it off for gaming applications.

5. Disabling Autoturn for Individual Applications

Sometimes you only need to turn off autorotation in specific programs, such as YouTube or Google Maps. In MIUI 14/15, this can be done without third-party utilities:

Method 1: Through application settings

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the application you want (such as TikTok).
  3. Slip the permissions and find the screen orientation.
  4. Choose Fixed (Portrait) or Fixed (Album).

Method 2: Game Turbo (for games)

  • ๐ŸŽฎ Open the Settings. โ†’ Special facilities โ†’ Game Turbo.
  • ๐Ÿ“‹ Select a game from the list (for example, Call of Duty Mobile).
  • ๐Ÿ”„ Turn off the autoturn slider in the game.
  • ๐Ÿ”’ Enable orientation lock and select portrait.

๐Ÿ’ก

For YouTube and Netflix, it's better to use the Sensor Imitation mode in Rotation Control, which allows you to view videos in landscape mode, but block random turns.

Radical methods: disabling the accelerometer sensor

If you need to permanently turn off the autorotor (for example, due to a faulty sensor), you can do it at the system level. Note: these methods require root rights or unlocked bootloader!

Method 1: Magisk (for rooted devices)

  1. Install the Disable Accelerometer Rotation module from the Magisk repository.
  2. Reset the device.
  3. Check the work โ€“ the auto turn should be turned off at the system level.

Method 2: Editing build.prop

For power users: You can manually edit the build.prop file by adding a line:

ro.sf.hwrotation=0

But this method is fraught with loss of warranty and possible failures in the operation of the camera or AR-applications.

๐Ÿ’ก

Before editing build.prop, make sure to back up the file! a syntax error can lead to bootloop (a looped device reboot).

7. Frequent problems and their solutions

Even after turning off the auto-turn, Xiaomi users face a number of problems, and here are the most common ways to solve them:

Problem.Reason.Decision
The turn is turned off, but in games the screen still turns.Game Turbo Redefined System SettingsTurn off Autoturn in the game in Game Turbo settings or use ADB-Section 3 teams
After the MIUI update, the autoturn turned on againResetting settings after updateRepeat the shutdown via ADB or engineering menu
Apps (like Google Maps) donโ€™t turn into landscape modeFixed orientation in application settingsSet the Auto application in Rotation Control or MIUI settings

If nothing helps:

  • ๐Ÿ”„ Try resetting to factory settings (Settings) โ†’ The phone. โ†’ Resetting settings).
  • ๐Ÿ“ฅ Install custom firmware (such as Xiaomi.eu or Pixel Experience) where autorotation settings are more flexible.
  • ๐Ÿ› ๏ธ Contact the service center - the accelerometer sensor may be defective.

๐Ÿ’ก

On MIUI devices for POCO (e.g., POCO F4 GT), autorotation is controlled separately through Settings โ†’ Special Features โ†’ Additional settings โ†’ Autorotation Lock.

FAQ: Answers to Frequent Questions

โ“ Why some apps still turn off after turning off autorotor?
Some apps (like Google Camera or ARCore) ignore system settings and use their own orientation algorithms. To fix this, open the settings of a particular application and find Screen Orientation. Use Rotation Control to force orientation fixation. For games, turn off Autoturn in Game Turbo.
โ“ Can you turn off autoturn only for the desktop?
Yes, but standard MIUI means can't do that. Options: Use a third-party launcher (like Nova Launcher), where there's a fixed orientation setting. Set Rotation Control and create a rule for com.miui.home (a standard Xiaomi launcher). Note: on MIUI 15 with the new HyperOS Launcher, these methods may not work.
โ“ Will these methods work on Black Shark?
Black Shark devices (such as Black Shark 5 Pro) use a modified version MIUI It's called JoyUI. It's a different way of turning the autorotor: Open Settings. โ†’ Screen. โ†’ Turn off the Screen Rotate and the Game Rotate. Use Shark Space for fine-tuning. โ†’ Game settings โ†’ Screen orientation. ADB-Section 3 commands also work, but additional permission may be required in Settings โ†’ For developers โ†’ USB-debugging (safe mode).
โ“ Why, after using it, ADB The autoturn turns on itself?
This is due to the Adaptive Optimization function. MIUI, It resets some settings to save the battery. To avoid that, open the settings. โ†’ Battery and productivity โ†’ Adaptive optimization. Turn off the slider or add applications that don't need to reset to exceptions. ADB-command again and add --user 0 At the end of the book: adb shell settings put system accelerometer_rotation 0 --user 0
โ“ Is there a way to turn off the autoturn without a computer?
If you donโ€™t have access to a PC, try these options: ๐Ÿ“ฑ Use the Termux app and enter commands ADB Directly from your phone (Termux:API installation is required). ๐Ÿ”ง Install Rotation Control or Set Orientation from Google Play. ๐Ÿ”„ Include the Child Mode in MIUI โ€” For Termux, use the command: pkg install android-tools su settings put system accelerometer_rotation 0 Note: Su command requires root rights!