Weston desktop on Display Port with Petalinux 2023.1 BSP

Forums Devices OSDZU3 Weston desktop on Display Port with Petalinux 2023.1 BSP

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #14232
      FLeblanc OTIFLeblanc OTI
      Participant

        Hello!

        I just started working on the OSDZU3-REF eval board. I created a new SD image with your Petalinux 2023.1 BSP and it booted on the first try!
        The config changes for my image is: switched to systemd, disabled libmali and enabled mesa + Lima GPU driver… All of which are working fine on the Xilinx ZCU104.

        I got a problem with Weston desktop though, the logs show that it’s starting correctly, using the output LVDS1, even if there is nothing at this interface. Changing the weston.ini config to use Displayport does not work, it still uses LVDS-1.

        vi /etc/xdg/weston/weston.ini
        [output]
        name=DP-1
        mode=1920×1080@60

        Listing /sys/class/drm/ shows the display port, but on card0 rather than on card1… I’m not sure if this is relevant. Besides the weston.ini output config, I didn’t find away to change the weston output.

        How can I send the weston output to display port ?

        Thanks

      • #14233
        Eshtaartha BasuEshtaartha Basu
        Moderator

          Hello  FLeblanc OTI,

          Once you create a project using the OSDZU3 Petalinux 2023.1 BSP, you can find an if/else statement in “weston.env” file under “meta-osdzu3” layer at:
          <your_bsp_project_dir>/project-spec/meta-osdzu3/recipes-graphics/wayland/weston-init/weston.env. The function helps choose between LVDS and DP outputs. For debugging, you could modify this function to your liking and see how things change. Screenshots attached.

          However, the recommended approach for long term modifications to the behavior is to create your own custom meta-user layer, add the layer to the project and override the graphics settings of meta-osdzu3 from your layer. Your own custom user layer would help you modify several other settings of the project as well, all under one layer, without touching/modifying the official layers underneath.

          Attachments:
      Viewing 1 reply thread
      • You must be logged in to reply to this topic.