Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HID: usbhid: Insert USB bus/device ID into HID name #6356

Draft
wants to merge 1 commit into
base: rpi-6.6.y
Choose a base branch
from

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Sep 12, 2024

Draft as this isn't ideal - it renames all mouse and keyboard devices, as well as touch ones.

libinput/wlroots/Wayfire/labwc match input device by the device name only. If you add 2 identical USB connected touch devices, you can't select between them.

Add the usb bus&device name to the start of the name so that the names end up being unique,

https://forums.raspberrypi.com/viewtopic.php?t=376569


if (dev->product) {
if (dev->manufacturer)
strlcat(hid->name, " ", sizeof(hid->name));
strlcat(hid->name, dev->product, sizeof(hid->name));
}

if (!strlen(hid->name))
snprintf(hid->name, sizeof(hid->name), "HID %04x:%04x",
if (strlen(hid->name) == strlen(dev_name(&dev->dev)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the snprintf above, and the fact that other changes just append, how can this condition ever be true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can't.
Too many revisions switching from strscpy to snprintf (to add the usb- prefix), and missing updating this condition.

Ideally this issue wants to be sorted further up the stack (xinput was always happy with multiple identical devices, although you had to reference them by id number rather than name), so I'll have a word with Simon and David T later on.

@gara3d
Copy link

gara3d commented Nov 27, 2024

I have tested this patch, but I guess it introduced regression

I have installed wayfire 0.9.0 using wf-install https://github.com/WayfireWM/wf-install

Below the complete logs

`

gara@rpi5:/opt/wayfire/bin $ ./wayfire -c .config/wayfire.ini
II 27-11-24 11:59:17.530 - [src/main.cpp:364] Starting wayfire version 0.9.0
II 27-11-24 11:59:17.530 - [libseat] [libseat/libseat.c:73] Seat opened with backend 'seatd'
II 27-11-24 11:59:17.530 - [libseat] [libseat/backend/seatd.c:212] Enabling seat
II 27-11-24 11:59:17.530 - [backend/session/session.c:109] Successfully loaded libseat session
II 27-11-24 11:59:17.556 - [backend/backend.c:213] Found 1 GPUs
II 27-11-24 11:59:17.556 - [backend/drm/backend.c:202] Initializing DRM backend for /dev/dri/card1 (vc4)
II 27-11-24 11:59:17.556 - [backend/drm/drm.c:255] Found 4 DRM CRTCs
II 27-11-24 11:59:17.556 - [backend/drm/drm.c:213] Found 24 DRM planes
II 27-11-24 11:59:17.559 - [render/egl.c:206] Supported EGL 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_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_EXT_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless
EE 27-11-24 11:59:17.560 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
EE 27-11-24 11:59:17.560 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
II 27-11-24 11:59:18.541 - [render/egl.c:355] Using EGL 1.4
II 27-11-24 11:59:18.541 - [render/egl.c:356] Supported EGL display extensions: EGL_ANDROID_blob_cache 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_context_flush_control 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_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
II 27-11-24 11:59:18.541 - [render/egl.c:358] Supported EGL device extensions: EGL_EXT_device_drm
II 27-11-24 11:59:18.541 - [render/egl.c:360] EGL vendor: Mesa Project
II 27-11-24 11:59:18.544 - [render/gles2/renderer.c:842] Creating GLES2 renderer
II 27-11-24 11:59:18.544 - [render/gles2/renderer.c:843] Using OpenGL ES 3.1 Mesa 23.2.1-1~bpo12+rpt3
II 27-11-24 11:59:18.544 - [render/gles2/renderer.c:844] GL vendor: Broadcom
II 27-11-24 11:59:18.544 - [render/gles2/renderer.c:845] GL renderer: V3D 7.1
II 27-11-24 11:59:18.544 - [render/gles2/renderer.c:846] Supported GLES2 extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc 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_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render 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_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean 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_instanced_arrays GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_generate_mipmap_sRGB GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_debug_label GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions 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 GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_cube_map_array GL_EXT_texture_view GL_KHR_context_flush_control GL_NV_image_formats GL_NV_shader_noperspective_interpolation GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_primitive_bounding_box GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clear_texture GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_MESA_framebuffer_flip_y GL_EXT_texture_query_lod GL_MESA_bgra
II 27-11-24 11:59:19.506 - [src/default-config-backend.cpp:110] Using config file: .config/wayfire.ini
WW 27-11-24 11:59:19.506 - [src/file.cpp:572] Failed to open XML directory /home/gara/.local/share//wayfire/metadata
II 27-11-24 11:59:19.506 - [src/file.cpp:576] Reading XML configuration options from directory /opt/wayfire/share/wayfire/metadata
II 27-11-24 11:59:19.506 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/workarounds.xml
II 27-11-24 11:59:19.506 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/view-shot.xml
II 27-11-24 11:59:19.507 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/resize.xml
II 27-11-24 11:59:19.507 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/shortcuts-inhibit.xml
II 27-11-24 11:59:19.507 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/focus-change.xml
II 27-11-24 11:59:19.507 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/move.xml
II 27-11-24 11:59:19.507 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/vswipe.xml
EE 27-11-24 11:59:19.507 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/vswipe.xml: option at line 27 has invalid type "animation"
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/obs.xml
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/wsets.xml
EE 27-11-24 11:59:19.508 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/wsets.xml: option at line 17 has invalid type "animation"
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/place.xml
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/output.xml
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/bench.xml
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/preserve-output.xml
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/blur.xml
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/mag.xml
II 27-11-24 11:59:19.508 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/cube.xml
EE 27-11-24 11:59:19.509 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/cube.xml: option at line 59 has invalid type "animation"
II 27-11-24 11:59:19.509 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/grid.xml
EE 27-11-24 11:59:19.509 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/grid.xml: option at line 7 has invalid type "animation"
II 27-11-24 11:59:19.509 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/alpha.xml
II 27-11-24 11:59:19.509 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/wrot.xml
II 27-11-24 11:59:19.509 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/oswitch.xml
II 27-11-24 11:59:19.510 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/animate.xml
EE 27-11-24 11:59:19.510 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/animate.xml: option at line 56 has invalid type "animation"
EE 27-11-24 11:59:19.510 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/animate.xml: option at line 61 has invalid type "animation"
EE 27-11-24 11:59:19.510 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/animate.xml: option at line 72 has invalid type "animation"
EE 27-11-24 11:59:19.510 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/animate.xml: option at line 83 has invalid type "animation"
EE 27-11-24 11:59:19.510 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/animate.xml: option at line 94 has invalid type "animation"
II 27-11-24 11:59:19.510 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/force-fullscreen.xml
II 27-11-24 11:59:19.510 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/hinge.xml
II 27-11-24 11:59:19.510 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/background-view.xml
II 27-11-24 11:59:19.510 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/foreign-toplevel.xml
II 27-11-24 11:59:19.510 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/scale.xml
EE 27-11-24 11:59:19.511 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/scale.xml: option at line 19 has invalid type "animation"
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/annotate.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/input-method-v1.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/autorotate-iio.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/scale-title-filter.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/wm-actions.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/fast-switcher.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/pin-view.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/invert.xml
II 27-11-24 11:59:19.511 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/xdg-activation.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/water.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/idle.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/workspace-names.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/hide-cursor.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/follow-focus.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/ghost.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/showrepaint.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/window-zoom.xml
II 27-11-24 11:59:19.512 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/decoration.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/keycolor.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/ipc.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/session-lock.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/input-device.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/gtk-shell.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/core.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/wayfire-shell.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/autostart.xml
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/zoom.xml
EE 27-11-24 11:59:19.513 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/zoom.xml: option at line 18 has invalid type "animation"
II 27-11-24 11:59:19.513 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/crosshair.xml
II 27-11-24 11:59:19.514 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/input.xml
II 27-11-24 11:59:19.514 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/fisheye.xml
II 27-11-24 11:59:19.514 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/simple-tile.xml
EE 27-11-24 11:59:19.514 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/simple-tile.xml: option at line 68 has invalid type "animation"
II 27-11-24 11:59:19.514 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/focus-steal-prevent.xml
II 27-11-24 11:59:19.514 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/vswitch.xml
EE 27-11-24 11:59:19.515 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/vswitch.xml: option at line 110 has invalid type "animation"
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/ipc-rules.xml
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/extra-gestures.xml
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/expo.xml
EE 27-11-24 11:59:19.515 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/expo.xml: option at line 17 has invalid type "animation"
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/window-rules.xml
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/switcher.xml
EE 27-11-24 11:59:19.515 - [src/xml.cpp:257] Could not parse /opt/wayfire/share/wayfire/metadata/switcher.xml: option at line 19 has invalid type "animation"
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/wobbly.xml
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/join-views.xml
II 27-11-24 11:59:19.515 - [src/file.cpp:589] Reading XML configuration options from file /opt/wayfire/share/wayfire/metadata/command.xml
II 27-11-24 11:59:19.517 - [backend/headless/backend.c:67] Creating headless backend
II 27-11-24 11:59:19.517 - [backend/headless/backend.c:17] Starting headless backend
II 27-11-24 11:59:19.519 - [src/main.cpp:435] Using socket name wayland-1
II 27-11-24 11:59:19.592 - [src/core/seat/input-manager.cpp:47] handle new input: usb-1-1 ILITEK ILITEK-TP, default mapping: usb-1-1 ILITEK ILITEK-TP
II 27-11-24 11:59:19.592 - [src/core/seat/input-manager.cpp:47] handle new input: usb-1-2 Dell KB216 Wired Keyboard, default mapping: usb-1-2 Dell KB216 Wired Keyboard
II 27-11-24 11:59:19.599 - [src/core/seat/input-manager.cpp:47] handle new input: usb-1-2 Dell KB216 Wired Keyboard System Control, default mapping: usb-1-2 Dell KB216 Wired Keyboard System Control
II 27-11-24 11:59:19.606 - [src/core/seat/input-manager.cpp:47] handle new input: usb-1-2 Dell KB216 Wired Keyboard Consumer Control, default mapping: usb-1-2 Dell KB216 Wired Keyboard Consumer Control
II 27-11-24 11:59:19.612 - [src/core/seat/input-manager.cpp:47] handle new input: usb-3-1 ILITEK ILITEK-TP, default mapping: usb-3-1 ILITEK ILITEK-TP
II 27-11-24 11:59:19.612 - [src/core/seat/input-manager.cpp:47] handle new input: usb-3-2 PixArt Dell MS116 USB Optical Mouse, default mapping: usb-3-2 PixArt Dell MS116 USB Optical Mouse
II 27-11-24 11:59:19.612 - [src/core/seat/input-manager.cpp:47] handle new input: pwr_button, default mapping: pwr_button
II 27-11-24 11:59:19.618 - [src/core/seat/input-manager.cpp:47] handle new input: vc4-hdmi-0, default mapping: vc4-hdmi-0
II 27-11-24 11:59:19.624 - [src/core/seat/input-manager.cpp:47] handle new input: vc4-hdmi-0, default mapping: vc4-hdmi-0
II 27-11-24 11:59:19.624 - [src/core/seat/input-manager.cpp:47] handle new input: vc4-hdmi-1, default mapping: vc4-hdmi-1
II 27-11-24 11:59:19.629 - [src/core/seat/input-manager.cpp:47] handle new input: vc4-hdmi-1, default mapping: vc4-hdmi-1
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1552] Scanning DRM connectors on /dev/dri/card1
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1603] Found connector 'HDMI-A-1'
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1628] 'HDMI-A-1' connected
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1436] Detected modes:
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1366x768 @ 59.790 Hz (preferred)
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1920x1080 @ 60.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1920x1080 @ 60.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1920x1080 @ 59.940 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1920x1080 @ 50.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1920x1080 @ 50.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1280x800 @ 59.910 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1280x720 @ 60.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1280x720 @ 60.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1280x720 @ 59.940 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1280x720 @ 50.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1024x768 @ 75.029 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1024x768 @ 70.069 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1024x768 @ 66.010 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 1024x768 @ 60.004 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 832x624 @ 74.551 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 800x600 @ 75.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 800x600 @ 72.188 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 800x600 @ 60.317 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 800x600 @ 56.250 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 720x576 @ 50.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 720x480 @ 60.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 720x480 @ 60.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 720x480 @ 59.940 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 720x480 @ 59.940 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 640x480 @ 75.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 640x480 @ 72.809 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 640x480 @ 66.667 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 640x480 @ 60.000 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 640x480 @ 59.940 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 640x480 @ 59.940 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1464] 720x400 @ 70.082 Hz
II 27-11-24 11:59:19.630 - [backend/drm/drm.c:1484] Physical size: 340x190
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1603] Found connector 'HDMI-A-2'
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1628] 'HDMI-A-2' connected
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1436] Detected modes:
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1366x768 @ 59.790 Hz (preferred)
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1920x1080 @ 60.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1920x1080 @ 60.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1920x1080 @ 59.940 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1920x1080 @ 50.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1920x1080 @ 50.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1280x800 @ 59.910 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1280x720 @ 60.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1280x720 @ 60.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1280x720 @ 59.940 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1280x720 @ 50.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1024x768 @ 75.029 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1024x768 @ 70.069 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1024x768 @ 66.010 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 1024x768 @ 60.004 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 832x624 @ 74.551 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 800x600 @ 75.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 800x600 @ 72.188 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 800x600 @ 60.317 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 800x600 @ 56.250 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 720x576 @ 50.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 720x480 @ 60.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 720x480 @ 60.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 720x480 @ 59.940 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 720x480 @ 59.940 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 640x480 @ 75.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 640x480 @ 72.809 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 640x480 @ 66.667 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 640x480 @ 60.000 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 640x480 @ 59.940 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 640x480 @ 59.940 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1464] 720x400 @ 70.082 Hz
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1484] Physical size: 340x190
II 27-11-24 11:59:19.631 - [backend/drm/drm.c:1664] connector HDMI-A-1: Requesting modeset
II 27-11-24 11:59:19.631 - [src/core/output-layout.cpp:1177] new output: HDMI-A-1 ("HSG HT161HNB 1234567890123")
II 27-11-24 11:59:19.631 - [src/core/output-layout.cpp:460] loaded mode auto
EE 27-11-24 11:59:19.633 - [types/output/swapchain.c:109] Swapchain for output 'HDMI-A-1' failed test
EE 27-11-24 11:59:19.633 - [backend/drm/atomic.c:239] Failed to acquire FB for plane 80
II 27-11-24 11:59:19.633 - [backend/drm/drm.c:1664] connector HDMI-A-2: Requesting modeset
II 27-11-24 11:59:19.633 - [src/core/output-layout.cpp:1177] new output: HDMI-A-2 ("HSG HT161HNB 1234567890123")
II 27-11-24 11:59:19.633 - [src/core/output-layout.cpp:460] loaded mode auto
II 27-11-24 11:59:19.633 - [src/core/output-layout.cpp:460] loaded mode auto
EE 27-11-24 11:59:19.634 - [types/output/swapchain.c:109] Swapchain for output 'HDMI-A-2' failed test
EE 27-11-24 11:59:19.635 - [backend/drm/atomic.c:239] Failed to acquire FB for plane 92
EE 27-11-24 11:59:19.636 - [types/output/swapchain.c:109] Swapchain for output 'HDMI-A-1' failed test
EE 27-11-24 11:59:19.636 - [backend/drm/atomic.c:239] Failed to acquire FB for plane 80
EE 27-11-24 11:59:19.638 - [src/core/plugin-loader.cpp:87] error loading plugin: /opt/wayfire/lib/aarch64-linux-gnu/wayfire/libanimate.so: undefined symbol: _ZN2wf9animation10duration_t13get_directionEv
EE 27-11-24 11:59:19.639 - [src/core/plugin-loader.cpp:87] error loading plugin: /opt/wayfire/lib/aarch64-linux-gnu/wayfire/libcube.so: undefined symbol: _ZN2wf9animation10duration_tC2ESt10shared_ptrINS_6config8option_tINS_23animation_description_tEEEE
false
EE 27-11-24 11:59:19.650 - [src/core/plugin-loader.cpp:87] error loading plugin: /opt/wayfire/lib/aarch64-linux-gnu/wayfire/libexpo.so: undefined symbol: _ZN2wf9animation10duration_tC2ESt10shared_ptrINS_6config8option_tINS_23animation_description_tEEEE
EE 27-11-24 11:59:19.652 - [src/core/plugin-loader.cpp:87] error loading plugin: /opt/wayfire/lib/aarch64-linux-gnu/wayfire/libgrid.so: undefined symbol: _ZN2wf9animation10duration_tC2ESt10shared_ptrINS_6config8option_tINS_23animation_description_tEEEE
false
false
EE 27-11-24 11:59:19.656 - [src/core/plugin-loader.cpp:87] error loading plugin: /opt/wayfire/lib/aarch64-linux-gnu/wayfire/libswitcher.so: undefined symbol: _ZN2wf9animation10duration_tC1ESt10shared_ptrINS_6config8option_tINS_23animation_description_tEEEE
EE 27-11-24 11:59:19.657 - [src/core/plugin-loader.cpp:87] error loading plugin: /opt/wayfire/lib/aarch64-linux-gnu/wayfire/libvswitch.so: undefined symbol: _ZN2wf9animation10duration_tC2ESt10shared_ptrINS_6config8option_tINS_23animation_description_tEEEE
EE 27-11-24 11:59:19.660 - [src/core/plugin-loader.cpp:87] error loading plugin: /opt/wayfire/lib/aarch64-linux-gnu/wayfire/libzoom.so: undefined symbol: _ZN2wf9animation18simple_animation_tC1ESt10shared_ptrINS_6config8option_tINS_23animation_description_tEEEE
EE 27-11-24 11:59:19.669 - [types/wlr_cursor.c:1174] Cannot map device "usb-1-2 Dell KB216 Wired Keyboard" to output (not found in this cursor)
EE 27-11-24 11:59:19.669 - [types/wlr_cursor.c:1174] Cannot map device "usb-1-2 Dell KB216 Wired Keyboard System Control" to output (not found in this cursor)
EE 27-11-24 11:59:19.669 - [types/wlr_cursor.c:1174] Cannot map device "usb-1-2 Dell KB216 Wired Keyboard Consumer Control" to output (not found in this cursor)
EE 27-11-24 11:59:19.669 - [types/wlr_cursor.c:1174] Cannot map device "pwr_button" to output (not found in this cursor)
EE 27-11-24 11:59:19.669 - [types/wlr_cursor.c:1174] Cannot map device "vc4-hdmi-0" to output (not found in this cursor)
EE 27-11-24 11:59:19.669 - [types/wlr_cursor.c:1174] Cannot map device "vc4-hdmi-1" to output (not found in this cursor)
EE 27-11-24 11:59:19.670 - [types/output/swapchain.c:109] Swapchain for output 'HDMI-A-1' failed test
EE 27-11-24 11:59:19.671 - [src/output/render-manager.cpp:257] Failed to configure primary output swapchain for output HDMI-A-1
EE 27-11-24 11:59:19.672 - [types/output/swapchain.c:109] Swapchain for output 'HDMI-A-2' failed test
EE 27-11-24 11:59:19.672 - [src/output/render-manager.cpp:257] Failed to configure primary output swapchain for output HDMI-A-2
./wayfire: symbol lookup error: ./wayfire: undefined symbol: _ZNK2wf18activatorbinding_t14get_extensionsB5cxx11Ev`

@6by9
Copy link
Contributor Author

6by9 commented Nov 27, 2024

You've also changed the version of Wayfire too. That's more likely to have caused your problem (undefined symbol: _ZNK2wf18activatorbinding_t14get_extensionsB5cxx11Ev) than the kernel change.

@gara3d
Copy link

gara3d commented Nov 27, 2024

I will test again with the default Wayfire 0.7.5

@gara3d
Copy link

gara3d commented Nov 27, 2024

running the default Wayfire 0.7.5 and I get

EE 27-11-24 13:06:25.806 - [render/allocator/allocator.c:85] drmAuthMagic failed: Permission denied

gara@rpi5:/opt/wayfire/bin $ ./wayfire -c /.config/wayfire.ini
II 27-11-24 13:06:24.810 - [src/main.cpp:249] Starting wayfire version 0.7.5-1dfc6fdb (Nov 27 2024, branch 'HEAD')
II 27-11-24 13:06:24.811 - [libseat] [libseat/libseat.c:73] Seat opened with backend 'seatd'
II 27-11-24 13:06:24.811 - [libseat] [libseat/backend/seatd.c:212] Enabling seat
II 27-11-24 13:06:24.811 - [backend/session/session.c:109] Successfully loaded libseat session
II 27-11-24 13:06:24.840 - [backend/backend.c:220] Found 1 GPUs
II 27-11-24 13:06:24.840 - [backend/drm/backend.c:186] Initializing DRM backend for /dev/dri/card1 (vc4)
II 27-11-24 13:06:24.840 - [backend/drm/drm.c:242] Found 4 DRM CRTCs
II 27-11-24 13:06:24.840 - [backend/drm/drm.c:200] Found 24 DRM planes
II 27-11-24 13:06:24.843 - [render/egl.c:201] Supported EGL 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_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_EXT_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless
EE 27-11-24 13:06:24.844 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
EE 27-11-24 13:06:24.844 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
II 27-11-24 13:06:25.798 - [render/egl.c:347] Using EGL 1.4
II 27-11-24 13:06:25.798 - [render/egl.c:348] Supported EGL display extensions: EGL_ANDROID_blob_cache 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_context_flush_control 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_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
II 27-11-24 13:06:25.798 - [render/egl.c:350] Supported EGL device extensions: EGL_EXT_device_drm
II 27-11-24 13:06:25.798 - [render/egl.c:352] EGL vendor: Mesa Project
II 27-11-24 13:06:25.799 - [render/gles2/renderer.c:727] Creating GLES2 renderer
II 27-11-24 13:06:25.799 - [render/gles2/renderer.c:728] Using OpenGL ES 3.1 Mesa 23.2.1-1
bpo12+rpt3
II 27-11-24 13:06:25.799 - [render/gles2/renderer.c:729] GL vendor: Broadcom
II 27-11-24 13:06:25.799 - [render/gles2/renderer.c:730] GL renderer: V3D 7.1
II 27-11-24 13:06:25.799 - [render/gles2/renderer.c:731] Supported GLES2 extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc 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_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render 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_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean 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_instanced_arrays GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_generate_mipmap_sRGB GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_debug_label GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions 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 GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_cube_map_array GL_EXT_texture_view GL_KHR_context_flush_control GL_NV_image_formats GL_NV_shader_noperspective_interpolation GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_primitive_bounding_box GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clear_texture GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_MESA_framebuffer_flip_y GL_EXT_texture_query_lod GL_MESA_bgra
EE 27-11-24 13:06:25.806 - [render/allocator/allocator.c:85] drmAuthMagic failed: Permission denied
wayfire: ../src/main.cpp:276: int main(int, char**): Assertion `core.allocator' failed.
EE 27-11-24 13:06:25.806 - [src/main.cpp:141] Fatal error: Fatal error(SIGABRT)
EE 27-11-24 13:06:25.853 - #1 signal_handler(int) ../src/main.cpp:143
addr2line: '????': No such file
addr2line: '????': No such file
EE 27-11-24 13:06:25.857 - #2 ????? ?????
EE 27-11-24 13:06:25.962 - #3 __pthread_kill_implementation ./nptl/./nptl/pthread_kill.c:44
EE 27-11-24 13:06:26.054 - #4 __GI_raise ../sysdeps/posix/raise.c:27
EE 27-11-24 13:06:26.146 - #5 __GI_abort ./stdlib/./stdlib/abort.c:81 (discriminator 20)
EE 27-11-24 13:06:26.237 - #6 __assert_fail_base ./assert/./assert/assert.c:89
EE 27-11-24 13:06:26.378 - #7 __GI___assert_fail :?
EE 27-11-24 13:06:26.424 - #8 std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_check_length(unsigned long, unsigned long, char const*) const /usr/include/c++/12/bits/basic_string.h:393
EE 27-11-24 13:06:26.512 - #9 __libc_start_call_main ../sysdeps/unix/sysv/linux/aarch64/libc-start.c:74
EE 27-11-24 13:06:26.601 - #10 call_init ../csu/libc-start.c:128
EE 27-11-24 13:06:26.645 - #11 _start ??:?

libinput/wlroots/Wayfire/labwc match input device by the
device name only. If you add 2 identical USB connected
touch devices, you can't select between them.

Add the usb bus&device name to the start of the name so that
the names end up being unique,

Signed-off-by: Dave Stevenson <[email protected]>
@6by9
Copy link
Contributor Author

6by9 commented Nov 27, 2024

Start with a clean install of Raspberry Pi OS.
sudo rpi-update pulls/6356
Reboot.

This branch is now nearly 3 months out of date as it had no feedback. I have now rebased the branch so CI will rebuild it, but I'd be surprised if it changed much.

@gara3d
Copy link

gara3d commented Nov 27, 2024

Start with a clean install of Raspberry Pi OS. sudo rpi-update pulls/6356 Reboot.

This branch is now nearly 3 months out of date as it had no feedback. I have now rebased the branch so CI will rebuild it, but I'd be surprised if it changed much.

Thanks! I will install a new Raspberry Pi OS than apply this patch and ping you again

@gara3d
Copy link

gara3d commented Nov 27, 2024

I have started with a clean install of Raspberry Pi OS and than pulled the patch and rebooted.

1- I have tried the setup through the GUI Preferences > Screen Configuration

Screenshot 2024-11-27 at 15 08 28

and then set up the walyland Env export WAYLAND_DISPLAY=wayland-1

This has worked perfectly! Both touchscreens are working as expected.

2-

I wanted to run wayfire through cli
Got these errors.. Am I missing something

gara@rpi5:~ $ wayfire -c .config/wayfire.ini
II 27-11-24 14:35:59.515 - [src/main.cpp:280] Starting wayfire version 0.7.5
II 27-11-24 14:35:59.515 - [libseat] [libseat/libseat.c:73] Seat opened with backend 'seatd'
II 27-11-24 14:35:59.515 - [libseat] [libseat/backend/seatd.c:212] Enabling seat
II 27-11-24 14:35:59.515 - [backend/session/session.c:109] Successfully loaded libseat session
II 27-11-24 14:35:59.543 - [backend/backend.c:220] Found 1 GPUs
II 27-11-24 14:35:59.543 - [backend/drm/backend.c:186] Initializing DRM backend for /dev/dri/card1 (vc4)
II 27-11-24 14:35:59.543 - [backend/drm/drm.c:242] Found 4 DRM CRTCs
II 27-11-24 14:35:59.543 - [backend/drm/drm.c:200] Found 56 DRM planes
II 27-11-24 14:35:59.547 - [render/egl.c:201] Supported EGL 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_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_EXT_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless
EE 27-11-24 14:35:59.548 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
EE 27-11-24 14:35:59.548 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
II 27-11-24 14:36:00.525 - [render/egl.c:347] Using EGL 1.4
II 27-11-24 14:36:00.525 - [render/egl.c:348] Supported EGL display extensions: EGL_ANDROID_blob_cache 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_context_flush_control 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_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
II 27-11-24 14:36:00.525 - [render/egl.c:350] Supported EGL device extensions: EGL_EXT_device_drm
II 27-11-24 14:36:00.525 - [render/egl.c:352] EGL vendor: Mesa Project
II 27-11-24 14:36:00.527 - [render/gles2/renderer.c:727] Creating GLES2 renderer
II 27-11-24 14:36:00.527 - [render/gles2/renderer.c:728] Using OpenGL ES 3.1 Mesa 23.2.1-1~bpo12+rpt3
II 27-11-24 14:36:00.527 - [render/gles2/renderer.c:729] GL vendor: Broadcom
II 27-11-24 14:36:00.527 - [render/gles2/renderer.c:730] GL renderer: V3D 7.1
II 27-11-24 14:36:00.527 - [render/gles2/renderer.c:731] Supported GLES2 extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc 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_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render 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_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean 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_instanced_arrays GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_generate_mipmap_sRGB GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_debug_label GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions 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 GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_cube_map_array GL_EXT_texture_view GL_KHR_context_flush_control GL_NV_image_formats GL_NV_shader_noperspective_interpolation GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_primitive_bounding_box GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clear_texture GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_MESA_framebuffer_flip_y GL_EXT_texture_query_lod GL_MESA_bgra
EE 27-11-24 14:36:00.534 - [render/allocator/allocator.c:85] drmAuthMagic failed: Permission denied
wayfire: ../src/main.cpp:322: int main(int, char**): Assertion `core.allocator' failed.
EE 27-11-24 14:36:00.534 - [src/main.cpp:144] Fatal error: Fatal error(SIGABRT)
EE 27-11-24 14:36:00.549 - #1 wf::print_trace(bool) ??:?
?': No such file
?': No such file
EE 27-11-24 14:36:00.553 - #2 ?d?? ?d??
EE 27-11-24 14:36:00.663 - #3 __pthread_kill_implementation ./nptl/./nptl/pthread_kill.c:44
EE 27-11-24 14:36:00.755 - #4 __GI_raise ../sysdeps/posix/raise.c:27
EE 27-11-24 14:36:00.847 - #5 __GI_abort ./stdlib/./stdlib/abort.c:81 (discriminator 20)
EE 27-11-24 14:36:00.938 - #6 __assert_fail_base ./assert/./assert/assert.c:89
EE 27-11-24 14:36:01.080 - #7 __GI___assert_fail :?
EE 27-11-24 14:36:01.088 - #8 main ??:?
EE 27-11-24 14:36:01.205 - #9 __libc_start_call_main ../sysdeps/unix/sysv/linux/aarch64/libc-start.c:74
EE 27-11-24 14:36:01.293 - #10 call_init ../csu/libc-start.c:128
EE 27-11-24 14:36:01.300 - #11 _start ??:?


However, the patch that you have introduced have solved the issue. Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants