<div dir="ltr"><div><div><div>Hi Heikki,<br><br></div>Weston-RDP under Tizen uses a specific version of FreeRDP, which is known to work well.<br><br></div>It is based upon the following upstream commit ID :  2604ff20bd12e810cfeed735b80dbe90020d781c .<br><br></div>I hope this helps.<br><div><div> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-26 15:45 GMT+01:00 Heikki Sarkanen <span dir="ltr"><<a href="mailto:hsarkane@gmail.com" target="_blank">hsarkane@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to use the RDP backend on custom Freescale iMX6 based ARM<br>
board where the only supported fbdev-backend is heavily patched:<br>
<a href="https://github.com/Freescale/meta-fsl-arm/tree/master/recipes-graphics/wayland/weston" target="_blank">https://github.com/Freescale/meta-fsl-arm/tree/master/recipes-graphics/wayland/weston</a>.<br>
I am using Yocto build system, Weston 1.7 and freerdp version:<br>
3f371b22ad67033c366e41f459747796a95633b8 which was working on some ARM<br>
board: <a href="http://lists.freedesktop.org/archives/wayland-devel/2015-February/020088.html" target="_blank">http://lists.freedesktop.org/archives/wayland-devel/2015-February/020088.html</a>.<br>
Probably I am doing something wrong because I have tried three<br>
different approaches with no luck yet:<br>
<br>
1. Use fullscreen shell to show contents of other fbdev/desktop-shell<br>
compositor.<br>
Currently fullscreen shell works and I can connect RDP client which<br>
shows blank image:<br>
weston --no-config --backend=rdp-backend.so<br>
--shell=fullscreen-shell.so --no-clients-resize<br>
--rdp-tls-cert=/home/root/test.crt --rdp-tls-key=/home/root/test.key<br>
<br>
How can I show desktop-shell contents running on fbdev-backend on this<br>
fullscreen shell compositor?<br>
<br>
2. Use desktop-shell on RDP-backend like they use on Tizen:<br>
<a href="https://wiki.tizen.org/wiki/Weston_RDP_access" target="_blank">https://wiki.tizen.org/wiki/Weston_RDP_access</a> This fails to<br>
get_shell_surface and quits:<br>
weston --no-config --backend=rdp-backend.so --shell=desktop-shell.so<br>
--no-clients-resize --rdp-tls-cert=/home/root/test.crt<br>
--rdp-tls-key=/home/root/test.key --socket=wayland-1<br>
[12:12:17.884] weston 1.7.0<br>
               <a href="http://wayland.freedesktop.org" target="_blank">http://wayland.freedesktop.org</a><br>
               Bug reports to:<br>
<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.7.0" target="_blank">https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.7.0</a><br>
               Build: 1.6.93-9-gdbd8606 <a href="http://configure.ac" target="_blank">configure.ac</a>: bump to version<br>
1.7.0 for release (2015-02-13 20:47:09 -0800)<br>
[12:12:17.885] OS: Linux, 3.10.53-alpha1.1, #1 SMP PREEMPT Tue Mar 3<br>
23:09:53 EET 2015, armv7l<br>
[12:12:17.886] Starting with no config file.<br>
[12:12:17.888] Loading module '/usr/lib/weston/rdp-backend.so'<br>
[12:12:17.983] using FreeRDP version 1.2.1<br>
[12:12:17.986] TLS support activated<br>
[12:12:17:471] [969:1992478720] [INFO][com.freerdp.core.listener] -<br>
Listening on <a href="http://0.0.0.0:3389" target="_blank">0.0.0.0:3389</a><br>
[12:12:17.988] Compositor capabilities:<br>
               arbitrary surface rotation: yes<br>
               screen capture uses y-flip: yes<br>
               presentation clock: CLOCK_MONOTONIC_RAW, id 4<br>
[12:12:17.990] Loading module '/usr/lib/weston/desktop-shell.so'<br>
[12:12:17.998] launching '/usr/lib/weston/weston-desktop-shell'<br>
[12:12:18.072] Error: /usr/lib/weston/weston-desktop-shell apparently<br>
cannot run at all.<br>
               Quitting...<br>
<br>
Does RDP backend work with desktop shell?<br>
<br>
3. Use screen-share module, which fails to find wl_shm:<br>
weston --no-config --backend=fbdev-backend.so --shell=desktop-shell.so<br>
--modules=screen-share.so --use-gl=1 --tty=1<br>
[12:33:36.522] weston 1.7.0<br>
               <a href="http://wayland.freedesktop.org" target="_blank">http://wayland.freedesktop.org</a><br>
               Bug reports to:<br>
<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.7.0" target="_blank">https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.7.0</a><br>
               Build: 1.6.93-9-gdbd8606 <a href="http://configure.ac" target="_blank">configure.ac</a>: bump to version<br>
