Software Setup
Prerequisites
Section titled “Prerequisites”- Raspberry Pi OS Bookworm or newer (recommended)
- Hardware connected per Hardware Setup
- Access to edit
config.txt(via SD card or SSH)
Configuration Methods
Section titled “Configuration Methods”- Flash Raspberry Pi OS to your SD card using Raspberry Pi Imager
- Before first boot, mount the SD card on your computer
- Edit
config.txtin the boot partition - Add the overlay at the end of the file (see code block below)
- Eject and insert the SD card into your Pi
- Power on and wait ~30 seconds for the display to initialize
dtoverlay=vc4-kms-v3ddtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a- SSH into your Pi or connect a monitor temporarily
- Edit config.txt using the command below
- Add the overlay at the end (see config block below)
- Save and reboot with
sudo reboot
Edit command:
sudo nano /boot/firmware/config.txtAdd these lines:
dtoverlay=vc4-kms-v3ddtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_aReboot:
sudo rebootWaveshare provides pre-configured images with drivers installed:
- Download the image from Waveshare Wiki
- Flash to SD card using Raspberry Pi Imager
- Insert and power on - display works immediately
DSI Port Selection
Section titled “DSI Port Selection”| Port | Config Line |
|---|---|
| DSI1 (default) | dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a |
| DSI0 | dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a,dsi0 |
Backlight Control
Section titled “Backlight Control”GUI Method
Section titled “GUI Method”- Open Menu → Preferences → Control Center → Screens
- Select DSI-2 (or your display)
- Adjust the Brightness slider
- Click Apply
Command Line
Section titled “Command Line”# Set brightness (0-255, where 255 is brightest)echo 128 | sudo tee /sys/class/backlight/*/brightness
# Examplesecho 255 | sudo tee /sys/class/backlight/*/brightness # Maximumecho 100 | sudo tee /sys/class/backlight/*/brightness # Mediumecho 0 | sudo tee /sys/class/backlight/*/brightness # Off (dark)Waveshare Brightness Tool
Section titled “Waveshare Brightness Tool”wget https://files.waveshare.com/wiki/common/Brightness.zipunzip Brightness.zipcd Brightnesssudo chmod +x install.sh./install.shAfter installation, access via Start Menu → Accessories → Brightness.
Virtual Keyboard
Section titled “Virtual Keyboard”Raspberry Pi OS Bookworm includes Squeekboard for on-screen keyboard:
- Appears automatically when text input is available
- Toggle manually via keyboard icon in taskbar
- Configure in Menu → Preferences → Control Centre → Display
Verification
Section titled “Verification”After configuration:
- Display should show the desktop
- Touch should respond (may need rotation - see Touch Calibration)
- Backlight should be adjustable
If the display remains dark, see Troubleshooting.