Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Tablet tool/touch only mapped to output after reload #2131

Closed
David96 opened this issue Apr 21, 2020 · 3 comments
Closed

Tablet tool/touch only mapped to output after reload #2131

David96 opened this issue Apr 21, 2020 · 3 comments

Comments

@David96
Copy link
Contributor

David96 commented Apr 21, 2020

Hey everyone,

Apparently, ab4dc16 causes my tablet tool/touch to not be mapped to its output, only after reloading the config. Reverting it solves the issue for me.

I'm using sway with wlroots on the current master (f81aa6a, resp. swaywm/sway@83d7698)

The relevant config part:

input type:tablet_tool {
    map_to_output eDP-1
}
input type:touch {
    map_to_output eDP-1
}

I took a debug log but I'm not sure, it has any helpful information in it:

Debug log
00:00:00.006 [sway/main.c:153] Linux arch64 5.7.0-rc2-1-mainline #2 SMP PREEMPT Tue, 21 Apr 2020 12:55:39 +0000 x86_64 GNU/Linux
00:00:00.007 [sway/main.c:169] Contents of /etc/lsb-release:
00:00:00.007 [sway/main.c:153] LSB_VERSION=1.4
00:00:00.007 [sway/main.c:153] DISTRIB_ID=Arch
00:00:00.007 [sway/main.c:153] DISTRIB_RELEASE=rolling
00:00:00.007 [sway/main.c:153] DISTRIB_DESCRIPTION="Arch Linux"
00:00:00.007 [sway/main.c:169] Contents of /etc/os-release:
00:00:00.007 [sway/main.c:153] NAME="Arch Linux"
00:00:00.007 [sway/main.c:153] PRETTY_NAME="Arch Linux"
00:00:00.007 [sway/main.c:153] ID=arch
00:00:00.007 [sway/main.c:153] BUILD_ID=rolling
00:00:00.007 [sway/main.c:153] ANSI_COLOR="0;36"
00:00:00.007 [sway/main.c:153] HOME_URL="https://www.archlinux.org/"
00:00:00.007 [sway/main.c:153] DOCUMENTATION_URL="https://wiki.archlinux.org/"
00:00:00.007 [sway/main.c:153] SUPPORT_URL="https://bbs.archlinux.org/"
00:00:00.007 [sway/main.c:153] BUG_REPORT_URL="https://bugs.archlinux.org/"
00:00:00.007 [sway/main.c:153] LOGO=archlinux
00:00:00.007 [sway/main.c:141] LD_LIBRARY_PATH=(null)
00:00:00.007 [sway/main.c:141] LD_PRELOAD=(null)
00:00:00.007 [sway/main.c:141] PATH=/home/iuser/.gem/ruby/2.7.0/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
00:00:00.007 [sway/main.c:141] SWAYSOCK=(null)
00:00:00.018 [backend/session/logind.c:822] Successfully loaded logind session
00:00:00.020 [backend/backend.c:157] Found 1 GPUs
00:00:00.020 [backend/drm/backend.c:159] Initializing DRM backend for /dev/dri/card0 (amdgpu)
00:00:00.021 [backend/drm/drm.c:255] Found 4 DRM CRTCs
00:00:00.021 [backend/drm/drm.c:176] Found 9 DRM planes
00:00:00.104 [render/egl.c:246] Using EGL 1.5
00:00:00.104 [render/egl.c:247] Supported EGL extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync 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_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 
00:00:00.104 [render/egl.c:248] EGL vendor: Mesa Project
00:00:00.108 [render/gles2/renderer.c:578] Using OpenGL ES 3.2 Mesa 20.0.4
00:00:00.108 [render/gles2/renderer.c:579] GL vendor: X.Org
00:00:00.108 [render/gles2/renderer.c:580] GL renderer: AMD RAVEN (DRM 3.36.0, 5.7.0-rc2-1-mainline, LLVM 10.0.0)
00:00:00.108 [render/gles2/renderer.c:581] 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_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_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_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_OES_viewport_array GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_robustness 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_robustness GL_KHR_texture_compression_astc_ldr GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_ANDROID_extension_pack_es31a 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_gpu_shader5 GL_EXT_polygon_offset_clamp GL_EXT_primitive_bounding_box GL_EXT_render_snorm GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_texture_norm16 GL_EXT_texture_view GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_image_formats GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5 GL_OES_primitive_bounding_box GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_io_blocks GL_OES_shader_multisample_interpolation GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_shader_samples_identical 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_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_EXT_window_rectangles GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_texture_compression_bptc GL_KHR_parallel_shader_compile GL_AMD_framebuffer_multisample_advanced GL_EXT_EGL_image_storage GL_EXT_texture_sRGB_R8 GL_MESA_framebuffer_flip_y GL_EXT_depth_clamp GL_EXT_texture_query_lod 
00:00:00.112 [backend/noop/backend.c:51] Creating noop backend
00:00:00.113 [sway/main.c:372] Starting sway version 1.4-83d76980 (Apr 21 2020, branch 'master')
00:00:00.116 [sway/config.c:387] Loading config from /home/iuser/.config/sway/config
00:00:00.168 [sway/server.c:205] Starting backend on wayland display 'wayland-0'
[...]
00:00:00.277 [backend/drm/drm.c:1320] Scanning DRM connectors
00:00:00.277 [backend/drm/drm.c:1383] Found connector 'eDP-1'
00:00:00.277 [backend/drm/drm.c:1419] 'eDP-1' connected
00:00:00.277 [backend/drm/drm.c:1425] Physical size: 290x170
00:00:00.277 [backend/drm/drm.c:1443] Detected modes:
00:00:00.277 [backend/drm/drm.c:1465]   1920x1080@60033 (preferred)
00:00:00.277 [backend/drm/drm.c:1465]   1920x1080@39999 
00:00:00.277 [backend/drm/drm.c:1465]   1680x1050@60033 
00:00:00.277 [backend/drm/drm.c:1465]   1280x1024@60033 
00:00:00.277 [backend/drm/drm.c:1465]   1440x900@60033 
00:00:00.277 [backend/drm/drm.c:1465]   1280x800@60033 
00:00:00.277 [backend/drm/drm.c:1465]   1280x720@60033 
00:00:00.277 [backend/drm/drm.c:1465]   1024x768@60033 
00:00:00.277 [backend/drm/drm.c:1465]   800x600@60033 
00:00:00.277 [backend/drm/drm.c:1465]   640x480@60033 
00:00:00.278 [backend/drm/drm.c:1383] Found connector 'DP-1'
00:00:00.278 [backend/drm/drm.c:1419] 'DP-1' connected
00:00:00.278 [backend/drm/drm.c:1425] Physical size: 480x270
00:00:00.278 [backend/drm/drm.c:1443] Detected modes:
00:00:00.278 [backend/drm/drm.c:1465]   1920x1080@60000 (preferred)
00:00:00.278 [backend/drm/drm.c:1465]   1920x1080@59940 
00:00:00.278 [backend/drm/drm.c:1465]   1920x1080@50000 
00:00:00.278 [backend/drm/drm.c:1465]   1600x1200@60000 
00:00:00.278 [backend/drm/drm.c:1465]   1680x1050@59883 
00:00:00.278 [backend/drm/drm.c:1465]   1280x1024@60020 
00:00:00.278 [backend/drm/drm.c:1465]   1440x900@59901 
00:00:00.278 [backend/drm/drm.c:1465]   1280x960@60000 
00:00:00.278 [backend/drm/drm.c:1465]   1280x800@59910 
00:00:00.278 [backend/drm/drm.c:1465]   1280x720@60000 
00:00:00.278 [backend/drm/drm.c:1465]   1280x720@60000 
00:00:00.278 [backend/drm/drm.c:1465]   1280x720@59940 
00:00:00.278 [backend/drm/drm.c:1465]   1280x720@50000 
00:00:00.278 [backend/drm/drm.c:1465]   1024x768@60004 
00:00:00.278 [backend/drm/drm.c:1465]   800x600@60317 
00:00:00.278 [backend/drm/drm.c:1465]   800x600@56250 
00:00:00.278 [backend/drm/drm.c:1465]   720x576@50000 
00:00:00.278 [backend/drm/drm.c:1465]   720x576@50000 
00:00:00.278 [backend/drm/drm.c:1465]   720x576@50000 
00:00:00.278 [backend/drm/drm.c:1465]   720x480@60000 
00:00:00.278 [backend/drm/drm.c:1465]   720x480@60000 
00:00:00.278 [backend/drm/drm.c:1465]   720x480@59940 
00:00:00.278 [backend/drm/drm.c:1465]   720x480@59940 
00:00:00.278 [backend/drm/drm.c:1465]   720x480@59940 
00:00:00.278 [backend/drm/drm.c:1465]   640x480@60000 
00:00:00.278 [backend/drm/drm.c:1465]   640x480@59940 
00:00:00.278 [backend/drm/drm.c:1465]   640x480@59940 
00:00:00.278 [backend/drm/drm.c:1531] Requesting modeset for 'eDP-1'
00:00:00.278 [backend/drm/drm.c:833] Modesetting 'eDP-1' with '1920x1080@60033 mHz'
00:00:00.330 [backend/drm/drm.c:1531] Requesting modeset for 'DP-1'
00:00:00.330 [backend/drm/drm.c:833] Modesetting 'DP-1' with '1920x1080@60000 mHz'
[...]
00:00:00.380 [sway/server.c:216] Running compositor on wayland display 'wayland-0'
'/var/log/audit/audit.log' does not exist. Aborting
2020-04-22 00:06:24 - [swaybg/main.c:299] Found config DP-1 for output DP-1 (Samsung Electric Company SyncMaster H9MSB00217)
2020-04-22 00:06:24 - [swaybg/main.c:299] Found config eDP-1 for output eDP-1 (Unknown 0x552D 0x00000000)
00:00:01.279 [sway/ipc-server.c:567] IPC Client 80 disconnected
00:00:01.337 [sway/ipc-server.c:567] IPC Client 80 disconnected
00:00:04.781 [sway/commands.c:255] Handling command 'reload'
00:00:04.787 [sway/config.c:387] Loading config from /home/iuser/.config/sway/config
[...]
00:00:05.337 [sway/ipc-server.c:567] IPC Client 78 disconnected
00:00:05.337 [sway/ipc-server.c:567] IPC Client 76 disconnected
00:00:05.337 [sway/ipc-server.c:567] IPC Client 74 disconnected
00:00:05.337 [sway/ipc-server.c:567] IPC Client 72 disconnected
00:00:05.337 [sway/ipc-server.c:567] IPC Client 70 disconnected
00:00:05.337 [sway/ipc-server.c:567] IPC Client 68 disconnected
00:00:05.351 [sway/commands.c:255] Handling command 'inhibit_idle fullscreen'
00:00:05.351 [sway/commands.c:255] Handling command 'inhibit_idle fullscreen'
00:00:05.351 [sway/ipc-server.c:567] IPC Client 66 disconnected
00:00:05.351 [sway/ipc-server.c:567] IPC Client 64 disconnected
00:00:05.351 [sway/ipc-server.c:567] IPC Client 62 disconnected
00:00:05.351 [sway/ipc-server.c:567] IPC Client 60 disconnected
00:00:05.351 [sway/ipc-server.c:567] IPC Client 58 disconnected
00:00:05.351 [sway/ipc-server.c:567] IPC Client 56 disconnected
2020-04-22 00:06:29 - [swaybg/main.c:299] Found config DP-1 for output DP-1 (Samsung Electric Company SyncMaster H9MSB00217)
2020-04-22 00:06:29 - [swaybg/main.c:299] Found config eDP-1 for output eDP-1 (Unknown 0x552D 0x00000000)
00:00:06.038 [sway/ipc-server.c:567] IPC Client 77 disconnected
00:00:06.060 [sway/ipc-server.c:567] IPC Client 77 disconnected
00:00:08.726 [sway/commands.c:255] Handling command 'exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your session.' -b 'Yes, exit sway' 'swaymsg exit'"'
00:00:10.198 [sway/commands.c:255] Handling command 'exit'
00:00:10.198 [sway/main.c:412] Shutting down sway
thread 'main' panicked at 'failed to read wayland events: Broken pipe (os error 32)', <::std::macros::panic macros>:5:6
Gdk-Message: 00:06:34.292: Error reading events from display: Datenübergabe unterbrochen (broken pipe)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Gdk-Message: 00:06:34.292: Error reading events from display: Datenübergabe unterbrochen (broken pipe)
Gdk-Message: 00:06:34.292: Error reading events from display: Datenübergabe unterbrochen (broken pipe)
Gdk-Message: 00:06:34.294: Error reading events from display: Datenübergabe unterbrochen (broken pipe)
00:00:10.243 [backend/drm/drm.c:1696] Emitting destruction signal for 'eDP-1'
00:00:10.243 [backend/drm/atomic.c:56] eDP-1: Atomic commit failed (modeset): Invalid argument
00:00:10.243 [backend/drm/atomic.c:62] eDP-1: Atomic commit without new changes failed (modeset): Invalid argument
00:00:10.243 [backend/drm/drm.c:1696] Emitting destruction signal for 'DP-1'
00:00:10.244 [backend/drm/atomic.c:56] DP-1: Atomic commit failed (modeset): Invalid argument
00:00:10.244 [backend/drm/atomic.c:62] DP-1: Atomic commit without new changes failed (modeset): Invalid argument
00:00:10.299 [sway/ipc-server.c:567] IPC Client 79 disconnected
00:00:00.101 [common/ipc-client.c:88] Unable to receive IPC response00:00:10.299 
[sway/ipc-server.c:567] IPC Client 75 disconnected
00:00:10.299 [sway/ipc-server.c:567] IPC Client 73 disconnected
00:00:10.299 [sway/ipc-server.c:567] IPC Client 71 disconnected
00:00:10.299 [sway/ipc-server.c:567] IPC Client 69 disconnected
00:00:10.299 [sway/ipc-server.c:567] IPC Client 67 disconnected
00:00:10.300 [sway/ipc-server.c:567] IPC Client 65 disconnected
00:00:10.300 [sway/ipc-server.c:567] IPC Client 63 disconnected
00:00:10.300 [sway/ipc-server.c:567] IPC Client 61 disconnected
00:00:10.300 [sway/ipc-server.c:567] IPC Client 59 disconnected
00:00:10.300 [sway/ipc-server.c:567] IPC Client 57 disconnected
00:00:10.300 [sway/ipc-server.c:567] IPC Client 48 disconnected
00:00:10.300 [sway/ipc-server.c:567] IPC Client 23 disconnected
@Xyene
Copy link
Member

Xyene commented Apr 22, 2020

Does swaywm/sway#5243 fix this for you? I filed the same issue in swaywm/sway#5231; not sure if my fix is acceptable or not yet, but it does fix the issue on my end.

I guess part of what the commit you linked does is end up making the libinput backend be initialized before the DRM one, which immediately leads to this issue — but I think it would have always happened for hotplugged outputs.

@David96
Copy link
Contributor Author

David96 commented Apr 22, 2020

Yes it does! How could I miss that?

Thanks a lot :) In general, all your tablet tool fixes are highly appreciated! I was dealing with some crashes of xournalpp for quite some time now but I never could reliably reproduce them, I'm hoping that they'll be fixed by one of your commits, too.

@David96 David96 closed this as completed Apr 22, 2020
@Xyene
Copy link
Member

Xyene commented Apr 23, 2020

Glad to hear it worked, and thanks for the kind words!

I don't use my tablet frequently myself, but it seemed an interesting problem and I hope to work my way through the remaining issues I'm aware of / can reproduce 😄

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

No branches or pull requests

2 participants