# Device orientation

> Tell Buttons how a panel is physically mounted so button and encoder mapping stays correct, and check the result after installation.

When a control panel needs to be mounted sideways, upside down, or at an angle, **Device orientation** (and, on a Stream Deck Studio, **Viewing Angle**) tells Buttons how it's actually mounted so button and encoder mapping (and on-screen icons) stay correct without you having to rebuild the layout.

## Before you begin

- The surface already adopted and attached to a Position, see [Add and attach a surface](/docs/buttons/v1.10/surfaces/add-and-attach-a-surface).
- A sense of the physical mounting angle you're installing at.

## Set device orientation

1. Open the surface's settings.
2. Set **Device orientation** to match how the unit is physically mounted: **Normal**, **Rotated clockwise**, **Upside-down**, or **Rotated counter clockwise**.

![The Device orientation list open in a surface's settings, offering Normal, Rotated clockwise, Upside-down and Rotated counter clockwise, each with an arrow icon](https://bitfocus.io/api/docs-media/file/device-orientation-menu.png?prefix=docs-media)

3. Select **Save**.

This option isn't available for every surface type: it only appears for physical hardware and third-party devices, not for a Custom Web View or an iPad Mini browser surface, since those render in whatever orientation their browser window already has.

Buttons handles the remapping for you: rotating the device reassigns which physical button or encoder corresponds to which cell in the Position's grid, and rotates each key's rendered icon so it displays upright: you don't need to rebuild the layout or re-place any elements after changing this setting.

Encoders follow the turned panel too:

- On a Stream Deck Plus or Plus XL, each encoder turns the **Location** button on the touch strip segment next to it, whichever way the panel is turned.
- On a Stream Deck Studio or Galleon K100 SD, each dial turns the **Location** button next to it: on a Studio, the top button at that dial's end of the panel, or the left one when the Studio is turned sideways.
- On a Plus or Plus XL, numbered assignments (**Enc 1**, **Enc 2** and so on) count the encoders in reading order as the panel is mounted: left to right, top to bottom.

<callout color="gray" title="Note">
  If you upgrade from Buttons 1.8.10 or earlier and have turned Stream Deck +, + XL or Studio panels, check the buttons set to **Location**. On a turned panel each encoder now turns the button next to it, so a Location button may now follow a different dial than before. Buttons with a fixed encoder number (**Enc 1** to **Enc 16**) aren't affected.
</callout>

For example, here is the same Router Section on a Stream Deck Studio, first with **Normal**:

![A Stream Deck Studio showing a Router Section the right way up: filter buttons and ATEM sources on the left, destinations and the Shuffle and Lock controls on the right](https://bitfocus.io/api/docs-media/file/sds-normal.png?prefix=docs-media)

And with **Upside-down**. Seen on the desk, the layout is turned round and every key reads upside down. Once the unit is mounted upside down, it reads the right way up again, with the same buttons in the same places for the operator:

![The same Stream Deck Studio set to Upside-down: the whole layout is turned 180 degrees, so the Shuffle and Lock controls are now on the left and every label is upside down](https://bitfocus.io/api/docs-media/file/sds-upside-down.png?prefix=docs-media)

## Set Viewing Angle (Stream Deck Studio only)

A Stream Deck Studio's screen-based keys can also be tilted to counteract the angle it's physically mounted at. Set **Viewing Angle** using its slider, from -45 to 45 degrees.

Viewing Angle only applies when **Device orientation** is **Normal** or **Upside-down**: the slider is disabled for **Rotated clockwise** or **Rotated counter clockwise**, since a sideways mount doesn't use the same tilt correction.

## Verify placement after mounting

Buttons doesn't have a dedicated per-button or per-encoder verification mode: confirm placement is correct the direct way:

1. Turn on **Identify device** in the surface's settings to confirm you're looking at the right physical unit, especially if several are mounted nearby.
2. Press a button or turn an encoder in each corner of the panel and confirm each one triggers what you expect from that position in the Position's layout.
3. If anything is mapped unexpectedly, double check **Device orientation** matches the unit's actual physical mounting rather than trying to fix it by rearranging elements in the Position: the layout itself doesn't need to change for rotation.

## Know the limits

Changing orientation automatically grows the Position's canvas if the rotated device no longer fits, but it doesn't shrink the canvas back down if you later rotate back to a smaller footprint, and it doesn't warn you if a new orientation would make this surface's footprint overlap another surface already placed on the same Position. If you rotate a device that shares a Position with others, double-check for overlap yourself afterward.

## If you get stuck

| What you see | What to try |
| --- | --- |
| Pressing a button in a corner doesn't do what you expect. | Confirm **Device orientation** actually matches how the unit is physically mounted: the remapping is automatic once this is set correctly. |
| **Device orientation** doesn't appear in the surface's settings. | This setting isn't available for Custom Web View or iPad Mini surfaces: they follow their browser window's own orientation instead. |
| **Viewing Angle** is greyed out. | It only applies when orientation is **Normal** or **Upside-down**: it's disabled for the two sideways rotations. |
| The Position's canvas looks larger than expected after rotating a device back. | Canvas growth from a rotation is automatic, but it doesn't shrink back down afterward: resize the Position manually if you need to reclaim the space. |
| Two surfaces on the same Position now visually overlap after a rotation. | This isn't caught automatically: reposition one of the surfaces' assigned areas yourself. |

## Where to go next

- [Add and attach a surface](/docs/buttons/v1.10/surfaces/add-and-attach-a-surface)
