> ## Content Index
> Fetch the complete content index at: https://broddin.be/llms.txt
> Use this file to discover other available public pages before exploring further.

# Get HyperPixel 4.0 working horizontally for Octodash
- URL: https://broddin.be/get-hyperpixel-4-0-working-horizontally/
- Published: 2021-09-22T08:50:32.000Z
- Updated: 2026-07-19T19:05:09.000Z
- Author: Tim Broddin
- Tags: 3d-printing, #english, #wordpress, #Import 2024-02-03 13:15, #broddin, #Migrated-1784487752640, #wp, #wp-post, #Import 2026-07-19 19:02

Recently I managed to corrupt my Octopi SD-card by pulling the power plug while it was updating.

Everything was up and running again relatively quickly, but one thing I could not get to work -no matter what I tried- was horizontal screen orientation for my [Pimoroni Hyperpixel 4.0 display](https://shop.pimoroni.com/products/hyperpixel-4?variant=12569485443155&ref=broddin.be) and [OctoDash](https://github.com/UnchartedBull/OctoDash?ref=broddin.be).

Finally, I got it to work with these steps.

## Install the Hyperpixel overlays:

```bash
curl https://get.pimoroni.com/hyperpixel4 | bash
```

Pick option 2:

![](https://broddinblog.on-forge.com/storage/320/screenshot-2021-09-22-at-104031.png)

## Make sure you load the 3D-driver

Check that your `/boot/config.txt `includes `dtoverlay=vc4-fkms-v3d`

## Install xinput

`sudo apt install xinput`

## Change your .xinitrc

Change your `/home/pi/.xinitrc` as follows:

```text
#!/bin/shxset s offxset s noblankxset -dpmsratpoison&DISPLAY=:0.0 xrandr --output DSI-1 --rotate leftDISPLAY=:0.0 xinput set-prop "pointer:Goodix Capacitive TouchScreen" "libinput Calibration Matrix" 0 -1 1 1 0 0 0 0 1octodash
```

## Reboot!

You should now have a rotated Octodash screen with correct touch inputs.

![](https://broddinblog.on-forge.com/storage/321/img-6711-2.jpg)