How to turn the screen on Xiaomi: from simple settings to hidden features

Modern Xiaomi and Redmi smartphones are equipped with advanced accelerometers and gyroscopes that automatically change the orientation of the image depending on the position of the device in space. However, users often face a situation when the screen refuses to turn, or, conversely, the image is fixed in an uncomfortable position, this can occur in standard applications such as a gallery or a browser, and in specific use scenarios.

There are several levels of display orientation control, from the banal locking in the notification curtain to the deep system settings available through the engineering menu. Understanding how these mechanisms work allows you not only to turn on the function, but also to eliminate failures when sensors stop responding to hand movements. In this article, we will discuss all the methods of controlling the turn of the screen, including those that are not known to all owners of smartphones based on MIUI.

Before we get to the tricky stuff, we need to eliminate software locks and check the basic functionality of the system. Often the problem isn't with the sensor breakdown, but with the settings of a particular application or activated zoom function. Let's figure out how to get your smartphone to respond to the turns of the case correctly.

Basic methods of display orientation control

The most obvious and most commonly used way to control the turn of the screen is in the control center. On modern versions of the HyperOS shell and MIUI 12-14, this element is placed in the upper right corner of the notification curtain. The icon looks like a lock with a circular arrow around it. If the indicator is on, the auto-rotation function is locked, and the screen will remain in portrait orientation regardless of the position of the smartphone.

However, even when the feature is unlocked, the screen may not rotate in some applications, because app developers are forced to specify the orientation of the interface. For example, many banking applications or social media clients, such as Instagram (in the news feed), rigidly fix vertical mode, in which case the system settings are powerless, since the application dictates its own rules for displaying content.

Forcing applications that formally support landscape mode but do not respond to the sensor, you can use built-in accessibility tools. In the system settings, there is an option to ignore application requests for orientation fixing, this is especially useful when reading documents or browsing the web where the font becomes too small in vertical mode.

⚠️ Warning: Forced rotation of some applications may lead to incorrect display of control buttons or overlapping interface elements, making the use of the program inconvenient.

If the standard lock is removed and the screen is still not responding, it is worth checking whether the one-hand mode or other ergonomics functions that can intercept the control of the sensors are turned on, and it is also worth remembering that in Do Not Disturb or when navigation is running, the system can ignore corners so as not to distract the driver or user in the dark.

πŸ’‘

The autorotation function is controlled by priority: system locking has the highest priority, then the application settings are set, and only then the accelerometer readings.

Configuring sensors through the CIT engineering menu

When software switches fail and the screen behaves chaoticly or ignores the device’s position, hardware diagnostics are required, and Xiaomi and Poco have a custom CIT (Customer Information Test) engineering menu that is accessed through a set of code in the Phone app.

To enter the diagnostic menu, you need to dial ##6484#. Once you enter the last digit, the screen will automatically switch to testing mode. Here is a complete list of all the modules of the smartphone. We are interested in the section related to the accelerometer and gyroscope. In different versions of firmware, it can be called Accelerometer, Gyroscope or simply Sensor.

β˜‘οΈ Sensor diagnostics

Done: 0 / 5

Inside the accelerometer, you'll see the current coordinates on the X, Y and Z axes. When you turn the phone, the numbers should change. If the values are still or change in jerks, the sensor needs to be calibrated. To do this, the test menu usually has a Calibration button. The process requires you to put your smartphone on a perfectly flat horizontal surface and press the confirmation button. The system will determine "zero" and adjust the values.

It's important to understand the difference between an accelerometer and a gyroscope, and the accelerometer responds to linear acceleration and gravity, and it detects where it's down and where it's up. VR-A failure in any of these components may cause the screen to not rotate or to do so with a delay.

Once calibrated successfully, the system can request a reboot, which is a must, because new sensor correction factors are written to nonvolatile memory and only applied after the system starts. If the calibration does not work and the test shows Fail, a physical failure of the module that requires replacement at the service center is likely.

Using applications for forced rotation

Android and MIUI don't always allow you to flexibly manage your orientation for each application, but they come from Google Play, and the most popular and functional solution is Rotation Control, or its equivalents, such as Ultimate Rotation Control, which creates a control layer on top of the system that compels you to target.

The main advantage of these applications is that you can create profiles, and you can set up automatic screen rotation only for a particular application, like a video player or a browser, leaving the rest of the programs in the standard mode, which solves the problem when one application breaks the orientation throughout the system.

Installation of such gates requires special permissions, the application must access the "Draw over other applications" and, in some cases, the right to use special features (Accessibility), which is necessary so that the program can intercept the system commands about the rotation of the screen and replace them with its own.

⚠️ Warning: Granting access rights to third-party apps can reduce device security. Use only proven high-rated utilities and lots of downloads.

Also, some video player apps, like MX Player or VLC, have their own built-in turn settings that work independently of the system. If you're watching a video and it's not displayed correctly, first check the settings of the player itself, not the system. There are often buttons for forced framing and rotation of the video stream.

Hidden settings and opportunities for developers

For advanced users who don’t have enough standard tools, Android offers access to hidden settings through the Developer Menu. To activate this section, you need to quickly click seven times on the build number in the About Phone section. Once the β€œYou’ve become a developer” notification appears, a new item will appear in the settings menu.

