Rotating the screen on Android is a seemingly elementary function, but even it can cause a headache. Either the application refuses to rotate in horizontal mode, then the gyroscope sensor glitches after the phone falls, or the system stubbornly blocks auto-rotation in instant messengers. In this article we will look at all possible ways to control screen orientation - from standard settings to hidden commands for developers and bypassing restrictions in games.

We will pay special attention Android 12-14where Google has radically redesigned the auto-rotate logic by adding adaptive mode and integration with gestures. We will also consider unique problems of smartphones Samsung, Xiaomi i Realmewhere manufacturers override the standard behavior of Android. If your phone stubbornly ignores turns or, on the contrary, rotates spontaneously, here you will find a solution.

1. Standard auto-rotate setting via the notification curtain

The most obvious way is to use the quick settings panel. On most smartphones, the auto-rotate icon (๐Ÿ”„) is located in the first row. But there are nuances:

  • ๐Ÿ“ฑ Stock Android (Pixel, Motorola): swipe down twice โ†’ tap on Auto-rotate. In Android 13+ the icon can be hidden under โ‹ฏ (expand the panel).
  • ๐Ÿค– Samsung One UI: swipe down โ†’ find Portrait/Auto (sometimes signed as Screen mode). On Galaxy S23 and newer, the icon may blink if the sensor is blocked.
  • ๐Ÿงฉ Xiaomi/Redmi/POCO: swipe down โ†’ Auto-rotate or Rotation. On MIUI 14+ added "Adaptive rotation" mode (works only in supported applications).

If the icon is not in curtain:

  1. Expand the panel completely (swipe down + another swipe).
  2. Click โš™๏ธ Edit (or โœ๏ธ).
  3. Find Auto-rotate in the list of inactive ones and drag it to the top.
โš ๏ธ Attention: On some smartphones Huawei (EMUI 12+) auto-rotate is disabled by default to save battery. Turn it on. data-i="74">Settings โ†’ Battery โ†’ Performance mode Settings โ†’ Battery โ†’ Performance Mode.
๐Ÿ“Š What brand of your smartphone?
Samsung
Xiaomi/Redmi/POCO
Google Pixel
Huawei/Honor
Other

2. Setting rotation in the system menu (for all versions of Android)

If quick settings do not work, check system parameters. The path may differ depending on the shell:

ManufacturerPath to settingsFeatures
Stock AndroidSettings โ†’ Display โ†’ Auto-rotate screenIn Android 14 a switch has been added for "Allow rotation in landscape mode for the home screen."
Samsung One UISettings โ†’ Screen โ†’ Auto-rotate screenThere is a separate toggle switch for game mode (Settings โ†’ Device care โ†’ Games).
Xiaomi MIUISettings โ†’ Screen โ†’ Auto-rotateIn MIUI 14+ there is an option "Adaptive rotation" (works only in YouTube, Chrome i etc.).
Realme/Oppo ColorOSSettings โ†’ Convenience โ†’ Auto-rotate screenCan be configured exceptions for applications (for example, block rotation in WhatsApp).

On Android 10-11 Some firmware has a hidden option Rotate by 180ยฐ (inverted screen). To enable it:

Settings โ†’ System โ†’ Gestures โ†’ Screen rotation โ†’ Enable "Allow rotation by". 180 degrees"
โš ๏ธ Attention: On smartphones Sony Xperia with an aspect ratio 21:9 auto-rotate may not work correctly in some games (for example PUBG Mobile). The solution is to force rotation through Developer settings.

3. Forced screen rotation through developer mode

If the gyroscope sensor is broken or the system ignores rotations, you can force orientation through the developer menu This method works even on rooted ones (root) devices.

First activate developer mode:

  1. Go to Settings โ†’ About phone.
  2. Find Build number and tap on it 7 times (a notification โ€œYou have become a developerโ€ will appear).
  3. Return to the main settings menu โ†’ a new section will appear For developers.

