Touch Display 2 Build

I just wanted to document my minimal build including Pi5 (4Gb) and Pi Touch Display 2.

Kit:
Pi5 4Gb
Pi5 active cooler
SD card
Touch Display 2
Touch Display 2 case for hats: KKSB Display Stand for Raspberry Pi 5 Touch Display V2 with Case for H — KKSB Cases
GPIO edge extension: GPIO Edge Extension for Raspberry Pi | The Pi Hut
Sound board - I used Pirate Audio: Audio DAC SHIM (Line-Out)
but if you want line-in as well I would recommend the HifiBerry DAC ADC

also need:
USB mouse.
Some additional different length standoffs.
another computer on wifi network.

So first things: Flash the zythian image on the SD card using Pi Imager.
You will have to edit the config.txt in the root of the SD card - this can be done from windows by mounting the card in the card reader.

You need to add in the line:

dtoverlay = hifiberry-dac

(if that’s the card you are using - or change as required).

Or on first boot there will be an error because the sound card can’t be found.

Then:

Put everything together (note there is a GPIO booster in the kit that comes with the case which is needed to bring everything above the level of the cooler):

Note I had to drill a hole in the case for the audio out jack plug.
Also, great care is needed with the ribbon cable connectors - lift them very gently away from the board until there is around 1mm space to put the ribbon cable in and then reseat - you will see I managed to snap one off!

After it boots to the menu (if everything has gone OK), first step is to use the mouse to add in wifi config - (admin:wi-fi config) as you won’t be able to use touch initially. Look up the IP for the box under admin:network information.

From another computer connect via webconnect to the IP and type the password (opensynth).

Under Hardware:Display,
paste the following into Config:

lcd_rotate=2 dtoverlay=vc4-kms-dsi-ili9881-7inch,dsi0,swapxy,invx

(Note dsi0 in the above refers to the DSI-1 port which is the one pictured above. If you use DSI2 then you might be able to omit this part, or change it to dsi1.
Also note - the screen is upside down compared to previously reported uses of the Pi Touch Display 2 on this forum - so I had to modify some of the parameters)

Then, under kernel options paste:

video=DSI-1:720x1280@60,rotate=270

(Change DSI-1 to DSI-2 if that’s the port you are using).

Save changes but don’t reboot yet.

Next, go to Hardware:options and add in the following:

dtoverlay=hifiberry-dac

(or whichever sound card you are using!)

save but don’t reboot.

Lastly, go to system:terminal
and type

‘nano /usr/share/X11/xorg.conf.d/90-monitor.conf’

type in the following:

Section “Monitor”
Identifier “DSI-1”
Option “Rotate” “right”
EndSection

(note capitalization of Rotate vs. right. Also, change DSI-1 to DSI-2 if that’s the port you are using).

Save by typing ctrl-s then ctrl-x to exit
Lastly, on the command line type halt and the system will shut down.

You may then cycle power and if everything has worked, it should boot up with working touch screen and audio!

I use a USB midi keyboard, and I’m absolutely blown away by how amazing this project is!

5 Likes

Edit - this no longer works fully as of 18/MAR/2026.

New instructions:

Still need dtoverlay=hifiberry-dac in config.txt to allow booting.

I needed to add dtoverlay=i2c1-rpi5 to config.txt (or webconf wouldn’t start on my rpi5) - note this is overwritten once the webconfiguration is up and running and it regenerates a config.txt that works properly!

Hardware options is now superseded as you can directly edit the soundcard info under webconf.

The touch screen settings are a bit easier now:

No longer need lcd_rotate=2 or any of the kernel options.

Just use

dtoverlay=vc4-kms-dsi-ili9881-7inch,dsi0,swapxy,invx

along with the 90-monitor.conf file as above and all should work!

Thanks to @JayBee for updated info on Raspberry Pi Touch Display 2 - Rotate screen - #28 by JayBee

2 Likes

hi jmstone,

sweet! :star_struck:

I have been oogling this same case and screen myself and so i got curious to know why you opted for a pirate-hat instead of the (official) DAC+/IQAudio one? (thinking waste of lcd on the DAC itself…). Also, why did you not browse to it (from a computer) to configure everything? Lastly, with those removable “flaps” on the back-side of the LCD enclosure, wouldn’t it just be a matter of pressing out a few of those metal “tounges” to make room for the line/rca outs?

Yep I think the DAC+ would work well. The reason I used the small form factor one was I had already got one (the original project was supposed to be a pi zero based synth running dexed but unfortunately I couldn’t get it to work with my MIDI keyboard so I ended up making it into a much bigger project).

Looking at the DAC+ again I do kind of wish I’d gone that way now as it looks great - I think when I built it those options were a lot more expensive though.

I’ve now taken the stand off the case as it didn’t work well for my purposes and I use it primarily as a Virtual JV based rompler with my band.

Not quite sure what you mean by browse to it on a computer? I used the webconf for most of the configuration once I got it on WiFi but I guess you could use SSH or edit everything on the SD card from a Linux install…

Hi jmstone,

my apologies, i misread the part with the initial enabling of wifi :slight_smile:

It looks extremely neat and your description here will be a very nice reference to have going forward (it will be my next purchase for sure).

br

Odd. Just tried to order the lcd case from the official site (its based in Sweden just like I am) and the checkout page told me that they “could not ship to my location”…!!? :scream: Just mailed them about it :smiley: