# How to rotate hyperpixel 4R with adafruit cyberdeck hat - console and X?

**URL:** <https://forums.pimoroni.com/t/how-to-rotate-hyperpixel-4r-with-adafruit-cyberdeck-hat-console-and-x/23767>\
**Category:** Support\
**Created:** [January 8, 2024, 6:04pm UTC](https://forums.pimoroni.com/t/how-to-rotate-hyperpixel-4r-with-adafruit-cyberdeck-hat-console-and-x/23767 "2024-01-08T18:04:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raygeeknyc](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/raygeeknyc/32/10464_2.png) [@raygeeknyc](https://forums.pimoroni.com/u/raygeeknyc)\
**Post date:** [January 8, 2024, 6:04pm UTC](https://forums.pimoroni.com/t/how-to-rotate-hyperpixel-4r-with-adafruit-cyberdeck-hat-console-and-x/23767/1 "2024-01-08T18:04:48Z")

</div>

Hi  
Working in console but not in X

I have a Raspberry Pi 400 with a new stock image and am using an AdaFruit Cyberdeck HAT to attach a HyperPixel 4", Rectangular, no touch

I boot to a console which rotates properly but when I enter X using startx the rotate setting seems to be ignored

I’ve added these to my config.txt

```auto
dtoverlay=vc4-kms-dpi-hyperpixel4
dtparam=rotate=270
...

How can I have both the console and X desktop rotated?

Thanks very much
```

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 8, 2024, 6:40pm UTC](https://forums.pimoroni.com/t/how-to-rotate-hyperpixel-4r-with-adafruit-cyberdeck-hat-console-and-x/23767/2 "2024-01-08T18:40:10Z")

</div>

Have a look see in Preferences \> Screen Configuration.  
Layout \> Screens \> (Hyperpixel) \> Orientation \> and select Inverted.
