meta-agl-bsp: meta-sancloud: weston-ini-conf: Use 720p resolution where possible 18/21318/1
authorPaul Barker <paul.barker@sancloud.co.uk>
Mon, 22 Apr 2019 22:47:33 +0000 (22:47 +0000)
committerPaul Barker <paul.barker@sancloud.co.uk>
Tue, 14 May 2019 19:32:50 +0000 (19:32 +0000)
The BBE is has fairly limited CPU and Graphics power so everything is
sluggish at 1080p. Things work much better at 720p.

However, if the 'hdmi-a-1-270.cfg' file has been removed (for example, when
building the cluster demo) then don't try to modify it.

Bug-AGL: SPEC-2409

Change-Id: I614bf6a7d65f5d51b6f9b1b776851562151fe2f6
Signed-off-by: Paul Barker <paul.barker@sancloud.co.uk>
meta-agl-bsp/meta-sancloud/recipes-graphics/wayland/weston-ini-conf.bbappend

index f2a27ba..e737b54 100644 (file)
@@ -1,3 +1,6 @@
 do_configure_append_bbe() {
     echo 'gbm-format=rgb565' >> ${WORKDIR}/core.cfg
+    if [[ -e "${WORKDIR}/hdmi-a-1-270.cfg" ]]; then
+        echo 'mode=1280x720' >> ${WORKDIR}/hdmi-a-1-270.cfg
+    fi
 }