From def59d5aa61099be03a81e5189014ffe23f222e5 Mon Sep 17 00:00:00 2001 From: Fumiya Kohzu Date: Thu, 30 Nov 2023 13:28:56 +0900 Subject: UnifiedHMI: Update SRCREV for RVGPU and virtio-loopback-driver, and upgrade mesa-virtio. - OSS RVGPU update: Support for xdg_shell. - OSS virtio-gpu-driver update: Simplify directory structure, not use cmake. - Recipe updates: 1, Update SRCREV for RVGPU. Since RVGPU now supports xdg_shell in OSS, the patch enabling xdg_shell has been removed. 2, Remove the agl-shell-desktop interface because it is planned to be phased out. 3, Upgrade the base mesa for mesa-virtio from 18.2.0 to 20.3.5. Remove patches that were used with mesa-18.2.0. We are exploring ways to run it with the newer mesa. 4, Update SRCREV for virtio-loopback-driver. 5, Update meta-data for patches of RVGPU and virtio-gpu-driver. The content of the patches remains unchanged. We are planning to support a gRPC protocol interface for RVGPU. Bug-AGL: SPEC-4898 Change-Id: Ie314f40687c92ef93258b8fdc817584586d20e25 Signed-off-by: Fumiya Kohzu --- meta-uhmi/meta-rvgpu/README.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'meta-uhmi/meta-rvgpu/README.md') diff --git a/meta-uhmi/meta-rvgpu/README.md b/meta-uhmi/meta-rvgpu/README.md index 64ed4c00..b93e99d8 100644 --- a/meta-uhmi/meta-rvgpu/README.md +++ b/meta-uhmi/meta-rvgpu/README.md @@ -73,22 +73,30 @@ ifconfig 192.168.0.10 netmask 255.255.255.0 Prepare two images, one as the Sender and the other as the Receiver. It is necessary for the Sender and Receiver to be within the same network. -**Receiver side** +**Receiver side** ``` $ export XDG_RUNTIME_DIR=/run/user/ -$ rvgpu-renderer -b 1080x1500@0,0 -p & +$ rvgpu-renderer -b @0,0 -p & ``` + Replace the placeholders with the appropriate values: - ``: Specify according to your environment, for example:1001 +- ``: Enter an usable area for example: 1080x1488 + With the following command, you can know the usable area. + ``` + $ journalctl | grep -i "usable area" + # Example Output: + Nov 29 11:42:53 qemux86-64 agl-compositor[259]: [11:42:53.166] Usable area: 1080x1488+0,216 + ``` - ``: Enter an available port number, for example: 55555 + **Sender side** Create the following shell script **run_remote_app.sh** in any `` for a smooth experience. ``` #!/bin/bash -mkdir -p /run/user/ -export XDG_RUNTIME_DIR=/run/user/ +export XDG_RUNTIME_DIR=/tmp export LD_LIBRARY_PATH=/usr/lib/mesa-virtio # ------------- @@ -96,36 +104,30 @@ export LD_LIBRARY_PATH=/usr/lib/mesa-virtio # ------------- $@ ``` -Replace the placeholders with the appropriate values: -- ``: You can assign any UID, for example: 0 Save the file and run the following to start weston. ``` -$ rvgpu-proxy -s 1080x1500@0,0 -n : & +$ rvgpu-proxy -s 1080x1488@0,0 -n : & $ /run_remote_app.sh weston --backend drm-backend.so -Swayland-0 --seat=seat_virtual -i 0 & ``` Replace the placeholders with the appropriate values: - ``: Port set in the renderer. + After completing these steps, the Weston screen from the Sender will be transferred and displayed on the Receiver using rvgpu-proxy and rvgpu-renderer. You can verify that everything is functioning properly by launching wayland applications on the Sender side, such as: ``` -$ /run_remote_app.sh weston-simple-egl -f +$ weston-simple-egl -f ``` You can also verify the touch or keyboard operation support of the RVGPU by using app such as ``` -$ /run_remote_app.sh weston-smoke -$ /run_remote_app.sh weston-editor +$ weston-smoke +$ weston-editor ``` **Note**: There are known issues with mouse, such as the cursor becoming invisible and occasional flickering of a green screen. -**Appendix**: -- You can freely change the display position of the transferred surface in rvgpu-renderer by w option, such as - ``` - rvgpu-renderer -b 1080x1500@0,0 -p -w , - ``` - The coordinates `, = 0,0` represent the top-left corner, and the default position is `0,250`. - +**Appendix** - By building the RVGPU on Ubuntu, it is possible to enable bidirectional remote rendering between the agl-demo-platform and Ubuntu. - For the build procedure on Ubuntu, see the following URL: https://github.com/unified-hmi/remote-virtio-gpu +For the build procedure on Ubuntu, see the following URL: https://github.com/unified-hmi/remote-virtio-gpu + -- cgit 1.2.3-korg