# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=24
#overscan_right=24
#overscan_top=24
#overscan_bottom=24

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=5

# uncomment for composite PAL
#sdtv_mode=2

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
# We allow SPI by default to allow use of flashrom 'out of the box'
# feel free to comment out the below, should you require the GPIO pins
# it uses
dtparam=spi=on

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# uncomment to assume display supports all audio formats
#hdmi_force_edid_audio=1

# retain fake kms mode for now, as it plays nicely with
# window manager compositing and is upstream's choice for
# Buster; CMA implicitly handled now
dtoverlay=vc4-fkms-v3d

# now the camera and v4l2 m2m codecs are usable for 64-bit systems
# a modest amount of gpu_mem *is* advised; see e.g.
# https://www.raspberrypi.org/forums/viewtopic.php?p=1436162#p1436162
gpu_mem=128

# enable camera interface (v4l2); requires >=4.19 kernel
start_x=1

# force 64-bit mode, new way
arm_64bit=1

[pi3]
# specific configuration for RPi3 models
# improve output quality from built-in headphone jack
audio_pwm_mode=2

[pi4]
# specific configuration for RPi4 models
max_framebuffers=2
# differentiate from Pi3 64-bit kernels
# (kernel8.img, by default)
kernel=kernel8-p4.img
# settings for HDMI1 port use a :1 suffix, for example:
#hdmi_group:1=1
#hdmi_mode:1=1
disable_overscan:1=1
[all]
