TechBuzzPro

Screen Rotation on Sony Xperia XZ: Fixes That Work

· 5 min read · Windows & PC

In this article
  1. How Auto-Rotate Works on the XZ
  2. Quick Fixes to Try First
  3. Calibrating the Accelerometer
  4. When the Screen Gets Stuck in One Orientation
  5. Hardware Issues and When to Seek Repair
  6. Comparing with Other Xperia Models
  7. Frequently Asked Questions

Screen rotation problems on the Sony Xperia XZ are usually caused by a disabled auto-rotate setting, a stuck sensor, or a software glitch—not by broken hardware. In most cases, you can fix it in under a minute by checking the quick settings toggle, recalibrating the accelerometer, or restarting the phone. Below are the exact steps, along with background on how rotation works and what to do if the basic fixes fail.

How Auto-Rotate Works on the XZ

The Xperia XZ uses a built-in accelerometer and gyroscope to detect the phone's orientation. When you tilt the device, the sensors send data to the Android system, which then tells the display to switch from portrait to landscape or vice versa. This process is managed by the "Auto-rotate" setting, which can be toggled from the Quick Settings panel or the Display settings menu.

Unlike some older phones, the XZ does not have a physical rotation lock switch. Instead, the lock is purely software-based. If the toggle is off, the screen will stay fixed in whatever orientation it was in when you last rotated it, regardless of how you hold the phone.

Quick Fixes to Try First

Start with the simplest solutions, as they resolve most rotation issues without any technical know-how.

  • Check the Quick Settings toggle: Swipe down from the top of the screen with two fingers to open the full Quick Settings panel. Look for the "Auto-rotate" icon (a phone with arrows around it). If it's greyed out or off, tap it once to enable it.
  • Restart the phone: Press and hold the power button, then tap "Restart." This clears temporary software glitches that can freeze the sensor driver.
  • Remove the case and screen protector: Some thick cases or magnetic covers can interfere with the sensor or block the rotation detection. Try using the phone naked for a few minutes.
  • Update the system: Go to Settings > System > Software update and install any pending updates. Sony has released several Android security patches that fixed sensor-related bugs.

Calibrating the Accelerometer

If the toggle is on but rotation still doesn't work, the sensor may need recalibration. The XZ has a built-in calibration tool, though it's hidden in the service menu.

  1. Open the phone dialer and enter *#*#7378423#*#* (this opens the service menu).
  2. Tap Service tests.
  3. Select Accelerometer.
  4. Place the phone flat on a level surface and tap Calibrate.
  5. Wait for the "Pass" message, then press the back button to exit.

After calibration, test rotation in an app like the camera or Chrome. If the service menu doesn't open, the code may be disabled on your firmware; you can also try a third-party calibration app from the Play Store, but the built-in method is more reliable.

When the Screen Gets Stuck in One Orientation

Sometimes the screen freezes in landscape or portrait and won't switch back. This usually happens after using an app that forces a specific orientation, like a video player or a game. The fix is to force-stop that app or reboot the phone.

If the problem occurs only in certain apps, check the app's own settings. Many video players and e-readers have a rotation lock inside the app that overrides the system setting. Also, some apps are designed to be used only in portrait or only in landscape—that's normal behavior, not a fault.

Another common cause is the "Smart rotation" feature, which uses the front camera to detect your face and keeps the screen upright even when you're lying down. If this is enabled, it can prevent rotation when the camera can't see your face. To disable it, go to Settings > Display > Smart rotation and turn it off.

Hardware Issues and When to Seek Repair

If none of the software fixes work, the problem may be hardware-related. Common signs of a faulty accelerometer include:

  • Rotation works only when the phone is held in a specific position.
  • The screen rotates randomly without moving the phone.
  • The service menu test fails or shows a "Fail" message.

In these cases, the sensor itself may be damaged, or the ribbon cable connecting it to the motherboard may have come loose. This can happen after a drop or water exposure. The XZ has an IP68 water resistance rating, but that doesn't protect against all impacts. If you suspect hardware damage, take the phone to a professional repair service. Do not attempt to open the phone yourself, as this can void any remaining warranty and cause further damage.

Comparing with Other Xperia Models

The XZ series (XZ, XZ1, XZ2, XZ3) all use the same basic rotation mechanism, but the software implementation differs slightly. On the XZ1 and later, Sony added a "One-handed mode" that can temporarily lock the screen to a smaller size, which sometimes confuses users into thinking rotation is broken. On the XZ and XZ Premium, the quick settings toggle is the primary control. The steps in this article apply to all XZ models, but the exact menu names may vary slightly on newer versions of Android.

Frequently Asked Questions

Why is my auto-rotate greyed out?
The greyed-out toggle usually means the phone is in a power-saving mode or the "Keep screen on" setting is active. Go to Settings > Battery > Battery optimization and make sure the system UI isn't being optimized. Also check Settings > Display > Sleep to ensure the screen isn't set to turn off too quickly, which can interfere with sensor polling.

Will a factory reset fix rotation?
Yes, a factory reset will clear any corrupt system files that might be causing the issue. Before doing this, back up your data. After the reset, the phone will be as it was out of the box, and rotation should work if the problem is software-related. If it still fails after a reset, the hardware is likely at fault.

Can I force rotation on a per-app basis?
Yes, you can use the "Rotation Control" app or the built-in "Auto-rotate" setting in the display menu. Some third-party launchers also allow per-app orientation settings. However, on stock Android, the system-wide setting is the only native option.

Does a screen protector affect rotation?
Generally no, unless the protector is very thick or has a magnetic clasp (like a folio case). A standard glass or plastic screen protector doesn't block the accelerometer. But a magnetic case can trigger the Hall sensor, which is used for smart covers, and that can interfere with rotation detection.

Why does rotation work in some apps but not others?
Apps can declare a fixed orientation in their manifest. For example, many games are locked to landscape, and some reading apps lock to portrait. This is a design choice by the app developer, not a phone defect. You can't override it without using a third-party tool that forces rotation.