Now set the orientation to fixed:

  • ๐Ÿ”ง Open Settings โ†’ System โ†’ For Developers.
  • ๐Ÿ“ฑ Scroll to block Gestures or Enter.
  • ๐Ÿ”„ Find the option Forced screen rotation (or Fixed orientation).
  • ๐ŸŽฏ Select the desired mode: Landscape (horizontal), Portrait (vertical) or Reverse landscape (upside down).

Activate developer mode (7 taps by build number)

Disable auto-rotate in the notification shade

Select fixed orientation in settings developer

Reboot the phone to apply the changes-->

This method is useful for:

  • ๐ŸŽฎ Games that do not support auto-rotation (for example Genshin Impact in portrait mode).
  • ๐Ÿ“บ Watching videos in applications without landscape mode (for example, TikTok).
  • ๐Ÿ”ง Testing the application interface in different orientations.
โš ๏ธ Attention: On some smartphones Huawei (Kirin 9000+), forced rotation may cause graphics artifacts in games with support HDR. In this case, return the settings to their original state.

4. Screen rotation in individual applications (YouTube, games, instant messengers)

For example, Instagram and WhatsApp fix the vertical orientation, and YouTube can ignore rotations in the mini-player. Here's how to get around the restrictions:

๐ŸŽฅ YouTube (forced landscape mode)

If the video does not expand to full screen:

  1. Start the video.
  2. Expand it to full screen (tap on the icon โ–ก).
  3. Do double tap across the screen while simultaneously rotating the phone.
  4. If it doesnโ€™t work, turn on Auto-rotate in the curtain after starting the video.

๐ŸŽฎ Games (PUBG, Call of Duty, Genshin Impact)

In mobile games, auto-rotation is often disabled for gameplay stability. Solutions:

  • ๐Ÿ•น๏ธ In the game settings, find the section Controls โ†’ Screen Orientation (for example, in PUBG Mobile this Settings โ†’ General โ†’ Auto-rotate).
  • ๐Ÿ“ฑ For Genshin Impact: go to Settings โ†’ Graphics โ†’ Allow screen rotation.
  • ๐Ÿ”ง If there is no option, use forced rotation through developer mode (see section 3).

๐Ÿ’ฌ Messengers (WhatsApp, Telegram, Viber)

In messengers, auto-rotation is usually blocked for ease of typing. Workarounds:

  • ๐Ÿ“ฑ V Telegram: open any video or photo โ†’ screen rotation will be unlocked.
  • ๐Ÿ”„ V WhatsApp: enable Auto-rotate after opening the chat (sometimes you need to restart the application).
  • ๐Ÿ› ๏ธ For Viber: use rotate gesture โ€” hold the phone horizontally and swipe up from the bottom edge.
Why do messengers block auto-rotation?

Most messengers (WhatsApp, Viber, Messenger) fix the vertical orientation in two reasons:

1. Ease of typing โ€” the keyboard takes up half the screen in landscape mode, which is inconvenient for long dialogues.

2. Optimization interface โ€”in landscape mode it is more difficult to place a list of chats, action buttons and media attachments.

The exception is Telegram, where rotation is unlocked when viewing media files.

5. Solving problems with the rotation sensor (if the screen does not rotate)

If auto-rotate is turned on, but the screen does not respond to rotations, the problem may be:

  • ๐Ÿ”ง Software failure (for example, after an update).
  • ๐Ÿ“ฑ Physical breakdown of the sensor (after a fall or hit moisture).
  • ๐Ÿ› ๏ธ Application conflict (for example, Tasker or Nova Launcher blocking rotation).

Diagnostics and solutions:

