# how to rotate display

**URL:** https://dietpi.com/forum/t/how-to-rotate-display/6437
**Category:** Troubleshooting
**Created:** [18 March 2022 20:47 UTC](https://dietpi.com/forum/t/how-to-rotate-display/6437 "2022-03-18T20:47:10Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [3 July 2022 17:42 UTC](https://dietpi.com/forum/t/how-to-rotate-display/6437/7 "2022-07-03T17:42:19Z")

</div>

Since `raspi-config` does not have an explicit display rotation option, how did you achieve it?

The `display_hdmi_rotate` setting works with legacy display driver only, default on RPi models prior to RPi 4 on Buster and no default on any RPi models since Bullseye.

With KMS (modern display driver), rotation for X applications (Kodi on Buster) to be done manually with `xrandr`:

```bash
xrandr --output HDMI-1 --rotate normal
xrandr --output HDMI-1 --rotate left
xrandr --output HDMI-1 --rotate right
xrandr --output HDMI-1 --rotate inverted

```

Although I remember there was a way to achieve it with `xorg.conf` settings.

For console it can be done via `/boot/cmdline.txt`, adding e.g.:

```auto
video=HDMI-A-1:1920x1080M@60,rotate=90,reflect_x`

```

But I’m not 100% sure whether this works for KMS applications like Kodi on Bullseye.

---

_[View the full topic](https://dietpi.com/forum/t/how-to-rotate-display/6437)._
