---
agent:
  instructions: "Use this search API to find relevant content across this site (products with prices and stock, collections, guides, articles, courses, help and pages) with keywords or natural-language queries, instead of crawling individual pages. Replace {query} with your URL-encoded query. Results are returned in Markdown."
  endpoint: "https://piaustralia.com.au/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Setting up Raspberry Pi Touch Display 2

Which Touch Display 2 suits your Pi, which ribbon cable to use, how to power and mount it, and how to rotate the picture and the touch input.

## Sizes and compatibility

Touch Display 2 comes in three sizes. All three are portrait screens out of the box (taller than they are wide), take their power from the Pi's GPIO header, and are detected automatically by a Raspberry Pi B+ or later.

| Size | Resolution | Touch | Works with |
|---|---|---|---|
| **5-inch** | 720 × 1280 | 5 fingers | Raspberry Pi 5, Pi 4 and earlier models back to the B+, Compute Module IO boards |
| **7-inch** | 720 × 1280 | 5 fingers | Raspberry Pi 5, Pi 4 and earlier models back to the B+, Compute Module IO boards |
| **10-inch** | 1200 × 1920 | 10 fingers | Raspberry Pi 5 and Compute Module IO boards only |

**Not for Zero boards.** None of the sizes work with any Raspberry Pi Zero, or with the keyboard computers (Pi 400 and Pi 500), because they don't have the display (DSI) connector the screen needs. For those, use an HDMI screen instead.

A Raspberry Pi 5 can run more than one Touch Display 2 at once.

## Which cable?

The right ribbon cables come in the box:

| Pi | Port | Cable |
|---|---|---|
| Pi 5, with a 5- or 7-inch screen | A CAM/DISP connector | 22-way to 15-way (standard–mini) |
| Pi 5, with the 10-inch screen | Either CAM/DISP connector | 22-way to 22-way (mini–mini) |
| Pi 4 and earlier | The connector marked DISPLAY | 15-way to 15-way |

The 5- and 7-inch screens also come with eight M2.5 screws, and every size comes with a GPIO power lead.

## Connecting it

Shut the Pi down and unplug its power first.

1. **Cable into the screen.** Slide the clips on the screen's connector outwards, push the cable in with its metal contacts facing up (away from the screen), then slide the clips back. With the standard–mini cable, the wider end goes here.
2. **Cable into the Pi.** Lift the latch on the Pi's display connector, slide the other end in with the contacts facing the Ethernet and USB ports, and press the latch down.
3. **Power lead.** Plug the small end into the socket marked J1 on the screen. Hold the Pi with its USB and Ethernet ports facing down: the other end goes on the top-right of the GPIO header, **red on pin 2 (5 V)** and **black on pin 6 (ground)**. Getting these the wrong way round can damage the display, so double-check before powering on.
4. **Mount the Pi (optional).** The back of the screen has four stand-offs that line up with the Pi's mounting holes. Fix the Pi on with four M2.5 screws.
5. **Power on.** Give it up to a minute for the picture to appear.

**For the 10-inch screen,** update the Pi before you connect it, then follow the same steps with the mini–mini cable:

```
sudo apt update
sudo apt full-upgrade
sudo rpi-eeprom-update -a
```

On the bigger screen you can make the desktop's text and icons larger in **Preferences → Control Centre → Defaults**, under **For Large Screens**.

## Rotating the picture

Because the screen starts in portrait, most people turn it to landscape. On the desktop:

1. Open **Preferences → Control Centre → Screens**.
2. Right-click the box labelled **DSI-1** and choose **Orientation**.
3. Pick a setting, then **Apply** and **OK**.

| Setting | Rotation |
|---|---|
| Normal | None (portrait) |
| Left | 90° clockwise |
| Inverted | 180° |
| Right | 270° clockwise |

The same right-click menu has a **Brightness** option, which takes effect straight away.

### Rotating the text console

On Raspberry Pi OS Lite, with no desktop, add this to the end of `/boot/firmware/cmdline.txt` (it's all one line, so add a space and keep it on that line), using `0`, `90`, `180` or `270`:

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

That rotates the text console on every attached screen, and only the console. Programs that draw straight to the screen, such as a camera preview or a video player run without the desktop, have their own rotation options.

## Rotating the touch input

If you rotate the screen for a program that runs outside the desktop, touches may land in the wrong place. You can flip and swap the touch axes by adding the display's overlay to `/boot/firmware/config.txt` with extra options. For a 7-inch screen turned upside down:

```
dtoverlay=vc4-kms-dsi-ili9881-7inch,invx,invy
```

| Option | What it does |
|---|---|
| `invx` | Flips touch left-to-right |
| `invy` | Flips touch top-to-bottom |
| `swapxy` | Swaps the two axes (for a quarter turn, combine it with `invx` or `invy`) |
| `disable_touch` | Turns touch off |

The overlay for the 5-inch screen is `vc4-kms-dsi-ili9881-5inch`, and for the 10-inch it's `vc4-kms-dsi-ili79600-10-1inch`. Reboot after any change.

## On-screen keyboard

Raspberry Pi OS includes an on-screen keyboard that pops up when you tap into a text box and hides again afterwards. If an app doesn't trigger it, tap the keyboard icon at the top right of the taskbar. To keep it on all the time, or turn it off, go to **Preferences → Control Centre → Display**, or use the **Display** section of `sudo raspi-config`.

## If the screen stays blank

- Update Raspberry Pi OS and the bootloader (the commands above).
- Check both ends of the ribbon: pushed fully in, contacts facing the right way, and (on a Pi 4 or earlier) in DISPLAY rather than CAMERA.
- Check the power lead at both ends, and that it's on pins 2 and 6.
- **Compute Modules** don't detect the screen by themselves. Add its overlay line to `config.txt` on the boot media you're using, adding `,dsi0` if the screen is on the IO board's port 0. The CM5 IO board's CAM/DISP 1 port and the CM4 IO board's DISP0 port also need two jumpers fitted on J6.

## Parts in this guide

- [Raspberry Pi Touch Display 2](https://piaustralia.com.au/products/raspberry-pi-touch-display-2.md)
- [Raspberry Pi 5](https://piaustralia.com.au/products/raspberry-pi-5.md)
- [KKSB Display Stand for Raspberry Pi 5 and Touch Display 2](https://piaustralia.com.au/products/kksb-display-stand-for-raspberry-pi-5-and-touch-display-2.md)
- [Pibow Frame for Raspberry Pi Touch Display 2](https://piaustralia.com.au/products/pibow-frame-for-raspberry-pi-touch-display-2.md)
- [Raspberry Pi Display Cable Standard - Mini DSI Cable](https://piaustralia.com.au/products/raspberry-pi-display-cable-standard-mini.md)

Written by Pi Australia from Raspberry Pi's Touch Display 2 documentation, Raspberry Pi Touch Display 2 product page.
