This is the way to reproduce this issue.
Setting up:
- Patch qtwayland
- Get patch to control visibility via wayland-ivi-extension
https://codereview.qt-project.org/176211 (attached this ticket) - Add it into meta-agl-demo
diff --git a/recipes-qt/qt5/qtwayland_%.bbappend b/recipes-qt/qt5/qtwayland_%.bbappend index ed9e374..bde7949 100644 --- a/recipes-qt/qt5/qtwayland_%.bbappend +++ b/recipes-qt/qt5/qtwayland_%.bbappend @@ -22,6 +22,7 @@ FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" SRC_URI_append = "\ file://0010-Added-manifest-file-according-to-smack-3-domain-mode.patch \ + file://0002-qwaylandwindow-add-support-for-IVI-Surface-ID-proper.patch \ " SRC_URI_append_checkforkrogoth = "\ file://disable_xcomposite_egl_qt_wayland_client_buffer_integration.patch \
- Get patch to control visibility via wayland-ivi-extension
- Create weston.ini adapting ivi-shell
[core] shell=ivi-shell.so [ivi-shell] ivi-module=ivi-controller.so [output] name=HDMI-A-1 transform=270
- Prepare shell script to launch HomeScreen
#!/bin/sh cd /usr/AGL/HomeScreen ./WindowManager & ./InputEventManager & ./HomeScreenAppFrameworkBinderAGL & QT_IVI_SURFACE_ID=1000 QT_WAYLAND_SHELL_INTEGRATION="ivi-shell" ./HomeScreen&
- Configure local.conf to install HomeScreen
+ IMAGE_INSTALL_append = " HomeScreen"
- Prepare sample QML application
- IoT.bzh's template of QML application is available to reproduce this issue
https://github.com/iotbzh/app-framework-templates$ git clone https://github.com/iotbzh/app-framework-templates $ cd ~/app-framework-templates/templates/qml $ mkdir build; cd build $ cmake .. $ make
This produced a “xxxxxx-qml.wgt” package.
- IoT.bzh's template of QML application is available to reproduce this issue
Instructions to reproduce this isse:
- Create new rootfs image of agl-demo-platform for porter
- Boot porter with it
- Replace weston.ini at /etc/xdg/weston/
- Restart weston (then you can see blank screen)
root@porter:~# systemctl restart weston
The screen would be changed to blank.
- Launch HomeScreen once here and check HomeScreen picture to show up
- Install sample qml application on porter
root@porter:~# afm-util install xxxxxx-qml.wgt { "added": "xxxxxx-qml@0.1" }
- Reboot porter (to restart HomeScreen, WindowManager)
- Launch HomeScreen again then you would see nothing changes from blank screen.
- (Optional) Update render order of surface manually then HomeScreen show up again.
root@porter:~# LayerManagerControl set layer 103 render order 1000