Skip to content

Commit

Permalink
feat(rpi4): add dummy HDMI to allow GPU acceleration for OpenGL rende…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
nikAizuddin committed Aug 12, 2023
1 parent e083cc5 commit 1fa1876
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions project/yocto/build/conf/multiconfig/raspberrypi4-64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ RPI_EXTRA_CONFIG:append = 'gpu_mem=512\n'
# See https://forums.raspberrypi.com/viewtopic.php?t=254640#p1564389
RPI_EXTRA_CONFIG:append = 'config_hdmi_boost=4\n'

#
# Dummy HDMI to allow GPU acceleration for OpenGL rendering.
# Credits to:
# - https://github.com/raspberrypi/Raspberry-Pi-OS-64bit/issues/225#issuecomment-1199414677
# - https://forums.raspberrypi.com/viewtopic.php?t=294588#p1778441
RPI_EXTRA_CONFIG:append = 'framebuffer_width=1920 \n'
RPI_EXTRA_CONFIG:append = 'framebuffer_height=1080 \n'
RPI_EXTRA_CONFIG:append = 'hdmi_force_hotplug=1 \n'
RPI_EXTRA_CONFIG:append = 'hdmi_group=2 \n'
RPI_EXTRA_CONFIG:append = 'hdmi_mode=82 \n'
RPI_EXTRA_CONFIG:append = 'hdmi_drive=2 \n'
CMDLINE:append = " video=HDMI-A-1:1920x1080@60D"

#
# Required to build linux-firmware-rpidistro, but may carry a legal risk. See
# - https://meta-raspberrypi.readthedocs.io/en/latest/ipcompliance.html
Expand Down

0 comments on commit 1fa1876

Please sign in to comment.