swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.49k stars 1.11k forks source link

pocket p.c. touchscreen events not registering correctly with sway #6719

Open IdleHax opened 2 years ago

IdleHax commented 2 years ago

Hello. I am working on the porting effort for the linux device Pocket P.C. and would like to do an o.s. release with sway on top of Arch. Using the sway config file I have been able to correctly rotate the display and everything there is peachy. My issue is getting the integrated touchscreen to work with sway. The reason I believe the issue to be within sway itself is that all of the debugging info from libinput looks healthy and correct as far as I can tell. I have been going over all the available documentation for wayland in general and cannot find anything that looks out of place there as well. I have tried launching sway using my modified configs for rotating the display and supplying the inversion matrix to libinput, as well as using the default config with the incorrectly oriented screen to see if touch input works correct there relative to the screen orientation, but the results are the same. with a connected mouse the pointer disappears when tapping the screen, so the events are registering to some degree, but it seems to be sporadic and has no effect on any running userspace applications. I am sincerely thankful for any assistance provided.

output DSI-1 transform 270

input 0:0:genericft5x06(89) { calibration_matrix 0 1 0 -1 0 1 events enabled scroll_method two_finger tap enabled tap_button_map lrm map_to_output DSI-1 }

Adminisnyator commented 2 years ago

Afaik the map_to_output feature solves that. (refering to https://github.com/swaywm/sway/issues/3840)

atisharma commented 2 years ago

I have the same problem with a GPD pocket - transform 90 for the output is no longer reflected in the touchscreen's input. As a workaround I added a udev rule as per the archwiki for the gdp pocket.

telychko commented 1 year ago

The same problem on the laptop. map_to_output does not help. swaymsg input "1386:18888:Wacom_HID_49C8_Pen" map_to_output "eDP-1" Dell Inspiron 14 7425 2-in-1