# Can't get hyperpixel 4 to rotate

**URL:** <https://forums.pimoroni.com/t/cant-get-hyperpixel-4-to-rotate/23426>\
**Category:** Support\
**Created:** [December 2, 2023, 9:10pm UTC](https://forums.pimoroni.com/t/cant-get-hyperpixel-4-to-rotate/23426 "2023-12-02T21:10:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://forums.pimoroni.com/u/Peter)\
**Post date:** [December 2, 2023, 9:10pm UTC](https://forums.pimoroni.com/t/cant-get-hyperpixel-4-to-rotate/23426/1 "2023-12-02T21:10:18Z")

</div>

I’ve fitted a hyperpixel 4 touch screen to my Raspberry Pi 4. I’m using a new image of the 32 bit OS, it installed updates when I installed it. I’ve added

```
    dtoverlay=vc4-kms-dpi-hyperpixel4 

```

at the end of config.txt and the display works but it’s stuck in portrait. I added a line

```
   dtparam=rotate=270,touchscreen-swapped-x-y,touchscreen-inverted-x

```

after the dtoverlay line but the display doesn’t rotate. I noticed that with this line in place, when I reboot the shutdown screen is rotated, but it’s back to portrait when it starts up again.

The instructions say to disable the hyperpixel4-init process but doesn’t say how to do this, I’ve done some searches and I can’t find the answer. Could this be what’s causing the problem? If so, how do I disable this service?

---

<div class="post-metadata">

**Author:** ![miswood](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@miswood](https://forums.pimoroni.com/u/miswood)\
**Post date:** [December 1, 2024, 4:46pm UTC](https://forums.pimoroni.com/t/cant-get-hyperpixel-4-to-rotate/23426/2 "2024-12-01T16:46:11Z")

</div>

Hopefully you fixed this long before now, but for those having this issue here is how i got mine to work.

It looks like the rotation gets reset when the desktop boots… however, the touchscreen transforms don’t.

1. Set up the touchscreen in the /boot/firmware/config.txt file as you have done.
2. reboot
3. When it boots to the desktop use the Screen configuration app (preferences-\>Screen configuration) to rotate the screen, for 270 the orientation is Left.

---

<div class="post-metadata">

**Author:** ![Zarzad](https://avatars.discourse-cdn.com/v4/letter/z/b4bc9f/32.png) [@Zarzad](https://forums.pimoroni.com/u/Zarzad)\
**Post date:** [December 28, 2024, 2:47pm UTC](https://forums.pimoroni.com/t/cant-get-hyperpixel-4-to-rotate/23426/3 "2024-12-28T14:47:09Z")

</div>

This works great. Thanks so much!
