Flipping the screen on Androiddevices is a function that either pleases users or causes inconvenience. At one moment, the smartphone stubbornly refuses to rotate the image to landscape mode while watching a video, and at another, it persistently flips the screen at the slightest tilt while reading. The reasons for this behavior lie in system settings, sensors, or even the features of specific applications. This article will help you figure out how enable auto-rotation, disable it completely or force change orientation in difficult cases - from frozen interface to games with blocked rotation.
We will look at both standard methods through the settings menu, and hidden capabilities Androidincluding ADB commands and the engineering menu. Special attention is paid to problems with the accelerometer sensor - a common reason why the screen does not rotate, despite the settings being enabled. If your device from Samsung, Xiaomi, Google Pixel or another brand behaves inappropriately, here you will find a solution for your model.
Before proceeding with the settings, check whether the mode "Do not disturb" or "Battery saving" โsome manufacturers block auto-rotation in these modes. Also make sure that there is no physical damage on the screen (cracks, chips) that could interfere with the operation of the sensors.
1. Standard enable/disable auto-rotate
The most obvious way to control screen rotation is through quick settings panel the main settings menu. This method works on all devices with Android 5.0 and newer, including the latest versions Android 14.
To enable or disable auto-rotate:
- Method 1 (fast): Swipe down from the top edge of the screen to open the notification panel. Find the "Auto-rotate" icon (usually depicted as a phone with a circular arrow) and tap on it. If there is no icon, swipe again to expand the panel completely.
- Method 2 (through settings): Go to
Settings โ Display. Depending on the model, it may be calledScreen โ Screen rotationorAdvanced โ Auto-rotate.
On some devices (for example, Samsung Galaxy with a shell One UI), the option may be hidden deeper: Settings โ Additional features โ Movements and gestures โ Auto-rotate screen. Manufacturers like Xiaomi or Oppo sometimes add separate switches for specific applications (for example, only for gallery or YouTube).
- ๐ If the auto-rotate icon is inactive: The gray color of the icon means that the function is blocked by the system or application. Try closing the current application and check again.
- ๐ฑ On tablets: The option may be called
"Fixing orientation"and offer a choice between portrait and landscape by default. - ๐ง For Android 12+: In some firmware an option has appeared
"Allow rotation in applications"โit allows you to ignore rotation locking in certain apps.
โ ๏ธ Attention: On devices c MIUI (for example, Redmi Note 12after updating to Android 13 the auto-rotate icon may disappear from the notification panel. In this case, use the settings search (magnifying glass icon in the upper right corner of the settings menu) and enter the query "rotate".
2. Forced screen rotation through the engineering menu
If standard methods do not work and the accelerometer sensor is working, you can force change the orientation through engineering menu (Engineer Mode). This method is suitable for experienced users and requires caution - incorrect settings can disrupt the screen.
Instructions for most devices:
- Open the application "Phone" and enter the code:
##4636##(for some models Samsung โ#0#). - In the menu that opens, select
Testing โ Sensor Testing(or a similar section). - Find the item
Accelerometer Sensor(accelerometer sensor) and check its readings. If the values do not change when. tilt the device - the sensor is faulty. - To force rotation, return to the main engineering menu and select
Display โ Rotation. Here you can manually set the orientation (0ยฐ, 90ยฐ, 180ยฐ, 270ยฐ).
On devices MediaTek (many models Xiaomi, Realme) the engineering menu is opened with the code ##36446337##. For Qualcomm Snapdragon (for example, Google Pixel, OnePlus) โ ##7378423## (section Service tests โ Sensor test).
Open the engineering menu via code|Find the Sensor section Testing|Check the response of the values when tilted|Compare the readings with the reference ones (X: 0-10, Y: 0-10, Z: 9-10 in a horizontal position)-->
| Manufacturer | Engineering menu code | Section for rotation |
|---|---|---|
| Samsung | #0# or *#9900# |
Sensor โ Accelerometer |
| Xiaomi/Redmi | ##4636## |
Testing โ Display Rotation |
| Google Pixel | ##7378423## |
Service tests โ Sensor test |
| Huawei/Honor | ##2846579## |
Project Menu โ Background setting โ Sensor |
โ ๏ธ Attention: Changing parameters in the engineering menu without understanding the consequences can lead to incorrect operation of the sensors or even overheating of the deviceFor example, forcing a 180ยฐ rotation in some firmware blocks the touchscreen. If after the changes the screen stops responding to touches, reboot the device in safe mode (press the power button + zoom out). volume when turned on).
3. Unlocking rotation in games and applications
Many games (for example, PUBG Mobile, Genshin Impact) and applications (for example, YouTube, Google Chrome) block auto-rotation by default. This is done for convenience - so that the screen does not accidentally turn over during gameplay or reading. However, sometimes you need to force landscape mode.
Unlocking methods:
- ๐ฎ For games: In the settings of the game itself, find the section
"Controls" โ "Screen orientation". data-i="128">this Call of Duty: Mobile ThisSettings โ General โ Screen rotation. - ๐ For browsers: V Google Chrome open the menu (three dots) โ
"Site settings" โ "Screen orientation"and allow rotation for a specific website. - ๐บ For YouTube: Tap twice by video - this will force the orientation to switch. If it doesnโt work, check the application settings:
Settings โ General โ Auto-rotate in full screen mode. - ๐ง For all applications (root): Install the module Xposed Framework or Magisk with extension
App Settingsto force set the orientation for any APK.
On some devices (for example, Samsung Galaxy Tab S8) there is a function "Rotation blocking for applications"It allows. create a white list of apps where auto-rotation will always work, even if it is disabled in the system. Path: Settings โ Additional functions โ Laboratory โ Rotation blocking for applications.
If the game does not rotate the screen, try launching it in compatibility mode (for Android 10+). To do this, hold the game icon on the main screen โ "Application information" โ "Advanced" โ "Resize" โ select "Full screen mode".
4. Problems with the sensor: diagnostics and solutions
If the screen does not rotate despite the settings being turned on, the problem is most likely in the accelerometer sensor responsible for determining the orientation of the device. The causes of the malfunction range from software failures to physical damage (for example, after dropping the phone). data-i="157">accelerometer
How to check and restore the sensor:
- Software diagnostics: Install the application Sensor Test or Accelerometer Monitor from Google Play. They show current values โโfrom sensors. If the accelerometer is working properly, the numbers should change when the device is tilted.
- Calibration: Some devices (for example, Sony Xperia) have a built-in calibration utility. Path:
Settings โ About phone โ Diagnostics โ Sensor test. To Xiaomi use the code##6484##. - Reset settings: Go to
Settings โ System โ Reset settings โ Reset sensor settings. This will return the gyroscope and accelerometer to the factory settings. - Physical check: If the sensor does not respond at all, there may be problems with the cable or chip. In this case, only a service center will help.
On devices with Android 11+ there is a hidden function sensor emulationthat can temporarily replace a faulty accelerometer. To activate it:
adb shell settings put global force_allow_rotation_for_all_apps 1
This command unlocks rotation for all applications, ignoring sensor restrictions. You can cancel the action by replacing 1 with 0.
What to do if the sensor is physically damaged?
If after diagnostics it turns out that the accelerometer does not produce signals (the value is always 0.00), and calibration does not help, there are two options left:
1. Replacing the sensor - requires disassembling the device and soldering (cost from 1500 to 5000 rubles depending on the model).
2. Software bypass - using applications like Rotation Control or Set Orientationthat emulate rotation through software Disadvantage: such utilities require rights root or ADBand may also conflict with games.
โ ๏ธ Attention: On devices with Android 13 and newer Google has restricted access to sensors for third-party apps for security reasons. This means that apps for forced rotation (for example, Rotation Locker) may not work without root access. An alternative is to use ADB commandsas described above.
5. ADB commands for forced rotation control
For advanced users who are ready to work with Android Debug Bridge (ADB), there are commands that allow you to control screen rotation at the system level. This is relevant if:
- ๐ Auto-rotate is blocked by the manufacturer (for example, on some tablets Lenovo).
- ๐ ๏ธ You need to test the application in a non-standard orientation.
- ๐ The sensor is faulty, but a temporary solution is required.
Instructions for use ADB:
- Install ADB on your computer (download Platform Tools from the site Android Developers).
- Enable USB debugging on your phone:
Settings โ About phone โ Build number(tap 7 times) โ return toSettings โ System โ For developers โ Debugging USB. - Connect the device to the PC and execute in the terminal:
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:1
This command will enable auto-rotation at the system level. To disable:
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
To force the orientation (for example, landscape) use:
adb shell settings put system user_rotation 1
Where 1 โ this is:
0โstandard (portrait)1โrotation by 90ยฐ (landscape to the left)2โrotation by 180ยฐ (portrait upside down)3โrotation by 270ยฐ (landscape to the right)
ADB commands allow you to bypass manufacturer restrictions, but they only work until the device is rebooted. For a permanent effect, you need to create an autostart script or get root access.
6. Specific solutions for popular brands
Manufacturers often modify Android to suit your needs, adding unique functions or restrictions. Let's consider the features of controlling screen rotation on devices of different brands.
| Brand | Feature | Solution |
|---|---|---|
| Samsung (One UI) | There is no auto-rotate icon in the notification panel after updates. | Use the search in the settings for "rotate" or install the widget Good Lock โ QuickStar to customize the panel. |
| Xiaomi (MIUI) | Auto-rotate is blocked in reading mode or when the battery is low. | Disable Settings โ Battery โ Ultra Low Consumption Mode or add the application to exceptions. |
| Google Pixel | Rotating the screen may conflict with the Back gesture. | Disable Settings โ System โ Gestures โ Swipe sensitivity or update firmware. |
| Huawei/Honor (EMUI) | Separate rotation settings for the home screen and applications. | Go to Settings โ Intelligent assistance โ Motions โ Auto-rotate screen and configure each scenario. |
| ASUS ROG Phone | Game mode blocks auto-rotation to optimize performance. | Open Armoury Crate โ select game profile โ Screen settings โ Allow rotation. |
On devices Samsung DeX (desktop mode), auto-rotation works differently: the monitor screen is fixed in landscape orientation, and the smartphone can be rotated independently. To synchronize the orientation, go to DeX Settings โ Display โ Rotate Sync.
โ ๏ธ Attention: On some devices Xiaomi i Redmi s MIUI 14 a function has appeared "Smart rotation", which automatically blocks auto-rotation in certain applications (for example, in instant messengers). To disable it, go to Settings โ Display โ Smart rotation and deactivate the option.
7. Alternative methods: applications and widgets
If the built-in tools Android do not suit you, you can use third-party utilities. They are useful when:
- ๐ You need to quickly switch the orientation without going into. settings.
- ๐ฏ Forced rotation is required for a specific application.
- ๐ ๏ธ The accelerometer sensor is faulty, but a temporary bypass is needed.
Top 5 applications for controlling rotation:
- Rotation Control โ allows set rotation rules for each application separately. Requires ADB or root.
- Set Orientation โforcefully fixes the screen in any orientation (including upside down). Works without root, but requires configuration via ADB.
- Ultimate Rotation Control โadvanced settings with support for gestures and automatic rules (for example, rotation only when connected). charging).
- Tasker โ for advanced users. You can create a task that will enable auto-rotation when you launch a specific application.
- Nova Launcher โ some launchers allow you to add widgets for quick rotation control directly on the home screen.
Setting example Rotation Control:
- Install the application from Google Play.
- Connect the device to the PC and run the command:
adb -d shell pm grant com.example.rotationcontrol android.permission.WRITE_SECURE_SETTINGS
(replace com.example.rotationcontrol with the real application package).
- Open the application and select the applications for which you want to allow/block rotation.
For devices without root and ADB widget "Rotate screen" from Simple Mobile Tools. It adds a button to the home screen to quickly switch between portrait and landscape modes.
8. What to do if the screen is frozen upside down
The situation when the screen suddenly turns upside down and freezes in an awkward orientation (for example, upside down) is familiar to many. The reasons are different: from a malfunction of the sensor to an application conflict. Here is an algorithm for restoring normal display:
Method 1: Soft reboot
- Press the button power + volume up for 10-15 seconds until the device reboots.
- If the screen responds to touches, try swiping the notification panel and enable/disable auto-rotate.
Method 2: Forced reset via Safe Mode
- Turn off the device.
- Hold down the power button, and when the logo appears, hold decrease volumeuntil safe mode loads.
- Check whether rotation works. If so, the problem is in one of the installed applications. Safe Mode check if the rotation works. If yes, the problem is in one of the installed applications. Uninstall recently installed apps.
Method 3: ADB commands (if the screen responds to USB)
adb shell settings put system user_rotation 0
This command will reset the orientation to standard (portrait).
Method 4: Hard reset (if all else fails)
- Turn off the device.
- Hold power + volume up to enter Recovery Mode.
- Select
Wipe cache partition(does not delete data, only cache). - Reboot the device.
If the screen is upside down and does not respond to touches, but USB debugging was enabled previously, connect the device to the PC and use the command adb shell input tap x yto emulate a tap to coordinates auto-rotate icon (for example adb shell input tap 500 50 for the top panel).
โ ๏ธ Attention: On some devices (for example Samsung Galaxy Z Fold), screen rotation may conflict with multitasking. If, after resetting the orientation, applications begin to close, disable the function Settings โ Additional features โ Laboratory โ Optimizing multitasking.
FAQ: Frequently asked questions about screen rotation
โ Why does auto-rotate work in some applications, but not in others?
It depends on the settings of the specific application. For example, Instagram and TikTok block auto-rotation for ease of viewing content in portrait mode. To force rotation:
- Check your application settings (usually under "Display" or "Playback").
- Use ADB command to ignore restrictions:
adb shell settings put global hidden_api_policy 1.
Some devices (for example Huawei) have a "Forced rotation" function, which is activated by long-pressing the auto-rotate icon in the notification panel.
โ How to disable auto-rotation only for the main screen?
On most devices this is not possible through standard settings, but there is workarounds:
- Use a launcher that supports fixed orientation (for example, Nova Launcher โ
Settings โ Home screen display โ Rotation). - Install an application Tasker and create a task that will disable auto-rotation when returning to the main screen.
- On Samsung s One UI 5.0+ there is an option
Settings โ Home screen โ Fix orientation.
โ Why did Android stop working after updating auto-rotate?
This is a common problem when switching to new versions of the OS. Reasons:
- Resetting sensor settings. Solution: go to
Settings โ System โ Reset โ Reset sensor settings. - Conflict with the manufacturer's shell. Solution: check updates for system applications in Google Play.
- Changing the permission policy. Solution: give permission to access sensors for applications that control rotation (
Settings โ Applications โ Permissions โ Sensors).
If the problem persists, try rolling back to the previous firmware version or wait for a patch from the manufacturer.
โ Is it possible to set up auto-rotate on a schedule?
Yes, applications are suitable for this:
- MacroDroid โ allows you to create rules like โenable auto-rotate with 18:00 to 23:00."
- Tasker โmore flexible settings, including binding to geolocation or Wi-Fi connection.
- Automate โvisual automation designer with templates for controlling orientation.
Example macro in MacroDroid:
- Trigger:
Time โ From 20:00 to 22:00. - Action:
Auto-rotate โ Enable. - Limitation:
Only when screen is on(only when the screen is on).
โ How to check if the accelerometer sensor is working?
There are several ways:
- Through the engineering menu: Enter the code for your model (see table above) and check the readings
Accelerometer SensorWhen tilting