PINE64

Full Version: Touch doesnt rotate on Sway in PineTab2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I'm experimenting on running sway on PineTab2. My idea would be to use it together with the keyboard attached and sometime detach to read or doing stuff that are not keyboard heavy.

I managed to rotate the screen to landscape mode manually by running:
$ swaymsg output DSI-1 transform 90

This is fine, except that if I try to use the touchscreen it seems like the touch gestures "didn't rotate" together with the screen, i.e., I need to swipe left and right in order to scroll up and down when I'm reading a text.

Does anyone know what might be causing this? What is the KDE WM doing besides just rotating the output to match the gestures?
i dont have mine with me to check, is DSI-1 the touch input or the monitor?

https://github.com/swaywm/sway/issues/38...-604025483
(07-14-2023, 01:42 PM)tophneal Wrote: [ -> ]i dont have mine with me to check, is DSI-1 the touch input or the monitor?

https://github.com/swaywm/sway/issues/38...-604025483

DSI-1 is the monitor. I actually found the solution right after I posted. I ran:
$ swaymsg -t get_inputs
and found that the touchscreen input is actually named 1046:911:Goodix_Capacitive_TouchScreen

Then I found out about map_output and just added this line to my sway configuration file:
input 1046:911:Goodix_Capacitive_TouchScreen map_to_output DSI-1
and it worked!
Evening,

another tiling WM i found very interesting is (Hyprland)
I got automatic rotation and touch screen working (also Goodix_Capacitive_TouchScreen)

BUT!! I had massive problems because I at start up I got a mesasge:

"you have one or more incomparable xdg-desktop-portal-implementation installed please remove incomparable ones to avoid issues "

It seams that the xdg-desktop implementation that comes with plasma is not compatible with the one that Hyprland needs
( documented hyprland-xdg)
So many programs did not run and the hyprland implementation is not compatible wth all the Plasma stuff. Undecided


Can you please comment if you have seen sth,. similar with sway? OR are you even technically versed enough to point me somewhere  ....
to solve my problem. I really like Hyprland :-)


THX,
Thomas
(08-03-2023, 01:03 PM)TomZa Wrote: [ -> ]I had massive problems because I at start up I got a mesasge:

"you have one or more incomparable xdg-desktop-portal-implementation installed please remove incomparable ones to avoid issues "

It seams that the xdg-desktop implementation that comes with plasma is not compatible with the one that Hyprland needs

Can you please comment if you have seen sth,. similar with sway? OR are you even technically versed enough to point me somewhere  ....

No, I don't see this issue in sway. I found this bug report here:
https://github.com/flatpak/xdg-desktop-p...issues/969

Seems like this is an upstream issue/bug with xdg, but Hyprland is the first WM that I hear that has this problem. 

I never used Hyprland. Looking at the screenshots it seems very handsome, but I appreciate a more minimalistic design.