Skip to content

Commit

Permalink
Rpi5: fix X11 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
viraniac authored and igorpecovnik committed Dec 20, 2023
1 parent 363a069 commit a82589e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/sources/families/bcm2711.conf
Expand Up @@ -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.
Expand Down

0 comments on commit a82589e

Please sign in to comment.