1.7.0 for release (2015-02-13 20:47:09 -0800)<br>
[12:33:36.524] OS: Linux, 3.10.53-alpha1.1, #1 SMP PREEMPT Tue Mar 3<br>
23:09:53 EET 2015, armv7l<br>
[12:33:36.525] Starting with no config file.<br>
[12:33:36.527] Loading module '/usr/lib/weston/fbdev-backend.so'<br>
[12:33:36.568] initializing fbdev backend<br>
[12:33:36.572] compositor->use_gal2d=0<br>
[12:33:36.573] Loading module '/usr/lib/weston/gl-renderer.so'<br>
[12:33:36.628] warning: EGL_EXT_swap_buffers_with_damage not<br>
supported. Performance could be affected.<br>
[12:33:36.628] Creating fbdev output. /dev/fb0 x=0 y=0<br>
[12:33:36.628] Opening fbdev frame buffer.<br>
[12:33:36.629] Calculating pixman format from:<br>
                - type: 0 (aux: 0)<br>
                - visual: 2<br>
                - bpp: 16 (grayscale: 0)<br>
                - red: offset: 11, length: 5, MSB: 0<br>
                - green: offset: 5, length: 6, MSB: 0<br>
                - blue: offset: 0, length: 5, MSB: 0<br>
                - transp: offset: 0, length: 0, MSB: 0<br>
[12:33:36.652] EGL version: 1.4<br>
[12:33:36.652] EGL vendor: Vivante Corporation<br>
[12:33:36.652] EGL client APIs: OpenGL_ES OpenVG<br>
[12:33:36.652] EGL extensions: EGL_KHR_reusable_sync EGL_KHR_fence_sync<br>
               EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap<br>
               EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image<br>
               EGL_KHR_gl_renderbuffer_image EGL_KHR_lock_surface<br>
               EGL_KHR_create_context EGL_EXT_create_context_robustness<br>
               EGL_EXT_buffer_age EGL_EXT_protected_surface<br>
               EGL_WL_bind_wayland_display<br>
[12:33:36.653] GL version: OpenGL ES 3.0 V5.0.11.p4.25762<br>
[12:33:36.653] GLSL version: OpenGL ES GLSL ES 3.00<br>
[12:33:36.653] GL vendor: Vivante Corporation<br>
[12:33:36.653] GL renderer: Vivante GC880<br>
[12:33:36.653] GL extensions: GL_OES_vertex_type_10_10_10_2<br>
               GL_OES_vertex_half_float GL_OES_element_index_uint<br>
               GL_OES_mapbuffer GL_OES_vertex_array_object<br>
               GL_OES_compressed_ETC1_RGB8_texture<br>
               GL_OES_compressed_paletted_texture GL_OES_texture_npot<br>
               GL_OES_rgb8_rgba8 GL_OES_depth_texture<br>
               GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_depth32<br>
               GL_OES_packed_depth_stencil GL_OES_fbo_render_mipmap<br>
               GL_OES_get_program_binary GL_OES_fragment_precision_high<br>
               GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_sync<br>
               GL_EXT_texture_type_2_10_10_10_REV<br>
               GL_EXT_texture_filter_anisotropic<br>
               GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra<br>
               GL_EXT_multi_draw_arrays GL_EXT_frag_depth<br>
               GL_EXT_discard_framebuffer GL_EXT_blend_minmax<br>
               GL_EXT_multisampled_render_to_texture GL_EXT_robustness<br>
               GL_VIV_tex_direct<br>
[12:33:36.653] GL ES 2 renderer features:<br>
               read-back format: BGRA<br>
               wl_shm sub-image to texture: no<br>
               EGL Wayland extension: yes<br>
[12:33:36.654] Chosen EGL config details:<br>
               RGBA bits: 8 8 8 0<br>
               swap interval range: 0 - 10<br>
[12:33:36.654] fbdev output 1280×800 px<br>
               guessing 61 Hz and 96 dpi<br>
[12:33:36.657] input device 'gpio-keys.28', /dev/input/event0 is a keyboard<br>
[12:33:36.661] input device 'Lite-On Technology Corp. HP Basic USB<br>
Keyboard', /dev/input/event4 is a keyboard<br>
[12:33:36.661] launching '/usr/lib/weston/weston-keyboard'<br>
[12:33:36.752] Compositor capabilities:<br>
               arbitrary surface rotation: yes<br>
               screen capture uses y-flip: yes<br>
               presentation clock: CLOCK_MONOTONIC_RAW, id 4<br>
[12:33:36.753] Loading module '/usr/lib/weston/desktop-shell.so'<br>
[12:33:36.756] Loading module '/usr/lib/weston/screen-share.so'<br>
[12:33:36.813] launching '/usr/lib/weston/weston-desktop-shell'<br>
[12:33:39.859] Screen share failed: No wl_shm found<br>
[12:33:39.859] unknown child process exited<br>
<br>
Does screen share work with fbdev-backend?<br>
<br>
Any help would be really appreciated.<br>
<br>
BR,<br>
Heikki Sarkanen<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><font>Regards,<br>
<br>
<i><b>Manuel BACHMANN</b><br>
Tizen Project<br>
VANNES-FR</i><br>
</font></div></div>
</div>