ProblemCauseSolution
The screen does not rotate at allThe gyroscope sensor is disabled or brokenCheck through #0# (sensor test) or use CPU-Z for diagnostics.
Rotation only works in some applicationsConflict with application settingsClear cache of the problematic application (Settings โ†’ Applications โ†’ [Application] โ†’ Memory โ†’ Clear cache).
The screen rotates spontaneouslySensor calibration failureCalibrate the sensor through the engineering menu (##4636## โ†’ Testing sensors).
Turning only works in one directionDamage to the sensor cableThe device must be disassembled and the cable replaced (contact the service center).

If the sensor is physically functional, but the rotation does not work:

  1. Reboot the phone in safe mode (hold the power button โ†’ Safe Mode). If the rotation works, the third-party application is to blame.
  2. Reset settings only for applications (Settings โ†’ System โ†’ Reset โ†’ Reset application settings).
  3. Update firmware via Settings โ†’ System โ†’ Software update.
๐Ÿ’ก

If auto-rotation stops working after you drop the phone, but the other sensors (accelerometer, compass) are working, the problem is most likely in software calibrationTry to calibrate the sensors through the app Sensor Test (available on Google). Play).

6. Rotating the screen via ADB (for advanced users)

If standard methods do not help, you can force orientation via Android Debug Bridge (ADB). devices (for example, in kiosk mode).

Instructions for Windows:

  1. Download ADB Tools and extract to a folder C:\adb.
  2. Enable USB debugging on your phone (Settings โ†’ For developers โ†’ USB debugging).
  3. Connect your phone to the PC and open Command line in the folder adb.
  4. Enter the commands one by one:
    adb devices

    (your device should appear)

    adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:1

    (enables auto-rotate)

    adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1

    (locks landscape orientation)

To return standard behavior, run:

adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0

Additional commands for controlling rotation:

  • adb shell settings put system accelerometer_rotation 1 โ€” enable auto-rotation.
  • adb shell settings put system user_rotation 3 โ€” fix the inverted mode (180ยฐ).
  • adb shell settings get system user_rotation โ€” check the current orientation.
