Skip to content

Config.txt Reference

Add these lines to /boot/firmware/config.txt (or /boot/config.txt on older systems):

config.txt
# Enable KMS video driver (required)
dtoverlay=vc4-kms-v3d
# Enable 8-DSI-TOUCH-A display on DSI1
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a
ConfigurationDescription
8_0_inch_aDefault, uses DSI1
8_0_inch_a,dsi0Use DSI0 instead
Using DSI0
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a,dsi0

For headless/Lite systems, add to /boot/firmware/cmdline.txt:

Terminal window
# Add at the BEGINNING of the line
video=DSI-1:800x1280e,rotate=90
OptionEffect
rotate=0Portrait (default)
rotate=90Landscape left
rotate=180Portrait inverted
rotate=270Landscape right
# 2.8" DSI
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,2_8_inch
# 4.3" DSI
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,4_3_inch
# 7.9" DSI
dtoverlay=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" DSI
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,10_1_inch

On older systems, you may need to increase GPU memory:

# Not typically needed on Pi 4/5 with KMS
gpu_mem=128

You can use HDMI and DSI simultaneously:

dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-waveshare-panel-v2,8_0_inch_a
# HDMI settings (if needed)
# hdmi_group=2
# hdmi_mode=82

If the display doesn’t work, check the kernel log:

Terminal window
# View boot messages
dmesg | grep -i dsi
# Check loaded overlays
vcdbg log msg 2>&1 | grep -i overlay
/boot/firmware/config.txt
# Core settings
arm_64bit=1
kernel=kernel8.img
# Enable KMS driver
dtoverlay=vc4-kms-v3d
# Waveshare 8" DSI display
dtoverlay=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=2000
OS VersionConfig Location
Bookworm+/boot/firmware/config.txt
Bullseye/boot/config.txt
Legacy/boot/config.txt

Always verify the correct path for your OS version.