# Hyper Pixel 4 and Raspberry Pi model 4 (4 GB)

**URL:** <https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785>\
**Category:** Support\
**Created:** [July 4, 2022, 10:06pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785 "2022-07-04T22:06:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knautica](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Knautica](https://forums.pimoroni.com/u/Knautica)\
**Post date:** [July 4, 2022, 10:06pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/1 "2022-07-04T22:06:55Z")

</div>

How do I get the Hyper Pixel 4 and Raspberry Pi model 4 (4 GB) to work together. It worked once until i rebooted and now there is nothing! have reinstalled everything again and still nothing.

Raspberry Pi 4  
4 GB  
Raspberry Pi OS  
A port of Debian bullseye with pi desktop  
(PI 3/4/400)  
RELEASED 04/04/2022 NEWEST  
ALL UPDATED AND UPGRADED.

Again, It worked once until I rebooted and then the screen was black and no back lights. Redone everything I had done for it to work the first time and still no change. BLACK SCREEN.

It did the same on pi 400. Worked until reboot than blank screen.  
As I mentioned before I can see the DPI display is showing in screen config as if it’s all working. I can us both in the screen configuration screen. So I do believe the software is working but the hardware (hyper pixel) is not.

I also seen several comments in the pimoroni forums many people are dealing with dead hyper pixel displays!!

---

<div class="post-metadata">

**Author:** ![Steveiest](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/steveiest/32/8845_2.png) [@Steveiest](https://forums.pimoroni.com/u/Steveiest)\
**Post date:** [July 4, 2022, 10:31pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/2 "2022-07-04T22:31:04Z")

</div>

What changes have you made to /boot/config.txt?

I’ve been round the houses with this screen recently, in the end I managed to decipher this post:

> <https://github.com/pimoroni/hyperpixel4/issues/177>
>
> :warning: PSA: Make sure you disable i2c, SPI and any other interfaces since the…se will cause a conflict in device-tree with HyperPixel :warning: 
> 
> :warning: A fresh image is recommended, but otherwise make sure you also disable the \`hyperpixel4-init\` system service! :warning:
> 
> Pi 3B and Pi 4 users running the latest and greatest Raspberry Pi OS should forego our installer and use the instructions below.
> 
> \> :information\_source: If you're tied to an older OS and you want to install the legacy drivers, use: 
> \> \`curl -sSL get.pimoroni.com/hyperpixel4-legacy | bash\`
> 
> 
> This new OS can currently be found in Raspberry Pi Imager under "Raspberry Pi OS (Other)"
> 
> !\[image\](https://user-images.githubusercontent.com/1746967/162789702-0c95f165-e482-4d47-a179-d841b903985c.png)
> 
> Once installed you need only one line in \`/boot/config.txt\`:
> 
> \* Rectangular: \`dtoverlay=vc4-kms-dpi-hyperpixel4\`
> \* Square: \`dtoverlay=vc4-kms-dpi-hyperpixel4sq\`
> 
> You can rotate these in config.txt by adding the \`rotate=\` parameter, like so:
> 
> \`\`\`
> dtoverlay=vc4-kms-dpi-hyperpixel4sq,rotate=90
> \`\`\`
> 
> This supports rotation in console, too, for all you CyberDeck builders!
> 
> \## HyperPixel 4 Rectangular Rotations
> 
> Ensure rotation is set to "Normal" in "Display Configuration"
> 
> And that the dtoverlay is in \`/boot/config.txt\`:
> 
> \`\`\`
> dtoverlay=vc4-kms-dpi-hyperpixel4
> \`\`\`
> 
> Finally use one of the following \`dtparam\` lines immediately underneath to set the parameters:
> 
> \* The default is portrait with header on the right, no extra line needed
> \* \`dtparam=rotate=90,touchscreen-swapped-x-y,touchscreen-inverted-y\` - Landscape with header on the bottom
> \* \`dtparam=rotate=180\` - Portrait with header on the left
> \* \`dtparam=rotate=270,touchscreen-swapped-x-y,touchscreen-inverted-x\` - Landscape with header on the top
> 
> \## HyperPixel 4 Square Rotations
> 
> HyperPixel 4 Square does not correctly swap or invert touch input, so you may want to use the Xorg config method below.
> 
> Ensure rotation is set to "Normal" in "Display Configuration"
> 
> And that the dtoverlay is in \`/boot/config.txt\`:
> 
> \`\`\`
> dtoverlay=vc4-kms-dpi-hyperpixel4sq
> \`\`\`
> 
> Finally use one of the following \`dtparam\` lines immediately underneath to set the parameters:
> 
> \* Default is header on the top
> \* \`dtparam=rotate=90\` - Header is on the left (wonky touch, see below)
> \* \`dtparam=rotate=180\` - Header \*still\* on the top (doesn't work? Same as default)
> \* \`dtparam=rotate=270\` - Header is on the right (wonky touch, see below)
> 
> :warning: The \`touchscreen-swapped-x-y\` parameter does not seem to work with Square. You may need to use the script below for Raspberry Pi OS with Desktop.
> 
> \## On the fly rotation
> 
> Rotating the display via "Screen Configuration" ("arandr") results in inverted touch input and other weirdness- use the dtoverlay params.
> 
> If you want to rotate on the fly you can use the below bash script to rotate either display and persist settings into Xorg configuration files.
> 
> :warning: Note: You \*must\* remove the \`rotate=\` argument from \`/boot/config.txt\` for these to make sense.
> 
> You can remove the rotation config by deleting the \`/usr/share/X11/xorg.conf.d/88-hyperpixel4-touch.conf\` and \`/usr/share/X11/xorg.conf.d/88-dsi-1-rotate.conf\` files.
> 
> \`\`\`bash
> \#!/bin/bash
> 
> UTILITY="hyperpixel4-rotate (Rectangular)"
> XORG\_TOUCH\_CONF\_FILE="/usr/share/X11/xorg.conf.d/88-hyperpixel4-touch.conf"
> XORG\_CONF\_FILE="/usr/share/X11/xorg.conf.d/88-dsi-1-rotate.conf"
> 
> OVERLAY\_S="vc4-kms-dpi-hyperpixel4sq"
> OVERLAY\_R="vc4-kms-dpi-hyperpixel4"
> 
> function success() {
> echo -e "$(tput setaf 2)$1$(tput sgr0)"
> }
> 
> function inform() {
> echo -e "$(tput setaf 6)$1$(tput sgr0)"
> }
> 
> function warning() {
> echo -e "$(tput setaf 1)$1$(tput sgr0)"
> }
> 
> function set\_xorg\_conf {
> if \["$DISPLAY" == "" \]; then
> inform "No DISPLAY variable set, trying :0.0"
> export DISPLAY=:0.0
> fi
> 
> inform "Rotating display $1";
> xrandr --output DPI-1 --rotate $1
> 
> MATRIX="$2 $3 $4 $5 $6 $7 $8 $9 ${10}"
> 
> inform "Setting libinput Calibration Matrix: 1 0 0 0 1 0";
> xinput set-prop "pointer:$DEVICE" "libinput Calibration Matrix" 1 0 0 0 1 0 0 0 1
> 
> inform "Setting Coordinate Transformation Matrix: $MATRIX";
> xinput set-prop "pointer:$DEVICE" "Coordinate Transformation Matrix" $MATRIX
> 
> inform "Saving xorg touch config to $XORG\_TOUCH\_CONF\_FILE";
> sudo tee $XORG\_TOUCH\_CONF\_FILE \> /dev/null \<\<EOF
> \# Auto generated by $UTILITY, edit with care!
> 
> Section "InputClass"
> Identifier "HyperPixel4 $DEVICE"
> MatchProduct "$DEVICE"
> Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
> Option "TransformationMatrix" "$MATRIX"
> EndSection
> EOF
> 
> inform "Saving xorg rotate config to $XORG\_CONF\_FILE";
> sudo tee $XORG\_CONF\_FILE \> /dev/null \<\<EOF
> \# Auto generated by $UTILITY, edit with care!
> 
> Section "Monitor"
> Identifier "DPI-1"
> Option "Rotate" "$1"
> EndSection
> EOF
> }
> 
> printf "HyperPixel 4: Display & Touch Rotation\\n"
> printf "This utility requires the Raspberry Pi OS desktop or an \*Xorg-based\* alternative.\\n\\n"
> 
> ORIENTATION=$1
> 
> grep -e "^dtoverlay=$OVERLAY\_S.\*" /boot/config.txt \> /dev/null
> if \[$? -ne 0 \]; then
> grep -e "^dtoverlay=$OVERLAY\_R.\*" /boot/config.txt \> /dev/null
> if \[$? -ne 0 \]; then
> warning "Rotation requires hardware support on the Pi 4 or Pi 400"
> warning "Ensure your HyperPixel4 is enabled in /boot/config.txt"
> printf "\\nSquare: dtoverlay=$OVERLAY\_S\\n"
> printf "Rectangular: dtoverlay=$OVERLAY\_R\\n\\n"
> exit 1
> else
> inform "Detected HyperPixel 4 Rectangular (found \\"$OVERLAY\_R\\" in config.txt)"
> DEVICE="Goodix Capacitive TouchScreen"
> fi
> else
> inform "Detected HyperPixel 4 Square (found \\"$OVERLAY\_S\\" in config.txt)"
> DEVICE="EP0110M09"
> fi
> 
> case $ORIENTATION in
> "right")
> set\_xorg\_conf $ORIENTATION 0 1 0 -1 0 1 0 0 1
> ;;
> "left")
> set\_xorg\_conf $ORIENTATION 0 -1 1 1 0 0 0 0 1
> ;;
> "inverted")
> set\_xorg\_conf $ORIENTATION -1 0 1 0 -1 1 0 0 1
> ;;
> "normal")
> set\_xorg\_conf $ORIENTATION 1 0 0 0 1 0 0 0 1
> ;;
> \*)
> printf "Unsupported orientation: $ORIENTATION\\n\\n";
> printf "Usage:\\n"
> printf " $0 \<orientation\>\\n\\n"
> printf "Where orientation is one of: left, right, normal, inverted.\\n"
> exit 1
> esac
> \`\`\`

The post says you only need this one line in your config.txt, but it really means is you need to keep /boot/config.txt completely untouched, apart from adding this to the very bottom:

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

```

Hope that helps.

Edit: Leave the existing dtoverlay line in place too, don’t remove it or comment it out.

---

<div class="post-metadata">

**Author:** ![Knautica](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Knautica](https://forums.pimoroni.com/u/Knautica)\
**Post date:** [July 4, 2022, 11:47pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/3 "2022-07-04T23:47:00Z")

</div>

> [@Steveiest](#):
>
> `dtoverlay=vc4-kms-dpi-hyperpixel4`

Ok everything is back to redone! ran the pi 4 installer and added the dtoverlay at the end of config.txt

# This is my current config.txt

# For more options and information see

# [http://rpf.io/configtxt](http://rpf.io/configtxt)

# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default “safe” mode

#hdmi\_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console

# goes off screen, and negative if there is too much border

#overscan\_left=16  
#overscan\_right=16  
#overscan\_top=16  
#overscan\_bottom=16

# uncomment to force a console size. By default it will be display’s size minus

# overscan.

#framebuffer\_width=1280  
#framebuffer\_height=720

# uncomment if hdmi display is not detected and composite is being output

#hdmi\_force\_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)

#hdmi\_group=1  
#hdmi\_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in

# DMT (computer monitor) modes

#hdmi\_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or

# no display

#config\_hdmi\_boost=4

# uncomment for composite PAL

#sdtv\_mode=2

#uncomment to overclock the arm. 700 MHz is the default.  
#arm\_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces

#dtparam=i2c\_arm=on  
#dtparam=i2s=on  
#dtparam=spi=on

# Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio\_pin=17  
#dtoverlay=gpio-ir-tx,gpio\_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd\_bcm2835)

dtparam=audio=on

# Automatically load overlays for detected cameras

camera\_auto\_detect=1

# Automatically load overlays for detected DSI displays

display\_auto\_detect=1

# Enable DRM VC4 V3D driver

dtoverlay=vc4-kms-v3d  
max\_framebuffers=2

# Run in 64-bit mode

arm\_64bit=1

# Disable compensation for displays with overscan

disable\_overscan=1

[cm4]

# Enable host mode on the 2711 built-in XHCI USB controller.

# This line should be removed if the legacy DWC2 controller is required

# (e.g. for USB device mode) or if USB support is not required.

otg\_mode=1

[all]

[pi4]

# Run as fast as firmware / board allows

arm\_boost=1

[all]  
enable\_uart=0

# dtoverlay=hyperpixel4 enable\_dpi\_lcd=1 dpi\_group=2 dpi\_mode=87 dpi\_output\_format=0x7f216 dpi\_timings=480 0 10 16 59 800 0 15 113 15 0 0 0 60 0 32000000 6 dtoverlay=vc4-kms-dpi-hyperpixel4

Still NO HYPER PIXEL DISPLAY!!!

---

<div class="post-metadata">

**Author:** ![Steveiest](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/steveiest/32/8845_2.png) [@Steveiest](https://forums.pimoroni.com/u/Steveiest)\
**Post date:** [July 5, 2022, 12:13pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/4 "2022-07-05T12:13:27Z")

</div>

Hmm, nope, you’ve added a lot more than just the single line I suggested. To repeat - keep the config.txt file completely vanilla and just add this single line at the bottom:

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

```

---

<div class="post-metadata">

**Author:** ![Knautica](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Knautica](https://forums.pimoroni.com/u/Knautica)\
**Post date:** [July 5, 2022, 2:56pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/5 "2022-07-05T14:56:50Z")

</div>

I did only add the one line. The install added everything else

---

<div class="post-metadata">

**Author:** ![ahnlak](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/ahnlak/32/5610_2.png) [@ahnlak](https://forums.pimoroni.com/u/ahnlak)\
**Post date:** [July 5, 2022, 3:44pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/6 "2022-07-05T15:44:50Z")

</div>

If you read the linked announcement - “users running the latest and greatest Raspberry Pi OS should _forego our installer_…”

The extra lines are coming from the installer, that you no longer require. I imagine they are tripping things up.

---

<div class="post-metadata">

**Author:** ![Knautica](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Knautica](https://forums.pimoroni.com/u/Knautica)\
**Post date:** [July 5, 2022, 3:57pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/7 "2022-07-05T15:57:08Z")

</div>

So do a clean os install and just add that line? Don’t do anything from get hub?

---

<div class="post-metadata">

**Author:** ![ahnlak](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/ahnlak/32/5610_2.png) [@ahnlak](https://forums.pimoroni.com/u/ahnlak)\
**Post date:** [July 5, 2022, 4:24pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/8 "2022-07-05T16:24:23Z")

</div>

That’s what the PSA linked above says. Also contains info about rotations, and I would highly recommend you read it and then proceed.

---

<div class="post-metadata">

**Author:** ![Knautica](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Knautica](https://forums.pimoroni.com/u/Knautica)\
**Post date:** [July 5, 2022, 4:48pm UTC](https://forums.pimoroni.com/t/hyper-pixel-4-and-raspberry-pi-model-4-4-gb/19785/9 "2022-07-05T16:48:29Z")

</div>

ok did a clean fresh OS install and added only  
dtoverlay=vc4-kms-dpi-hyperpixel4  
to the end of the config.txt and still no display !  
i still think its a bad display because the dpi shows up in the screen config and it shows overlayed on my desktop!
