Running wayland without X running.

ashjas ashjas at gmail.com
Mon Jan 7 02:46:56 PST 2013


Hello,

ive just started development on wayland and am trying to run wayland
without X server.

I am on ubuntu machine 12.04 64bit with the following from glxinfo | grep
 -i opengl
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NV98
OpenGL version string: 2.1 Mesa 8.0.4
OpenGL shading language version string: 1.20
OpenGL extensions:

from lspci:
*0f:00.0 VGA compatible controller: NVIDIA Corporation G98 [GeForce 8400
GS] (rev a1)*

secondly i couldnt run this under normal user  having sudo permissions.. so
i got into the root mode.

when i run ./weston-launch i endup in some graphics but that is corrupted
 one.

and under this condition running the wayland clients like wayland-terminal
doesnt show up anything and it doesnt give any output whatsoever.

Any help what is wrong?

here is the Full error log..
-----------------------------
root at abc-HP:/home/abc/wayland/weston/src# ./weston-launch
Date: 2013-01-07 IST
[15:43:44.708] weston 1.0.0
               http://wayland.freedesktop.org/
               Bug reports to:
https://bugs.freedesktop.org/enter_bug.cgi?product=weston
               Build: 1.0.0-200-ge565b40 tests: Pass --backend so the test
suite runs with the right modules (2012-12-14 16:34:00 -0500)
[15:43:44.708] OS: Linux, 3.2.0-35-generic, #55-Ubuntu SMP Wed Dec 5
17:42:16 UTC 2012, x86_64
[15:43:44.708] warning: XDG_RUNTIME_DIR "/tmp" is not configured
correctly.  Unix access mode must be 0700 but is 777,
and XDG_RUNTIME_DIR must be owned by the user, but is
owned by UID 0.
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
couldn't open /root/.config/weston.ini
[15:43:44.714] Loading module
'/home/abc/WAYLANDINSTALLDIR/lib/weston/drm-backend.so'
couldn't open /root/.config/weston.ini
[15:43:44.715] initializing drm backend
couldn't open /root/.config/weston.ini
couldn't open /root/.config/weston.ini
[15:43:44.717] using /dev/dri/card0
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or
directory.
libEGL debug: Native platform type: drm (autodetected)
libEGL debug: EGL search path is /home/abc/WAYLANDINSTALLDIR/lib/egl
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: the best driver is DRI2
[15:43:45.034] failed to get plane resources: Invalid argument
[15:43:45.244] Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 0 - 0
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or
directory.
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[15:43:45.282] EGL version: 1.4 (DRI2)
[15:43:45.282] EGL vendor: Mesa Project
[15:43:45.282] EGL client APIs: OpenGL OpenGL_ES2
[15:43:45.282] EGL extensions: EGL_MESA_drm_image
EGL_WL_bind_wayland_display
               EGL_KHR_image_base EGL_KHR_gl_renderbuffer_image
               EGL_KHR_surfaceless_context EGL_KHR_create_context
[15:43:45.282] GL version: OpenGL ES 2.0 Mesa 9.1-devel (git-955babf)
[15:43:45.282] GLSL version: OpenGL ES GLSL ES 1.0.16
[15:43:45.282] GL vendor: nouveau
[15:43:45.282] GL renderer: Gallium 0.4 on NV98
[15:43:45.282] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_format_BGRA8888 GL_OES_depth24
               GL_OES_element_index_uint GL_OES_fbo_render_mipmap
               GL_OES_mapbuffer GL_OES_rgb8_rgba8
GL_OES_standard_derivatives
               GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_npot
               GL_OES_EGL_image GL_OES_depth_texture
               GL_OES_packed_depth_stencil
GL_EXT_texture_type_2_10_10_10_REV
               GL_APPLE_texture_max_level GL_EXT_read_format_bgra
               GL_NV_fbo_color_attachments GL_OES_EGL_image_external
               GL_OES_vertex_array_object GL_EXT_texture_rg
               GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
               GL_EXT_map_buffer_range
[15:43:45.330] GL ES 2 renderer features:
               read-back format: RGBA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: yes
[15:43:45.330] Output VGA1, (connector 12, crtc 5)
  mode 1366x768 at 59.8, preferred, current
  mode 1024x768 at 75.1
  mode 1024x768 at 70.1
  mode 1024x768 at 60.0
  mode 832x624 at 74.6
  mode 800x600 at 72.2
  mode 800x600 at 75.0
  mode 800x600 at 60.3
  mode 800x600 at 56.2
  mode 640x480 at 72.8
  mode 640x480 at 75.0
  mode 640x480 at 66.7
  mode 640x480 at 60.0
  mode 720x400 at 70.1
  mode 1366x768 at 59.8
[15:43:45.330] launching
'/home/abc/WAYLANDINSTALLDIR/libexec/weston-keyboard'
[15:43:45.339] input device Power Button, /dev/input/event1 is a keyboard
[15:43:45.339] input device Power Button, /dev/input/event0 is a keyboard
[15:43:45.341] input device USB Optical Mouse, /dev/input/event2 is a
pointer caps = relative-motion button
[15:43:45.341] input device CHICONY HP Basic USB Keyboard,
/dev/input/event3 is a keyboard
[15:43:45.342] input device HP WMI hotkeys, /dev/input/event9 is a keyboard
[362490.205]  -> wl_display at 1.get_registry(new id wl_registry at 2)
[15:43:45.436] Loading module
'/home/abc/WAYLANDINSTALLDIR/lib/weston/desktop-shell.so'
couldn't open /root/.config/weston.ini
[15:43:45.437] libwayland: using socket /tmp/wayland-0
[15:43:45.557] addfb2 failed: Invalid argument

-----------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130107/54bcf21c/attachment.html>


More information about the wayland-devel mailing list