Adaptation/N9-N950/Wayland

= Introduction =

Some basic instructions for trying out Wayland on Nemo on N9/N950. These instructions will get simpler over time. If you need help with it, ask me (w00t) on IRC.

[11:16:53] ssu ar wayland http://repo.merproject.org/obs/home:/w00t:/branches:/nemo:/devel:/hw:/ti:/omap3:/n9xx-common/latest_armv7hl/ [11:16:56] ssu ur   [11:16:58] zypper ref -f wayland [11:17:11] zypper up ti-omap3-sgx # don't say yes or no here yet, tell me what it says first [11:18:25]  let's see [11:19:36]  The following NEW packages are going to be installed: [11:19:36]  ti-omap3-sgx-wayland-wsegl wayland [11:19:37]  The following package is going to be upgraded: [11:19:38]  ti-omap3-sgx [11:19:53] excellent [11:19:56] yes, go ahead with that [11:20:05]  okay, that's done [11:20:18] now reboot your device and make sure it starts the existing user session [11:20:43] (it won't use wayland until we modify powervr's ini file, and ideally, we haven't broken x11 with this :))   [11:24:09]  rebooted, looks good    [11:24:17] \o/    [11:24:18] ok.. sec    [11:24:28] open /etc/powervr.ini as root    [11:24:40] in '[default]' section, add: WindowSystem=/usr/lib/waylandwsegl.so    [11:25:06] zypper in qt5-qtwayland-wayland_egl-examples qt5-plugin-imageformat-jpeg qt5-plugin-platform-eglfs qt5-qtsvg-plugin-imageformat-svg    [11:25:44] systemctl stop user-session@1000.service    [11:26:07] cd /usr/lib/qt5/examples/qtwayland/qml-compositor/    [11:26:27] QT_QPA_EGLFS_DEPTH=16 WSEGL_DEBUG=5 QT_COMPOSITOR_NEGATE_INVERTED_Y=1 ./qml-compositor -platform eglfs    [11:29:27]  oh yeah, can see the qml compositor screen    [11:29:35] \o/    [11:29:42] now.. you should be able to start a simple client    [11:29:50] let me get you minimer (i should really just package the damn thing) [11:29:54]  I have it   [11:29:56] oh    [11:29:58] excellent [11:30:15] WAYLAND_DEBUG=1 QT_WAYLAND_DISABLE_WINDOWDECORATION=1 QT_QPA_EGLFS_HIDECURSOR=1 /usr/lib/qt5/bin/qmlscene -platform wayland /home/nemo/minimer/main.qml [11:34:33] some fair warnings: [11:34:45] performance is not going to be great, you can expect around 40fps fairly consistently [11:34:58] (it's always in composited mode, there is no direct rendering at this stage, maybe ever) [11:35:39] i also fully expect some crashes/etc when running things, i've even seen the odd one when interacting with qml compositor for instance.. backtraces are useful if you can get them