<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<div>Hi,</div>
<div>
<br /></div>
<div>I am nowhere close to getting those 3 lines you mentioned in the trailing mail.</div>
<div>Also note that, my $WAYLAND_DISPLAY variable is set to wayland-0 and $DISPLAY is set to :0. Is that alright?</div>
<div>
<br /></div>
<div>I am once again attaching my weston logs here for your analysis. Please let me know how to get those three lines in the log, as in, how should I make Xwayland spawn as a separate pid.</div>
<div>Right now I am not getting any trace of Xwayland in "ps -ef" or anywhere else. The only silver lining I see here is the log "xserver listening on display :0" in weston.log</div>
<div>
<br /></div>
<div>
<br /></div>
<div>------------------------Weston log start------------------</div>
<div>
<br /></div>
<div>Date: 2019-12-12 IST
<br />[12:06:24.838] weston 2.0.0
<br /> http://wayland.freedesktop.org
<br /> Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=2.0.0
<br /> Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800)
<br />[12:06:24.838] Command line: weston --idle-time=0
<br />[12:06:24.838] OS: Linux, 4.14.79-ge669d52447, #1 SMP PREEMPT Fri Nov 29 11:48:31 IST 2019, armv7l
<br />[12:06:24.843] Using config file '/etc//weston.ini'
<br />[12:06:24.877] Output repaint window is 7 ms maximum.
<br />[12:06:24.927] Loading module '/usr/lib/libweston-2/drm-backend.so'
<br />[12:06:24.939] initializing drm backend
<br />[12:06:24.944] using /dev/dri/card0
<br />[12:06:24.959] Loading module '/usr/lib/libweston-2/gl-renderer.so'
<br />failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
<br />failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
<br />loaded module : gbm_pvr.so
<br />found valid GBM backend : gbm_pvr.so
<br />[12:06:25.146] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
<br />[12:06:25.166] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
<br />[12:06:25.166] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
<br />[12:06:25.166] Retrieving EGL client extension string failed.
<br />[12:06:25.166] EGL_KHR_surfaceless_context available
<br />[12:06:25.251] EGL version: 1.4 build 1.14@3699939 (MAIN)
<br />[12:06:25.251] EGL vendor: Imagination Technologies
<br />[12:06:25.251] EGL client APIs: OpenGL_ES
<br />[12:06:25.251] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
<br /> EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
<br /> EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
<br /> EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
<br /> EGL_IMG_context_priority EGL_IMG_hibernate_process
<br /> EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
<br /> EGL_KHR_wait_sync EGL_KHR_create_context
<br /> EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
<br />[12:06:25.251] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
<br />[12:06:25.251] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
<br />[12:06:25.251] GL vendor: Imagination Technologies
<br />[12:06:25.251] GL renderer: PowerVR SGX 544MP
<br />[12:06:25.251] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
<br /> GL_OES_vertex_half_float GL_OES_texture_float
<br /> GL_OES_texture_half_float GL_OES_element_index_uint
<br /> GL_OES_mapbuffer GL_OES_fragment_precision_high
<br /> GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
<br /> GL_OES_EGL_image_external GL_OES_required_internalformat
<br /> GL_OES_depth_texture GL_OES_get_program_binary
<br /> GL_OES_packed_depth_stencil GL_OES_standard_derivatives
<br /> GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
<br /> GL_OES_surfaceless_context GL_EXT_discard_framebuffer
<br /> GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
<br /> GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
<br /> GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
<br /> GL_EXT_texture_rg GL_EXT_draw_buffers
<br /> GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
<br /> GL_IMG_texture_compression_pvrtc
<br /> GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
<br /> GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
<br /> GL_IMG_program_binary GL_IMG_uniform_buffer_object
<br /> GL_IMG_multisampled_render_to_texture GL_KHR_debug
<br />[12:06:25.251] GL ES 2 renderer features:
<br /> read-back format: RGBA
<br /> wl_shm sub-image to texture: no
<br /> EGL Wayland extension: yes
<br />[12:06:25.267] event1 - [12:06:25.267] pixcir_tangoc: [12:06:25.267] is tagged by udev as: Touchscreen
<br />[12:06:25.267] event1 - [12:06:25.267] pixcir_tangoc: [12:06:25.267] device is a touch device
<br />[12:06:25.269] event3 - [12:06:25.269] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.269] is tagged by udev as: Keyboard
<br />[12:06:25.269] event3 - [12:06:25.269] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.269] device is a keyboard
<br />[12:06:25.272] event4 - [12:06:25.272] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.272] is tagged by udev as: Keyboard
<br />[12:06:25.272] event4 - [12:06:25.272] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.272] device is a keyboard
<br />[12:06:25.354] event2 - [12:06:25.354] HID 04b3:310d: [12:06:25.354] is tagged by udev as: Mouse
<br />[12:06:25.354] event2 - [12:06:25.354] HID 04b3:310d: [12:06:25.354] device is a pointer
<br />[12:06:25.355] event0 - [12:06:25.355] gpio_keys: [12:06:25.355] is tagged by udev as: Keyboard
<br />[12:06:25.355] event0 - [12:06:25.356] gpio_keys: [12:06:25.356] device is a keyboard
<br />[12:06:25.557] Registered plugin API 'weston_drm_output_api_v1' of size 12
<br />[12:06:25.558] Chosen EGL config details:
<br /> RGBA bits: 8 8 8 8
<br /> swap interval range: 1 - 1
<br />[12:06:25.567] cursor buffers unavailable, using gl cursors
<br />[12:06:25.567] Failed to initialize backlight
<br />[12:06:25.567] Output UNNAMED-1, (connector 35, crtc 39)
<br /> mode 800x480@59.5, preferred, current
<br />[12:06:25.568] Applying calibration: 240.000000 -9.638554 -187104.578125 48.000000 -1.445783 -37293.683594 (normalized -233.880722 -77.695175)
<br />[12:06:25.568] Compositor capabilities:
<br /> arbitrary surface rotation: yes
<br /> screen capture uses y-flip: yes
<br /> presentation clock: CLOCK_MONOTONIC, id 1
<br /> presentation clock resolution: 0.000000001 s
<br />[12:06:25.659] Loading module '/usr/lib/weston/desktop-shell.so'
<br />[12:06:25.770] launching '/usr/libexec/weston-keyboard'
<br />[12:06:25.804] Loading module '/usr/lib/libweston-2/xwayland.so'
<br />[12:06:26.231] Registered plugin API 'weston_xwayland_v1' of size 16
<br />[12:06:26.231] Registered plugin API 'weston_xwayland_surface_v1' of size 8
<br />[12:06:26.231] xserver listening on display :0
<br />[12:06:26.231] launching '/usr/libexec/weston-desktop-shell'
<br />[12:06:26.235] event3 - [12:06:26.235] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.235] is tagged by udev as: Keyboard
<br />[12:06:26.235] event3 - [12:06:26.235] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.235] device is a keyboard
<br />[12:06:26.238] event4 - [12:06:26.238] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.238] is tagged by udev as: Keyboard
<br />[12:06:26.238] event4 - [12:06:26.238] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.238] device is a keyboard
<br />could not load cursor 'dnd-move'
<br />could not load cursor 'dnd-copy'
<br />could not load cursor 'dnd-none'
<br />could not load cursor 'dnd-move'
<br />could not load cursor 'dnd-copy'
<br />could not load cursor 'dnd-none'
<br />xkbcommon: ERROR: couldn't find a Compose file for locale "C"
<br />could not create XKB compose table for locale 'C'. Disabiling compose
<br />xkbcommon: ERROR: couldn't find a Compose file for locale "C"
<br />could not create XKB compose table for locale 'C'. Disabiling compose</div>
<div>
<br /></div>
<div>----------------------------Weston log end---------------------------
<br /></div>
<div>
<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 />
<br />
Devashish Tiwari
<br />
Fault Tolerance
<br />
#8587
<br />
<br />
</font>
</BODY>
</HTML>