Config.txt Reference
Required Configuration
Section titled “Required Configuration”Add these lines to /boot/firmware/config.txt (or /boot/config.txt on older systems):
# Enable KMS video driver (required)dtoverlay=vc4-kms-v3d
# Enable 8-DSI-TOUCH-A display on DSI1dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_aDSI Port Selection
Section titled “DSI Port Selection”| Configuration | Description |
|---|---|
8_0_inch_a | Default, uses DSI1 |
8_0_inch_a,dsi0 | Use DSI0 instead |
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a,dsi0Display Rotation (cmdline.txt)
Section titled “Display Rotation (cmdline.txt)”For headless/Lite systems, add to /boot/firmware/cmdline.txt:
# Add at the BEGINNING of the linevideo=DSI-1:800x1280e,rotate=90| Option | Effect |
|---|---|
rotate=0 | Portrait (default) |
rotate=90 | Landscape left |
rotate=180 | Portrait inverted |
rotate=270 | Landscape right |
Related Overlays
Section titled “Related Overlays”Other Waveshare DSI Displays
Section titled “Other Waveshare DSI Displays”# 2.8" DSIdtoverlay=vc4-kms-dsi-waveshare-panel-v2,2_8_inch
# 4.3" DSIdtoverlay=vc4-kms-dsi-waveshare-panel-v2,4_3_inch
# 7.9" DSIdtoverlay=vc4-kms-dsi-waveshare-panel-v2,7_9_inch
# 8" DSI (this display)dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a
# 10.1" DSIdtoverlay=vc4-kms-dsi-waveshare-panel-v2,10_1_inchVideo Memory (Legacy)
Section titled “Video Memory (Legacy)”On older systems, you may need to increase GPU memory:
# Not typically needed on Pi 4/5 with KMSgpu_mem=128HDMI Alongside DSI
Section titled “HDMI Alongside DSI”You can use HDMI and DSI simultaneously:
dtoverlay=vc4-kms-v3ddtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a
# HDMI settings (if needed)# hdmi_group=2# hdmi_mode=82Debugging
Section titled “Debugging”If the display doesn’t work, check the kernel log:
# View boot messagesdmesg | grep -i dsi
# Check loaded overlaysvcdbg log msg 2>&1 | grep -i overlayComplete Example
Section titled “Complete Example”# Core settingsarm_64bit=1kernel=kernel8.img
# Enable KMS driverdtoverlay=vc4-kms-v3d
# Waveshare 8" DSI displaydtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a
# Optional: Disable Bluetooth if not needed# dtoverlay=disable-bt
# Optional: Overclock (Pi 4)# over_voltage=6# arm_freq=2000File Locations
Section titled “File Locations”| OS Version | Config Location |
|---|---|
| Bookworm+ | /boot/firmware/config.txt |
| Bullseye | /boot/config.txt |
| Legacy | /boot/config.txt |
Always verify the correct path for your OS version.