Running Weston in a LXC container: couldn't commit new state: Permission denied/repaint-flush failed: No such file or directory
I'm running weston inside a lxc container. And weston starts running and detected the right display (HDMI-A-1). But I get these errors:
Here's the log:
weston 10.0.2
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 10.0.2
[15:55:59.262] Command line: weston --tty=1
[15:55:59.262] OS: Linux, 5.15.71-17.1.2, #1 SMP PREEMPT Mon Aug 26 14:28:10 UTC 2024, aarch64
[15:55:59.262] Flight recorder: enabled
[15:55:59.263] Using config file '/etc/xdg/weston/weston.ini'
[15:55:59.263] Output repaint window is 16 ms maximum.
[15:55:59.263] Loading module '/usr/lib/libweston-10/drm-backend.so'
[15:55:59.269] initializing drm backend
[15:55:59.270] Trying logind launcher...
[15:55:59.270] logind: failed to get session seat
[15:55:59.271] logind: cannot setup systemd-logind helper error: (No data available), using legacy fallback
[15:55:59.271] Trying weston_launch launcher...
[15:55:59.271] could not get launcher fd from env
[15:55:59.271] Trying direct launcher...
[15:55:59.273] The path variable is: /dev/dri/card0
[15:55:59.273] drmGetMagic result: 0x0, magic value: 0x1
Auth failed: No such file or directory
[15:55:59.273] drmAuthMagic result: 0x0, magic value: 0x1
[15:55:59.273] Outside is_drm_master condition
[15:55:59.274] The path variable is: /dev/dri/card1
[15:55:59.274] drmGetMagic result: 0x0, magic value: 0x2
Auth failed: Permission denied
[15:55:59.274] drmAuthMagic result: 0xfffffff3, magic value: 0x2
[15:55:59.274] Outside is_drm_master condition
[15:55:59.276] using /dev/dri/card1
[15:55:59.276] DRM: supports atomic modesetting
[15:55:59.276] DRM: does not support GBM modifiers
[15:55:59.276] DRM: supports picture aspect ratio
[15:55:59.277] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[15:55:59.288] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_platform_base EGL_KHR_platform_wayland
EGL_EXT_platform_wayland EGL_EXT_device_query
EGL_EXT_device_drm EGL_EXT_device_drm_render_node
EGL_KHR_platform_gbm
[15:55:59.293] EGL device extensions: EGL_EXT_client_extensions
EGL_EXT_platform_base EGL_KHR_platform_wayland
EGL_EXT_platform_wayland EGL_EXT_device_query
EGL_EXT_device_drm EGL_EXT_device_drm_render_node
EGL_KHR_platform_gbm
[15:55:59.294] EGL version: 1.5
[15:55:59.294] EGL vendor: Vivante Corporation
[15:55:59.294] EGL client APIs: OpenGL_ES OpenVG
[15:55:59.294] EGL extensions: EGL_KHR_fence_sync EGL_KHR_reusable_sync
EGL_KHR_wait_sync EGL_KHR_image EGL_KHR_image_base
EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_lock_surface
EGL_KHR_create_context EGL_KHR_no_config_context
EGL_KHR_surfaceless_context EGL_KHR_get_all_proc_addresses
EGL_EXT_create_context_robustness EGL_EXT_protected_surface
EGL_EXT_protected_content EGL_EXT_buffer_age
EGL_ANDROID_native_fence_sync EGL_WL_bind_wayland_display
EGL_WL_create_wayland_buffer_from_image EGL_KHR_partial_update
EGL_EXT_swap_buffers_with_damage
EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float
[15:55:59.295] EGL_KHR_surfaceless_context available
[15:55:59.302] GL version: OpenGL ES 3.1 V6.4.3.p4.398061
[15:55:59.302] GLSL version: OpenGL ES GLSL ES 3.10
[15:55:59.302] GL vendor: Vivante Corporation
[15:55:59.302] GL renderer: Vivante GC7000UL
[15:55:59.302] GL extensions: GL_OES_vertex_type_10_10_10_2
GL_OES_vertex_half_float GL_OES_element_index_uint
GL_OES_mapbuffer GL_OES_vertex_array_object
GL_OES_compressed_ETC1_RGB8_texture
GL_OES_compressed_paletted_texture GL_OES_texture_npot
GL_OES_rgb8_rgba8 GL_OES_depth_texture
GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_depth32
GL_OES_packed_depth_stencil GL_OES_fbo_render_mipmap
GL_OES_get_program_binary GL_OES_fragment_precision_high
GL_OES_standard_derivatives GL_OES_EGL_image
GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3
GL_OES_EGL_sync GL_OES_texture_stencil8
GL_OES_shader_image_atomic
GL_OES_texture_storage_multisample_2d_array
GL_OES_required_internalformat GL_OES_surfaceless_context
GL_OES_draw_buffers_indexed GL_OES_texture_border_clamp
GL_OES_texture_buffer GL_OES_texture_cube_map_array
GL_OES_draw_elements_base_vertex GL_OES_texture_half_float
GL_OES_texture_float GL_KHR_blend_equation_advanced
GL_KHR_debug GL_KHR_robustness
GL_KHR_robust_buffer_access_behavior
GL_EXT_texture_type_2_10_10_10_REV
GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
GL_EXT_texture_compression_s3tc GL_EXT_read_format_bgra
GL_EXT_multi_draw_arrays GL_EXT_frag_depth
GL_EXT_discard_framebuffer GL_EXT_blend_minmax
GL_EXT_multisampled_render_to_texture
GL_EXT_color_buffer_half_float GL_EXT_color_buffer_float
GL_EXT_robustness GL_EXT_texture_sRGB_decode
GL_EXT_draw_buffers_indexed GL_EXT_texture_border_clamp
GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
GL_EXT_multi_draw_indirect GL_EXT_draw_elements_base_vertex
GL_EXT_texture_rg GL_EXT_protected_textures GL_EXT_sRGB
GL_EXT_unpack_subimage GL_VIV_direct_texture
[15:55:59.360] GL ES 3.1 - renderer features:
read-back format: BGRA
EGL Wayland extension: yes
[15:55:59.360] couldn't fstat launcher tty: Bad file descriptor
[15:55:59.374] warning: no input devices found, but none required as per configuration.
[15:55:59.374] DRM: head 'LVDS-1' updated, connector 38 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[15:55:59.374] DRM: head 'LVDS-1' found, connector 38 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[15:55:59.374] DRM: head 'HDMI-A-1' updated, connector 40 is connected, EDID make 'ACR', model 'EK240Y', serial '12230E4523W0'
[15:55:59.374] DRM: head 'HDMI-A-1' found, connector 40 is connected, EDID make 'ACR', model 'EK240Y', serial '12230E4523W0'
[15:55:59.376] Registered plugin API 'weston_drm_output_api_v1' of size 24
[15:55:59.376] Color manager: no-op
[15:55:59.376] Output 'HDMI-A-1' using color profile: built-in default sRGB SDR profile
[15:55:59.381] Chosen EGL config details: id: 21 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-60 type: win|pix|pbf|swap_preserved vis_id: XR)
[15:55:59.381] Output HDMI-A-1 (crtc 36) video modes:
1920x1080@60.0, preferred, current, 148.5 MHz
1920x1080@60.0 16:9, 148.5 MHz
1920x1080@59.9 16:9, 148.4 MHz
1920x1080@50.0 16:9, 148.5 MHz
1280x1024@75.0, 135.0 MHz
1280x1024@60.0, 108.0 MHz
1280x960@60.0, 108.0 MHz
1152x864@75.0, 108.0 MHz
1280x720@60.0, 74.2 MHz
1280x720@60.0 16:9, 74.2 MHz
1280x720@59.9 16:9, 74.2 MHz
1280x720@50.0 16:9, 74.2 MHz
1440x576@50.0 4:3, 54.0 MHz
1440x480@60.0 16:9, 54.1 MHz
1440x480@59.9 16:9, 54.0 MHz
800x600@60.3, 40.0 MHz
800x600@56.2, 36.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x480@60.0 4:3, 27.0 MHz
720x480@60.0 16:9, 27.0 MHz
720x480@59.9, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
640x480@60.0 4:3, 25.2 MHz
640x480@59.9, 25.2 MHz
640x480@59.9 4:3, 25.2 MHz
[15:55:59.381] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[15:55:59.381] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: yes
color operations: no
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[15:55:59.381] libwayland: unable to lock lockfile /run/user/0/wayland-1.lock, maybe another compositor is running
[15:55:59.382] Loading module '/usr/lib/weston/desktop-shell.so'
[15:55:59.383] launching '/usr/libexec/weston-keyboard'
[15:55:59.389] Warning: support for deprecated wl_shell interface is enabled. Please migrate legacy clients to xdg-shell.
[15:55:59.390] Loading module '/usr/lib/weston/systemd-notify.so'
[15:55:59.390] launching '/usr/libexec/weston-desktop-shell'
[15:55:59.457] atomic: couldn't commit new state: Permission denied
[15:55:59.457] repaint-flush failed: No such file or directory
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
[15:55:59.574] atomic: couldn't commit new state: Permission denied
[15:55:59.574] repaint-flush failed: No such file or directory
Edited by Marius Vlad