## How to run RVGPU remotely 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** ``` $ export XDG_RUNTIME_DIR=/run/user/ $ rvgpu-renderer -b @0,0 -p & ``` Replace the placeholders with the appropriate values: - ``: Specify according to your environment, for example: 200 - ``: Enter an usable area for example: 1920x1080 - ``: 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 export XDG_RUNTIME_DIR=/tmp export LD_LIBRARY_PATH=/usr/lib/mesa-virtio # ------------- # launch app # ------------- $@ ``` Save the file and run the following to start weston. ``` $ rvgpu-proxy -s @0,0 -n : & $ EGLWINSYS_DRM_DEV_NAME= /run_remote_app.sh rvgpu-wlproxy -s -S & ``` Replace the placeholders with the appropriate values: - ``: Port set in the renderer. - ``: Specify your WAYLAND_DISPLAY socket name, for example: wayland-uhmi-0 - ``: Specify rvgpu drm device path generated by rvgpu-proxy, for example: /dev/dri/rvgpu_virtio0 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: ``` $ WAYLAND_DISPLAY= /run_remote_app.sh weston-simple-egl -f ``` You can also verify the touch or keyboard operation support of the RVGPU by using app such as ``` $ WAYLAND_DISPLAY= /run_remote_app.sh weston-smoke $ WAYLAND_DISPLAY= /run_remote_app.sh weston-editor ``` **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