Message ID | aURC.1654854497455875682.GtQ3@lists.openembedded.org |
---|---|
State | New |
Headers | show |
Series | [honister] test and patches for xwayland support | expand |
This means the weston process is crashing. You need to handle it like any other crash: collect a coredump file and inspect it with gdb. Alex On Fri, 10 Jun 2022 at 11:48, Süsens, Sebastian via lists.openembedded.org <Sebastian.Suesens=baslerweb.com@lists.openembedded.org> wrote: > > Hello, > > I wrote a test (0001-PATCH-honister-weston.py-added-xwayland-test.patch). It tests if weston supports xwayland. > I tested core-image-weston on honister without my patches and with my weston patches (0002-PATCH-honister-add-xwayland-support.patch). > > > Test result: > In this file result-honister-core-image-weston-without-patch.txt the test weston_supports_xwayland test failed. > In this file result-honister-core-image-weston-patched.txt the test weston_supports_xwayland test passed. > > Note: > When I enable xwayland support on master branch I get following error message: > > weston[325]: segfault at 28 ip 00007f4e36fb8259 sp 00007ffec0d9ae00 error 4 in libwayland-server.so.0.20.0 > > > Please help me to get xwayland support on master branch. > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#166793): https://lists.openembedded.org/g/openembedded-core/message/166793 > Mute This Topic: https://lists.openembedded.org/mt/91664874/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
If I start weston as root user, weston starts like expected. When I start weston over the service /etc/init.d/weston start I see following error message in westen.log, when the system come up. failed to bind to /tmp/.X11-unix/X0: Permission denied The folder has following rights: drwxr-xr-x 2 root root 40 Jun 10 12:04 .X11-unix If I change the rights to drwxr-xrwx 2 root root 40 Jun 10 12:04 .X11-unix then it worked like expected. What is the right configuration for .X11-unix?
You need to check which user and group weston runs as, and any needed directories should be writable for those. Alex On Fri, 10 Jun 2022 at 18:43, Süsens, Sebastian via lists.openembedded.org <Sebastian.Suesens=baslerweb.com@lists.openembedded.org> wrote: > > If I start weston as root user, weston starts like expected. > > When I start weston over the service /etc/init.d/weston start > > I see following error message in westen.log, when the system come up. > > failed to bind to /tmp/.X11-unix/X0: Permission denied > > The folder has following rights: > drwxr-xr-x 2 root root 40 Jun 10 12:04 .X11-unix > > If I change the rights to > drwxr-xrwx 2 root root 40 Jun 10 12:04 .X11-unix > > then it worked like expected. > > What is the right configuration for .X11-unix? > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#166811): https://lists.openembedded.org/g/openembedded-core/message/166811 > Mute This Topic: https://lists.openembedded.org/mt/91664874/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Fri, Jun 10, 2022 at 10:19 AM, Alexander Kanavin wrote: > > You need to check which user and group weston runs as, and any needed > directories should be writable for those. Weston run as weston user and weston is in the video and input group. How shall I change the permission and owner for the patch? Proposal: 1. drwxr-xr-x weston weston .X11-unix or 2.drwxrwxr-x root video .X11-unix
video group seems more appropriate. You can also inspect how this is done on your desktop distribution and mimic that. Alex On Mon, 13 Jun 2022 at 09:18, Süsens, Sebastian via lists.openembedded.org <Sebastian.Suesens=baslerweb.com@lists.openembedded.org> wrote: > > On Fri, Jun 10, 2022 at 10:19 AM, Alexander Kanavin wrote: > > You need to check which user and group weston runs as, and any needed > directories should be writable for those. > > > Weston run as weston user and weston is in the video and input group. > > How shall I change the permission and owner for the patch? > > Proposal: > 1. drwxr-xr-x weston weston .X11-unix > > or > > 2.drwxrwxr-x root video .X11-unix > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#166829): https://lists.openembedded.org/g/openembedded-core/message/166829 > Mute This Topic: https://lists.openembedded.org/mt/91664874/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Ubuntu 20.04 has following rights: drwxrwxrwx root root .X11-unix I think this is not the best solution, so I would preferred solution 2.drwxrwxr-x root video .X11-unix
From 56f1106a75d4d51f940c5dbc410cc71108f64912 Mon Sep 17 00:00:00 2001 From: ssuesens <sebastian.suesens@baslerweb.com> Date: Fri, 10 Jun 2022 09:51:28 +0200 Subject: [PATCH] add xwayland support --- meta/recipes-graphics/wayland/weston-init.bb | 4 ++++ meta/recipes-graphics/wayland/weston_9.0.0.bb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index e02da0c358..eea803904f 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -53,6 +53,10 @@ do_install() { sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini fi + if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'yes', 'no', d)}" = "yes" ]; then + sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini + fi + if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini fi diff --git a/meta/recipes-graphics/wayland/weston_9.0.0.bb b/meta/recipes-graphics/wayland/weston_9.0.0.bb index 1f1d62ea7c..23529663c5 100644 --- a/meta/recipes-graphics/wayland/weston_9.0.0.bb +++ b/meta/recipes-graphics/wayland/weston_9.0.0.bb @@ -74,7 +74,7 @@ PACKAGECONFIG[webp] = "-Dimage-webp=true,-Dimage-webp=false,libwebp" # Weston with systemd-login support PACKAGECONFIG[systemd] = "-Dsystemd=true -Dlauncher-logind=true,-Dsystemd=false -Dlauncher-logind=false,systemd dbus" # Weston with Xwayland support (requires X11 and Wayland) -PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false" +PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false, ,xkbcomp" # colord CMS support PACKAGECONFIG[colord] = "-Dcolor-management-colord=true,-Dcolor-management-colord=false,colord" # Clients support -- 2.25.1