no weston-terminal when no input devices
Hi,
I'm using weston10.0.1 with wayland1.20.0 and libinput1.17.1 and no systemd. (it is linux based appliance minimyth2).
Issue i have is no weston-terminal when appliance has no keyb/mice connected. In such case launching weston-terminal gives v.show black screen and nothing more on screen.
All works correctly when there is any input device (keyb/mice, etc) connected.
Also connecting keyb or mice shortly and disconnecting makes weston-terminal started to working ok without keyb/mice.
It looks like weston has kind of bug for use-case without any input device.
weston log:
root@Myth-Frontend-da19c87a6df4:~ # cat /var/log/weston.log
Date: 2022-07-22 CEST
[11:49:38.983] weston 10.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 10.0.1
[11:49:38.984] Command line: /usr/bin/weston --log=/var/log/weston.log --config=/etc/weston-minimal.ini
[11:49:38.984] OS: Linux, 5.18.12, #1 SMP PREEMPT Mon Jul 18 16:49:09 CEST 2022, aarch64
[11:49:38.984] Flight recorder: enabled
[11:49:38.986] Using config file '/etc/weston-minimal.ini'
[11:49:39.003] Output repaint window is 7 ms maximum.
[11:49:39.007] Loading module '/usr/lib/libweston-10/drm-backend.so'
[11:49:39.016] initializing drm backend
[11:49:39.016] Trying weston_launch launcher...
[11:49:39.019] using /dev/dri/card0
[11:49:39.019] DRM: supports atomic modesetting
[11:49:39.019] DRM: supports GBM modifiers
[11:49:39.019] DRM: supports picture aspect ratio
[11:49:39.021] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[11:49:40.440] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_device_base EGL_EXT_device_enumeration
EGL_EXT_device_query EGL_EXT_platform_base
EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
EGL_EXT_platform_device EGL_EXT_platform_wayland
EGL_KHR_platform_wayland EGL_EXT_platform_x11
EGL_KHR_platform_x11 EGL_MESA_platform_xcb
EGL_MESA_platform_gbm EGL_KHR_platform_gbm
EGL_MESA_platform_surfaceless
[11:49:40.449] EGL device extensions: EGL_EXT_device_drm
[11:49:40.449] EGL version: 1.4
[11:49:40.449] EGL vendor: Mesa Project
[11:49:40.449] EGL client APIs: OpenGL OpenGL_ES
[11:49:40.449] EGL extensions: EGL_ANDROID_blob_cache
EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers 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_partial_update
EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
EGL_EXT_pixel_format_float EGL_KHR_wait_sync
EGL_MESA_configless_context EGL_MESA_drm_image
EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
EGL_WL_bind_wayland_display
[11:49:40.449] EGL_KHR_surfaceless_context available
[11:49:40.552] GL version: OpenGL ES 2.0 Mesa 22.1.4
[11:49:40.552] GLSL version: OpenGL ES GLSL ES 1.0.16
[11:49:40.552] GL vendor: lima
[11:49:40.552] GL renderer: Mali450
[11:49:40.552] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
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_half_float
GL_OES_texture_half_float_linear GL_OES_texture_npot
GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture
GL_OES_packed_depth_stencil GL_OES_get_program_binary
GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
GL_EXT_read_format_bgra GL_NV_pack_subimage 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_pack_reverse_row_order 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_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object
GL_OES_required_internalformat GL_OES_surfaceless_context
GL_EXT_separate_shader_objects
GL_EXT_compressed_ETC1_RGB8_sub_texture
GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp
GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex
GL_OES_texture_border_clamp GL_EXT_blend_func_extended
GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d
GL_EXT_clip_control GL_KHR_parallel_shader_compile GL_MESA_bgra
[11:49:40.757] GL ES 2.0 - renderer features:
read-back format: BGRA
EGL Wayland extension: yes
[11:49:40.783] event0 - gpio_ir_recv: not tagged as supported input device
[11:49:40.783] event0 - not using input device '/dev/input/event0'
[11:49:40.784] event1 - eventlircd: not tagged as supported input device
[11:49:40.784] event1 - not using input device '/dev/input/event1'
[11:49:40.784] warning: no input devices found, but none required as per configuration.
[11:49:40.896] DRM: head 'HDMI-A-1' updated, connector 42 is connected, EDID make 'STK', model 'S2-TEK TV', serial 'SN-000000001'
[11:49:40.896] DRM: head 'HDMI-A-1' found, connector 42 is connected, EDID make 'STK', model 'S2-TEK TV', serial 'SN-000000001'
[11:49:40.897] Registered plugin API 'weston_drm_output_api_v1' of size 24
[11:49:40.897] Color manager: no-op
[11:49:40.897] Output 'HDMI-A-1' using color profile: built-in default sRGB SDR profile
[11:49:40.897] Chosen EGL config details: id: 7 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[11:49:40.897] Output HDMI-A-1 (crtc 37) 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
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
800x600@60.3, 40.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
[11:49:40.897] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[11:49:40.897] 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
[11:49:40.900] Loading module '/usr/lib/weston/desktop-shell.so'
[11:49:40.905] launching '/usr/libexec/weston-keyboard'
[11:49:40.907] Warning: support for deprecated wl_shell interface is enabled. Please migrate legacy clients to xdg-shell.
[11:49:40.908] launching '/usr/libexec/weston-desktop-shell'
root@Myth-Frontend-da19c87a6df4:~ # cat /var/log/weston.log
Date: 2022-07-22 CEST
[11:49:38.983] weston 10.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 10.0.1
[11:49:38.984] Command line: /usr/bin/weston --log=/var/log/weston.log --config=/etc/weston-minimal.ini
[11:49:38.984] OS: Linux, 5.18.12, #1 SMP PREEMPT Mon Jul 18 16:49:09 CEST 2022, aarch64
[11:49:38.984] Flight recorder: enabled
[11:49:38.986] Using config file '/etc/weston-minimal.ini'
[11:49:39.003] Output repaint window is 7 ms maximum.
[11:49:39.007] Loading module '/usr/lib/libweston-10/drm-backend.so'
[11:49:39.016] initializing drm backend
[11:49:39.016] Trying weston_launch launcher...
[11:49:39.019] using /dev/dri/card0
[11:49:39.019] DRM: supports atomic modesetting
[11:49:39.019] DRM: supports GBM modifiers
[11:49:39.019] DRM: supports picture aspect ratio
[11:49:39.021] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[11:49:40.440] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_device_base EGL_EXT_device_enumeration
EGL_EXT_device_query EGL_EXT_platform_base
EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
EGL_EXT_platform_device EGL_EXT_platform_wayland
EGL_KHR_platform_wayland EGL_EXT_platform_x11
EGL_KHR_platform_x11 EGL_MESA_platform_xcb
EGL_MESA_platform_gbm EGL_KHR_platform_gbm
EGL_MESA_platform_surfaceless
[11:49:40.449] EGL device extensions: EGL_EXT_device_drm
[11:49:40.449] EGL version: 1.4
[11:49:40.449] EGL vendor: Mesa Project
[11:49:40.449] EGL client APIs: OpenGL OpenGL_ES
[11:49:40.449] EGL extensions: EGL_ANDROID_blob_cache
EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers 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_partial_update
EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
EGL_EXT_pixel_format_float EGL_KHR_wait_sync
EGL_MESA_configless_context EGL_MESA_drm_image
EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
EGL_WL_bind_wayland_display
[11:49:40.449] EGL_KHR_surfaceless_context available
[11:49:40.552] GL version: OpenGL ES 2.0 Mesa 22.1.4
[11:49:40.552] GLSL version: OpenGL ES GLSL ES 1.0.16
[11:49:40.552] GL vendor: lima
[11:49:40.552] GL renderer: Mali450
[11:49:40.552] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
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_half_float
GL_OES_texture_half_float_linear GL_OES_texture_npot
GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture
GL_OES_packed_depth_stencil GL_OES_get_program_binary
GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
GL_EXT_read_format_bgra GL_NV_pack_subimage 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_pack_reverse_row_order 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_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object
GL_OES_required_internalformat GL_OES_surfaceless_context
GL_EXT_separate_shader_objects
GL_EXT_compressed_ETC1_RGB8_sub_texture
GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp
GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex
GL_OES_texture_border_clamp GL_EXT_blend_func_extended
GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d
GL_EXT_clip_control GL_KHR_parallel_shader_compile GL_MESA_bgra
[11:49:40.757] GL ES 2.0 - renderer features:
read-back format: BGRA
EGL Wayland extension: yes
[11:49:40.783] event0 - gpio_ir_recv: not tagged as supported input device
[11:49:40.783] event0 - not using input device '/dev/input/event0'
[11:49:40.784] event1 - eventlircd: not tagged as supported input device
[11:49:40.784] event1 - not using input device '/dev/input/event1'
[11:49:40.784] warning: no input devices found, but none required as per configuration.
[11:49:40.896] DRM: head 'HDMI-A-1' updated, connector 42 is connected, EDID make 'STK', model 'S2-TEK TV', serial 'SN-000000001'
[11:49:40.896] DRM: head 'HDMI-A-1' found, connector 42 is connected, EDID make 'STK', model 'S2-TEK TV', serial 'SN-000000001'
[11:49:40.897] Registered plugin API 'weston_drm_output_api_v1' of size 24
[11:49:40.897] Color manager: no-op
[11:49:40.897] Output 'HDMI-A-1' using color profile: built-in default sRGB SDR profile
[11:49:40.897] Chosen EGL config details: id: 7 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[11:49:40.897] Output HDMI-A-1 (crtc 37) 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
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
800x600@60.3, 40.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
[11:49:40.897] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[11:49:40.897] 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
[11:49:40.900] Loading module '/usr/lib/weston/desktop-shell.so'
[11:49:40.905] launching '/usr/libexec/weston-keyboard'
[11:49:40.907] Warning: support for deprecated wl_shell interface is enabled. Please migrate legacy clients to xdg-shell.
[11:49:40.908] launching '/usr/libexec/weston-desktop-shell'
root@Myth-Frontend-da19c87a6df4:~ #