diff --git a/config/sources/families/bcm2711.conf b/config/sources/families/bcm2711.conf index f6a611e0845a..0acc038b0067 100644 --- a/config/sources/families/bcm2711.conf +++ b/config/sources/families/bcm2711.conf @@ -155,6 +155,19 @@ function post_family_tweaks_bsp__add_hooks_to_move_kernel_initrd_and_dtb() { run_host_command_logged chmod a+x "${destination}"/etc/initramfs/post-update.d/zzz-update-initramfs } +function post_family_tweaks_bsp__add_x11_config() { + display_alert "rpi5b" "Adding X11 configuration" "info" + run_host_command_logged mkdir -p "${destination}"/etc/X11/xorg.conf.d/ + run_host_command_logged cat <<- '99-vc4.conf' > "${destination}"/etc/X11/xorg.conf.d/99-vc4.conf + Section "OutputClass" + Identifier "vc4" + MatchDriver "vc4" + Driver "modesetting" + Option "PrimaryGPU" "true" + EndSection + 99-vc4.conf +} + function post_family_tweaks__populate_boot_firmware_directory() { # We install kernel before we install bsp package. This means hooks present in bsp are not executed. # Running the hooks from bsp to populate /boot/firmware directory.