# For more options and information see http://rptl.io/configtxt
# Some settings may impact device functionality. See the link above for details.

# Enable onboard audio (HDMI or jack).
dtparam=audio=on

# Disable compensation for displays with overscan.
disable_overscan=1
disable_splash=1

# No more 16 bit color on Pi.
framebuffer_depth=32

# Pi2 and Pi3: run in 32-bit mode.
arm_64bit=0

# Pi2 and Pi3: more memory for hardware h264 decompression.
gpu_mem=96

# Pi4 and Pi5: enable second display by default.
max_framebuffers=2

# Pi4 and Pi5: don't have the firmware that creates an initial video=
# setting in cmdline.txt. Use the kernel's default instead.
disable_fw_kms_setup=1

[pi4]

# Run as fast as firmware / board allows.
arm_boost=1

# Pi4: run in 64-bit now.
arm_64bit=1

# Always enable DRM VC4 V3D driver on Pi4.
dtoverlay=vc4-kms-v3d

# DRM VC4 driver requires that "avoid_warnings=2" be present in
# the config.txt for the firmware, to keep it from smashing our display setup.
avoid_warnings=2

[pi5]

# Always enable DRM VC4 V3D driver on Pi5.
dtoverlay=vc4-kms-v3d

# DRM VC4 driver requires that "avoid_warnings=2" be present in
# the config.txt for the firmware, to keep it from smashing our display setup.
avoid_warnings=2

[all]

# Pi2 and Pi3: uncomment these two lines to set display resolution:
#hdmi_group=2
#hdmi_mode=58
#
# Specify correct value in hdmi_mode= line from the list of valid values:
# 1024x768:  hdmi_mode=16
# 1280x1024: hdmi_mode=35
# 1360x768:  hdmi_mode=39
# 1400x1050: hdmi_mode=42
# 1440x900:  hdmi_mode=47
# 1600x1200: hdmi_mode=51
# 1680x1050: hdmi_mode=58
# 1366x768:  hdmi_mode=81
# 1920x1080: hdmi_mode=82
# 1920x1200: hdmi_mode=69