Inside the developer menu, we're interested in a section that deals with emulating secondary displays or coercively changing activity behavior, but a more effective method is to use ADB (Android Debug Bridge) commands, and by connecting the phone to a computer, you can send a command that will cause the system to ignore the orientation of a particular application.

The command to force the inclusion of landscape mode for all applications is as follows:

adb shell settings put system user_rotation 1

And to return to portrait mode:

adb shell settings put system user_rotation 0

Value of parameter user_rotation can be taken to 0 before 3, where 0 β€” It's a portrait mode, 1 β€” landscape, 2 β€” flipped 3 β€” Using these commands requires caution, because incorrect values can make the interface unreadable before resetting.

How to turn off the developer menu?
To hide the developer menu after use, go to Settings -> Additional Settings -> Developer and turn off the top switch. The menu will disappear from the settings list, but will remain available after you reactivate.

There is also a Don't Keep Activities or similar rotation locks in specific developer builds feature on the developer menu, but it's more commonly used to test app behavior when changing orientations than for everyday use, and enabling such options can lead to constant re-creation of application windows, which consumes battery life.

Problems with turning in specific applications

Often, users wonder why the screen doesn't turn on YouTube, TikTok or Instagram. In the case of TikTok and short videos on Instagram Reels or YouTube Shorts, the situation is unequivocal: these formats are originally designed for vertical viewing. Developers block horizontal mode to preserve the integrity of the composition and the mechanics of interaction (swipes up and down).

In YouTube, for regular videos, horizontal mode should be turned on automatically when you turn your phone. If this does not happen, check if the Picture-in-Picture function or background playback is enabled, which can block the rotation of the main window. It is also worth clearing the app cache, since accumulated temporary files can cause interface malfunctions.

On social networks like VK or Telegram, the turn of the screen often depends on the type of content being opened. The photos in the gallery inside the app can rotate, while the news feed can't. This is a routine behavior embedded in the design code of the apps. Attempts to "cheat" the system here rarely lead to a convenient result, since the layout is simply not adapted to the wide screen.

πŸ“Š Which app do you most often not have a screen rotation?
YouTube
gallery
browser
Social media
Other

If the problem is only seen in one particular app, try updating it to the latest version via Google Play or GetApps. Developers regularly release patches that fix orientation bugs, especially after major updates to the Android version.

Table of codes and rotation parameters

To organize information about the commands and parameters that control orientation, it is convenient to use a pivot table, which will help you quickly navigate the values that are used in the engineering menu, ADB-commands or third-party applications.

Parameter/CodeMeaningDescription of actionWhere applicable
user_rotation = 00Portrait mode (vertically)ADB, Root Access
user_rotation = 11Landscape mode (horizontally)ADB, Root Access
##6484##-Entrance to CIT's engineering menuPhone (dial)
sensor_calibrate-Calibration of position sensorsEngineering menu
auto-rotatetrue/falseTurning on/off autoturnSystem settings

Use of the ADB-commands require the connection of the phone in debugging mode USB. It's a more complex method, but it solves problems that you can't fix through a normal interface. For example, if the touch screen is partially broken and you can't press the turn unlock button, the computer command will be the only way out.

The settings in the table are relevant for most Android 10 and higher devices. On older firmware versions, some system keys may have different names, but the logic of operation (0 vertically, 1 horizontally) has remained unchanged over the years of the platform's development.

Frequent questions and troubleshooting

Despite the detailed instructions, users often have specific questions about unique use cases or rare bugs, and here are the answers to the most popular ones that will help complete the setup of your device.

Why does the screen turn on its own without my actions?
A random turn of the screen usually indicates a malfunction of the proximity sensor or accelerometer. This often happens if a thick protective film is glued to the screen to cover the sensor, or if dust has accumulated in the charging connector, creating a false connection of accessories, which changes the profile of use, and the cause may also be a software bug in a particular application that incorrectly requests a change of orientation.
Can you make sure that the screen does not turn over when charging?
In standard MIUI settings, this feature is not available, but it can be implemented through automation scenarios (e.g. MacroDroid app or built-in scripts in the Tools folder). You can create a rule: "If power is connected and the screen is on -> Lock autorotation." This is convenient when the phone is on the stand while charging.
The screen flipped and the sensor stopped responding to touches in the right places – what to do?
This is a critical error in calibrating the touchscreen along with the matrix. Try rebooting the device. If the problem persists, log into the engineering menu (CIT code) and run the Touchpanel test. If the test shows a failure or points are pressed in the wrong place, you will need to calibrate the touchscreen or, in the worst case, replace the display module.
Does the β€œin pocket” mode affect the operation of the auto turn?
Yes, Pocket mode uses a proximity sensor to block random taps, so if the sensor is contaminated or covered with a case, the system can think that the phone is in the dark or in your pocket, and block the change in orientation of the screen, even if you are actively waving the device.
How to return all sensor settings to factory?
The most reliable way is to perform a full reset (Wipe Data) through the Recovery menu. However, before you try just recalibrate sensors through the CIT menu. Reset all settings through Settings -> About Phone -> Resetting will also return the sensor configuration to its original state by removing any user calibrations.

πŸ’‘

If after all the manipulations the screen continues to behave strangely, try to start the phone in Safe Mode. If it turns correctly, then one of the applications you installed is causing the problem.

Controlling the screen orientation on Xiaomi is a balance between the convenience of automation and the need for manual control. Understanding how hardware sensors and software constraints interact allows you to effectively solve most problems without going to the service center.