From a82589e683471911cad04f4d4615bb6a3656eb85 Mon Sep 17 00:00:00 2001 From: Gunjan Gupta Date: Wed, 20 Dec 2023 17:03:38 +0530 Subject: [PATCH] Rpi5: fix X11 failure --- config/sources/families/bcm2711.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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.