<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<div>Hello,</div>
<div>
<br /></div>
<div>As we discussed previously, I have been trying to run X-clients on my Weston + Xwayland environment.</div>
<div>I think I have come to a point where my Wayland succeeds in launching Xwayland, i.e., I am able to get those three prints you mentioned in the trailing email.</div>
<div>
<br /></div>
<div>When I run xeyes on my Weston+Xwayland environment, I am getting following in /var/log/weston.log :</div>
<div>
<br /></div>
<div>Spawned Xwayland server, pid 1474
<br />Failed to create EGL context with GL
<br />EGL setup failed, disabling glamor
<br />Failed to initialize glamor, falling back to sw
<br />
<br /></div>
<div>[12:44:13.529] xfixes version: 5.0
<br />[12:44:13.554] created wm, root 77
<br /></div>
<div>
<br /></div>
<div>The XKEYBOARD keymap compiler (xkbcomp) reports:
<br />> Warning: Unsupported high keycode 372 for name <I372> ignored
<br />> X11 cannot support keycodes above 255.
<br />> This warning only shows for the first high keycode.
<br />Errors from xkbcomp are not fatal to the X server
<br /></div>
<div>
<br /></div>
<div>(EE) failed to read Wayland events: Broken pipe
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>However, on the terminal, there is a delay of 1-2 seconds and then I get following:
<br /></div>
<div>
<br /></div>
<div>root@am57xx-evm:/mnt# ./xeyes
<br />Warning: locale not supported by Xlib, locale set to C
<br />Warning: X locale modifiers not supported, using default
<br />X connection to :0 broken (explicit kill or server shutdown).
<br /></div>
<div>
<br /></div>
<div>And after that weston stops and it doesn't work even when I do "/etc/init.d/weston start".</div>
<div>I have to reboot the board again to make weston work.</div>
<div>
<br /></div>
<div>Can you tell what did go wrong here?
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div><font size="2"><b>On Wed, 11 Dec 2019 12:10:31 +0200, Pekka Paalanen wrote</b></font></div>
<font size="2">On Wed, 11
Dec 2019 14:07:50 +0530
<br />
"Devashish Tiwari" <devashish@cdot.in> wrote:
<br />
<br />
> Hi,
<br />
>
<br />
> Thanks for your response.
<br />
>
<br />
> I am still not sure about how to run X-clients (xeyes, xcalc, xclock
<br />
> etc) on Weston running with xwayland module.
<br />
>
<br />
> I did:
<br />
>
<br />
> export DISPLAY=':0'
<br />
>
<br />
> and tried to run Xclient. But I am getting the same error:
<br />
>
<br />
> Error: Can't open display: :0
<br />
>
<br />
> I don't know what's the reason behind this, even though Weston is
<br />
> listening on the X11 socket, as I am getting "xserver listening on
<br />
> display :0" in weston.log
<br />
>
<br />
<br />
Hi,
<br />
<br />
then I am equally at loss, too.
<br />
<br />
Please run the X11 app with 'strace' and see what exactly fails.
<br />
<br />
> Can you point me at some basic X-client/app which I'd be able to run
<br />
> successfully on my weston+xwayland environment?
<br />
<br />
You already tried them, and I can't see anything wrong in what you
<br />
wrote.
<br />
<br />
Except, you didn't say Weston logging a message where it actually
<br />
succeeded in launching Xwayland. Something like this:
<br />
<br />
[12:08:05.666] xserver listening on display :1
<br />
...
<br />
[12:08:11.198] Spawned Xwayland server, pid 26539
<br />
[12:08:11.475] xfixes version: 5.0
<br />
[12:08:11.491] created wm, root 924
<br />
<br />
Those last three lines indicate success.
<br />
<br />
Thanks,
<br />
pq
<br />
<br />
<br />--
<br />
<br />
Thanks & Regards,
<br />
Devashish Tiwari
<br />
</font>
</BODY>
</HTML>