โš ๏ธ Attention: ADB commands may conflict with manufacturer settings (for example, on Samsung or XiaomiAfter using ADB, check the operation of the sensors via #0#.
๐Ÿ’ก

ADB allows you to bypass firmware restrictions, but changes are reset after. reboot.For a permanent effect, use Tasker or MacroDroid to automatically execute commands when the system starts.

7. Applications for controlling screen rotation

If you need to flexibly configure rotation for individual applications or automate the process, use third-party utilities. options:

  • ๐Ÿ”„ Rotation Control (free, without root):
    • Allows fix orientation for each application separately.
    • Supports reverse rotation (180ยฐ).
    • Works through Accessibility Service (does not require superuser rights).
  • ๐Ÿ“ฑ Set Orientation (requires root):
    • Forces orientation for any process.
    • Can emulate a rotation sensor (useful if the gyroscope breaks down).
  • ๐Ÿค– Tasker + Plugin "AutoInput" (for automation):
    • For example, you can configure automatic rotation in YouTube and blocking in messengers.
    • Requires configuration, but gives maximum flexibility.

How to configure Rotation Control:

  1. Download the application from Google Play.
  2. Open the application and grant access to Accessibility.
  3. In the main menu, select Per-App Settings.
  4. Find the application you need (for example, Chrome) and set the rotation mode (Auto-rotate, Portrait, Landscape).
  5. Activate the service in the notification shade (an icon will appear ๐Ÿ”„).
How to trick applications that block rotation?

Some applications (for example, Netflix or banking clients) programmatically block landscape mode. To get around this:

1. Use Rotation Control with the "Force rotation" option.

2. Enable developer mode and activate "Do not block orientation" (Settings โ†’ For developers โ†’ Do not block screen orientation).

3. For rootdevices: edit the file /data/data/[package_name]/shared_prefs/[package_name]_preferences.xml, find the parameter screen_orientation and change its value to sensor.

8. Common errors and their solutions

Let's look at typical problems and specific solutions for them:

ErrorPossible reasonSolution
The screen rotates on its ownSensor failure or application conflictCalibrate the sensor via #0# or remove recently installed applications.
Rotation only works in one directionThe gyroscope cable is damagedContact the service center (repair costs 1,500โ€“3,000 rubles).
The screen does not rotate in gamesGame settings or firmware restrictionsUse Forced rotation via ADB or developer settings.
After the update, rotation stopped workingReset settings sensorReset settings via Settings โ†’ System โ†’ Reset โ†’ Reset settings (does not delete data!).
In YouTube video not unfoldsApplication limitation or cache failureClear the cache YouTube or use the browser version (Chrome in "For PC" mode).

If none of the methods helped, check:

  • ๐Ÿ”ง Launcher settings: some shells (for example, Nova Launcher) block home screen rotation.
  • ๐Ÿ“ฑ Power saving mode: on Samsung and Huawei it can disable sensors.
  • ๐Ÿ› ๏ธ Antivirus or optimizer: Clean Master, DU Speed Booster and similar applications sometimes block system services.
๐Ÿ’ก

On smartphones Google Pixel s Android 14 there is a hidden function "Adaptive rotation" - it automatically detects when you need to rotate the screen (for example, when watching a video, but not in instant messengers). To enable it, go to Settings โ†’ Display โ†’ Auto-rotate โ†’ Adaptive rotation.

FAQ: Frequently asked questions about rotating the screen on Android

๐Ÿ” Why does auto-rotate not work in a specific application (for example, Instagram)?

Many applications (including Instagram, WhatsApp, TikTok) programmatically block rotation for user convenience. Solutions:

  • Use Rotation Control to force unlock.
  • Enable developer mode and activate the option Not lock screen orientation.
  • For Instagram: open the story (story) - in this mode, rotation is unlocked.
๐Ÿ“ฑ How to enable 180 degree rotation (upside down screen)?

On most smartphones, this function is disabled by default. To activate it:

  1. Enable developer mode (7 taps by build number).
  2. Go to Settings โ†’ System โ†’ For developers.
  3. Find the option Allow 180ยฐ rotation or Reverse landscape orientation.
  4. If there is no option, use the ADB command:
    adb shell settings put system user_rotation 2

    (where 2 is reverse landscape orientation).

On Samsung this function can be called Rotate 180 degrees and located in Settings โ†’ Screen โ†’ Advanced.

๐Ÿ”ง Is it possible to configure auto-rotation only for some applications?

Yes, they are suitable for this:

  • Rotation Control โ€” allows you to set rules for each application separately.
  • Tasker โ€” create a task that enables auto-rotation when opening a specific application.
  • On Xiaomi (MIUI) and Oppo (ColorOS) there is a built-in function Exceptions for auto-rotation.

Example of setting in Rotation Control:

  1. Open the application and grant access to accessibility features.
  2. Go to Per-App Settings.
  3. Select the application (for example, Google Maps) and install Auto-rotate.
  4. For WhatsApp install Portrait (rotation lock).
๐ŸŽฎ How to make the game (PUBG, Genshin Impact) work in horizontal mode?

If the game ignores auto-rotation:

  • Check the game settings: usually there is an option Screen orientation in the section Management or Graphics.
  • Use force rotation through developer mode (see section 3).
  • For Genshin Impact: go to Settings โ†’ Graphics โ†’ Allow screen rotation.
  • If the game still does not rotate, try Rotation Control with the option Force landscape.

On Samsung check additionally Settings โ†’ Device care โ†’ Games โ†’ Game mode - there may be a separate toggle switch for orientation.

โš ๏ธ After the phone fell, auto-rotation stopped working. What to do?

Most likely, gyroscope or its cable is damaged. Diagnostics:

  1. Check the operation of the sensor through the engineering menu:
    • Dial #0# โ†’ select Sensor.
    • If the sensor does not respond to turns, it broken.
  • Install the application Sensor Test from Google Play and check the readings Accelerometer and Gyroscope.
  • If the sensor does not work:
    • Contact the service center (replacing the gyroscope costs 2 000โ€“5,000 โ‚ฝ).
    • Temporarily use Set Orientation (requires root) to emulate rotation.

    If the sensor works, but rotation does not turn on:

    • Reset settings via Settings โ†’ System โ†’ Reset โ†’ Reset all settings.
    • Update the firmware (a crash may have damaged the system files after the crash).