IMX8QXP - Scarthgap - L 6.6.52-weston 12-ivishell
There is coloured/old screen is coming before updated screen. How to avoid/cleared/remove it.
weston.ini
[core]
#gbm-format=argb8888
idle-time=0
shell=ivi-shell.so
# use-g2d=1
repaint-window=16
# pageflip-timeout=0
background-color=0x00000000
[libinput]
touchscreen_calibrator=true
[output]
name=LVDS-1
mode=1280x720@60
[ivi-shell]
ivi-shell-user-interface=weston-ivi-shell-user-interface
ivi-input-module=ivi-input-controller.so
ivi-id-agent-module=ivi-id-agent.so
input-method=ivi-input-controller
base-layer-id=1000
base-layer-id-offset=10000
workspace-background-layer-id=2000
workspace-layer-id=3000
application-layer-id=4000
transition-duration=0
[desktop-app-default]
default-surface-id=2000000
default-surface-id-max=2001000
Hi,
I tried the suggested one still same. The coloured/old screen still appearing.
Is there any other suggestion or configuration required ?
Thanks & regards,
VKS
Hello,
Please try to change background color to 0x00000000 and uncomment gbm-format.
You also can try to add a pre-start step to the Weston systemd service to clear the display before Weston initializes:
echo 1 > /sys/class/graphics/fbx/blank
Best regards.
Hello,
Thank you for the update.
This issue was reported before in a previous weston-imx-10.0.1 and solved with this patch:
diff --git a/libweston/renderer-g2d/g2d-renderer.c b/libweston/renderer-g2d/g2d-renderer.c
index 245a50de..d9df8b4e 100644
--- a/libweston/renderer-g2d/g2d-renderer.c
+++ b/libweston/renderer-g2d/g2d-renderer.c
@@ -2199,6 +2199,7 @@ drm_create_g2d_image(struct g2d_surfaceEx* g2dSurface,
buffer->buf_vaddr = vaddr;
buffer->buf_size = size;
g2dSurface->base.planes[0] = buffer->buf_paddr;
+ memset(buffer->buf_vaddr, 0x00, size);
g2dSurface->base.left = 0;
g2dSurface->base.top = 0;
g2dSurface->base.right = w;
Add a memset when get the buffer, it can clear the buffer when weston start.
In last weston-imx-15.0.1, this changes and a port is needed.
Internal team confirmed that gl-renderer is not presenting the issue so, could you please help check if using gl-renderer helps you avoid the issue? (# use-g2d=1).
Also, please share what you are seeing in your screen to understand better the behavior.
Best regards.
Hi,
please find the images,
Yes by using use-g2d=1 avoided coloured screen. But I seen the frame loss as well as no video is playing.
And one more thing if I used use-g2d=1 , this is for software acceleration right ? . But we need hardware acceleration to avoid the frame loss. Please check and confirm.
Thanks & regards,
VKS