[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wayland setup
From: |
Thorsten Wilms |
Subject: |
Re: Wayland setup |
Date: |
Mon, 12 Mar 2018 21:54:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 12.03.2018 20:05, Gábor Boskovits wrote:
This still looks like that the XDG_RUNTIME_DIR setting is not correct in
weston-launch.
I found out that the script
---
#! /bin/sh
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
---
doesn't work. Are there bashisms in it? I wanted to make it `#!
/bin/bash`, but the shell claimed that being unknown.
I *thought* I checked with `echo $XDG_RUNTIME_DIR` before and the clear
error message about it did go away, but when I set XDG_RUNTIME_DIR
manually and confirmed its existence and mode today, suddenly I got,
with weston-launch NOT in setuid:
---
address@hidden ~$ export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
address@hidden ~$ echo $XDG_RUNTIME_DIR
/tmp/1000-runtime-dir
address@hidden ~$ mkdir "${XDG_RUNTIME_DIR}"
mkdir: cannot create directory '/tmp/1000-runtime-dir': File exists
address@hidden ~$ chmod 0700 "${XDG_RUNTIME_DIR}"
address@hidden ~$ weston-launch
Date: 2018-03-12 CET
[21:03:08.884] weston 3.0.0
http://wayland.freedesktop.org
Bug reports to:
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=3.0.0
Build: unknown (not built from git or tarball)
[21:03:08.884] Command line:
/gnu/store/rm8q589057mxqlld1d2zwh5gi9y6cln2-weston-3.0.0/bin/weston
[21:03:08.884] OS: Linux, 4.15.8-gnu, #1 SMP 1, x86_64
[21:03:08.884] Using config file '/home/thorwil/.config/weston.ini'
[21:03:08.885] Output repaint window is 7 ms maximum.
[21:03:08.885] Loading module
'/gnu/store/rm8q589057mxqlld1d2zwh5gi9y6cln2-weston-3.0.0/lib/libweston-3/drm-backend.so'
[21:03:08.890] initializing drm backend
[21:03:08.890] logind: not running in a systemd session
[21:03:08.890] logind: cannot setup systemd-logind helper (-61), using
legacy fallback
[21:03:08.891] using /dev/dri/card0
[21:03:08.891] Loading module
'/gnu/store/rm8q589057mxqlld1d2zwh5gi9y6cln2-weston-3.0.0/lib/libweston-3/gl-renderer.so'
[21:03:09.177] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11
EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless
[21:03:09.177] warning: neither EGL_EXT_swap_buffers_with_damage or
EGL_KHR_swap_buffers_with_damage is supported. Performance could be
affected.
[21:03:09.177] EGL_KHR_surfaceless_context available
radeon: Failed to allocate a buffer:
radeon: size : 65536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 4
radeon: Failed to allocate a buffer:
radeon: size : 65536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 2
radeon: flags : 4
[21:03:09.185] EGL version: 1.5 (DRI2)
[21:03:09.185] EGL vendor: Mesa Project
[21:03:09.185] EGL client APIs: OpenGL OpenGL_ES
[21:03:09.185] EGL extensions: EGL_EXT_buffer_age
EGL_EXT_create_context_robustness
EGL_EXT_image_dma_buf_import
EGL_KHR_cl_event2 EGL_KHR_config_attribs
EGL_KHR_create_context
EGL_KHR_create_context_no_error EGL_KHR_fence_sync
EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image
EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
EGL_KHR_no_config_context EGL_KHR_reusable_sync
EGL_KHR_surfaceless_context EGL_KHR_wait_sync
EGL_MESA_configless_context EGL_MESA_drm_image
EGL_MESA_image_dma_buf_export EGL_WL_bind_wayland_display
[21:03:09.185] GL version: OpenGL ES 3.0 Mesa 17.3.1
[21:03:09.185] GLSL version: OpenGL ES GLSL ES 3.00
[21:03:09.185] GL vendor: X.Org
[21:03:09.185] GL renderer: AMD RV730 (DRM 2.50.0 / 4.15.8-gnu, LLVM 3.9.1)
[21:03:09.185] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_compression_dxt1
GL_EXT_texture_format_BGRA8888
GL_OES_compressed_ETC1_RGB8_texture 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_float
GL_OES_texture_float_linear GL_OES_texture_half_float
GL_OES_texture_half_float_linear GL_OES_texture_npot
GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode
GL_OES_EGL_image GL_OES_depth_texture
GL_OES_packed_depth_stencil
GL_EXT_texture_type_2_10_10_10_REV
GL_OES_get_program_binary GL_APPLE_texture_max_level
GL_EXT_discard_framebuffer GL_EXT_read_format_bgra
GL_EXT_frag_depth GL_NV_fbo_color_attachments
GL_OES_EGL_image_external GL_OES_EGL_sync
GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
GL_OES_depth_texture_cube_map GL_OES_required_internalformat
GL_OES_surfaceless_context GL_EXT_color_buffer_float
GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix
GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture
GL_EXT_copy_image GL_EXT_draw_buffers_indexed
GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
address@hidden ~$ led to create input devices option 'seat', udev device
property ID_SEAT)itted).).
---
After making weston-launch setuid again:
---
address@hidden ~$ weston-launch
address@hidden ~$ led to create input devices option 'seat', udev device
property ID_SEAT)itted).).e is supported. Performance could be affected.
---
?!
Could you possibly strace if it tries to open your XDG_RUNTIME_DIR
directory?
Attached (hope it works on this list).
`strace weston-launch &> starce_weston-launch.txt` does not contain
"tmp", "runtime" or "XDG", but:
"Error opening device /dev/input/eventX: Permission denied" for X in [0-9].
Guess I have to doublecheck that setuid thing now.
--
Thorsten Wilms
thorwil's design for free software:
http://thorwil.wordpress.com/
strace_weston-launch.txt.bz2
Description: application/bzip
Re: Wayland setup, Thorsten Wilms, 2018/03/14