You are not logged in.

#1 2015-10-22 13:47:06

shox
Member
Registered: 2012-06-20
Posts: 51

[Gnome]Multi-touch gestures with Synaptic touchpad

Hi !
I would like to use some multi-touch gesture in gnome. Especially, I would like to be able to switch workspaces with 3 or 4 fingers like here https://wiki.gnome.org/Design/OS/Gestures
I know my touchpad support 2 and 3 fingers detection thanks to

xinput list-props "SynPS/2 Synaptics TouchPad" | grep Capabilities
	Synaptics Capabilities (333):	1, 0, 1, 1, 1, 1, 1

But I don't know about 4 fingers, does someone know ?

Here is more informations :

synclient -l
Parameter settings:
    LeftEdge                = 1661
    RightEdge               = 5371
    TopEdge                 = 1412
    BottomEdge              = 4512
    FingerLow               = 25
    FingerHigh              = 30
    MaxTapTime              = 180
    MaxTapMove              = 247
    MaxDoubleTapTime        = 100
    SingleTapTimeout        = 180
    ClickTime               = 100
    EmulateMidButtonTime    = 75
    EmulateTwoFingerMinZ    = 282
    EmulateTwoFingerMinW    = 7
    VertScrollDelta         = -112
    HorizScrollDelta        = -112
    VertEdgeScroll          = 0
    HorizEdgeScroll         = 0
    CornerCoasting          = 0
    VertTwoFingerScroll     = 1
    HorizTwoFingerScroll    = 1
    MinSpeed                = 1
    MaxSpeed                = 1.75
    AccelFactor             = 0.0355935
    TouchpadOff             = 2
    LockedDrags             = 0
    LockedDragTimeout       = 5000
    RTCornerButton          = 0
    RBCornerButton          = 0
    LTCornerButton          = 0
    LBCornerButton          = 0
    TapButton1              = 1
    TapButton2              = 3
    TapButton3              = 2
    ClickFinger1            = 1
    ClickFinger2            = 1
    ClickFinger3            = 1
    CircularScrolling       = 0
    CircScrollDelta         = 0.1
    CircScrollTrigger       = 0
    CircularPad             = 0
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 200
    CoastingSpeed           = 20
    CoastingFriction        = 50
    PressureMotionMinZ      = 30
    PressureMotionMaxZ      = 160
    PressureMotionMinFactor = 1
    PressureMotionMaxFactor = 1
    GrabEventDevice         = 0
    TapAndDragGesture       = 1
    AreaLeftEdge            = 0
    AreaRightEdge           = 0
    AreaTopEdge             = 0
    AreaBottomEdge          = 0
    HorizHysteresis         = 28
    VertHysteresis          = 28
    ClickPad                = 0

I don't know if it actually supported in gnome. It shown "??" in their wiki page : https://wiki.gnome.org/Design/OS/Gestures

If needed, I can try to add some code ! Do you know where I could find some informations ?

Thanks for your help smile

Offline

#2 2015-10-22 14:06:38

epinephrine
Member
From: Frankfurt
Registered: 2012-10-18
Posts: 92

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

What a coincidence! I just asked about the same topic here, in a more general manner! Seems I am not the only confused one.

Offline

#3 2015-10-22 14:07:00

shox
Member
Registered: 2012-06-20
Posts: 51

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

After asking on the Gnome's IRC, they told me that Touchpad gesture was only supported in Wayland ! It seems that there is no any X protocols for it in X
Will try it smile

Last edited by shox (2015-10-22 14:07:33)

Offline

#4 2015-10-22 14:21:54

epinephrine
Member
From: Frankfurt
Registered: 2012-10-18
Posts: 92

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

I just checked my gnome-session.
ps -aef | grep wayland:

gdm        455   443  0 15:11 tty1     00:00:00 /usr/lib/gdm/gdm-wayland-session /usr/bin/gnome-session --autostart /usr/share/gdm/greeter/autostart  --session gnome-wayland
gdm        457   455  0 15:11 tty1     00:00:00 /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart --session gnome-wayland
gdm        466   457  0 15:11 tty1     00:00:07 gnome-shell --mode=gdm --wayland --display-server
gdm        509   466  0 15:11 tty1     00:00:00 /usr/bin/Xwayland :1024 -rootless -noreset -listen 4 -listen 5 -displayfd 6

It is already running in wayland mode, but touchpad gestures beyond synaptics' capabilities are not working.

Offline

#5 2015-10-22 19:01:56

shox
Member
Registered: 2012-06-20
Posts: 51

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

Hi ! Thanks for your answer smile

Yes ! What a coincidence ! By the way your topic is waaaay better smile

Just checked too and it is working for me.
What did you tried ? Is your touchpad compatibe ?
I laucnched it froma tty

gnome-session --session=gnome-wayland

I had do create a second workspace and then I use my four fingers with a down movement and then it just went to the bottom workspace ! (You have to test it several times and do some clear movements !)
But I won't keep it like that since I have other problems (mouse disappearing for example)

shox  7357   708  0 20:51 tty1     00:00:00 /usr/lib/gnome-session/gnome-session-binary --session=gnome-wayland
shox  7366  7357  9 20:51 tty1     00:00:25 /usr/bin/gnome-shell --wayland --display-server
shox  7372  7366  3 20:51 tty1     00:00:07 /usr/bin/Xwayland :0 -rootless -noreset -listen 4 -listen 5 -displayfd 6

Last edited by shox (2015-10-22 19:05:25)

Offline

#6 2015-10-22 19:10:11

epinephrine
Member
From: Frankfurt
Registered: 2012-10-18
Posts: 92

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

Hey,
glad for you that it is working!

Since three finger tap is working, three-finger swipe should be recognized by the touchpad. It is a very new touchpad, so it must be a driver related problem...
It is not working with either synaptics or libinput as the input driver. Did the gnome irc folks by any chance mention which drivers to use? You use xf86-input-synaptics, I guess? Any configuration entries in /etc/X11/xorg.conf.d/?

Offline

#7 2015-10-22 19:28:05

shox
Member
Registered: 2012-06-20
Posts: 51

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

I guess that libinput is used under wayland because xf86-input-synaptics is X related right ? Anyway, I don't know which one is used, both are installed on my system !

Sadly, they didn't mention anything, but you may try to go to some channels (I got answer on #gnome-design) https://wiki.gnome.org/Community/GettingInTouch/IRC

No, I don't have any synaptics / mouse related configurations in /etc/X11/xorg.conf.d

NB : That is not three fingers swipe but FOUR fingers swipe wink Maybe, this is just that smile

Offline

#8 2015-10-22 20:48:18

epinephrine
Member
From: Frankfurt
Registered: 2012-10-18
Posts: 92

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

I think libinput can also be used for Xorg, see their website.
Issue journalctl -b | grep libinput or grep synaptics to see which driver is used for your touchpad.
I tried both, three and four finger swipes, neither are working wink

Offline

#9 2015-10-22 23:14:17

shox
Member
Registered: 2012-06-20
Posts: 51

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

I launched Wayland and X, and I'm definitely using synaptics. Here is the ouput of

journactl - b | grep synaptics
~|⇒ journalctl -b | grep synaptics
oct. 21 13:02:28 letik-laptop kernel: psmouse serio3: synaptics: queried max coordinates: x [..5672], y [..4764]
oct. 21 13:02:28 letik-laptop kernel: psmouse serio3: synaptics: queried min coordinates: x [1360..], y [1160..]
oct. 21 13:02:28 letik-laptop kernel: psmouse serio3: synaptics: Touchpad model: 1, fw: 8.1, id: 0x1e2b1, caps: 0xd00123/0x840300/0x26800/0x0, board id: 2768, fw id: 1478018
oct. 21 19:46:41 letik-laptop kernel: psmouse serio3: synaptics: queried max coordinates: x [..5672], y [..4764]
oct. 21 19:46:41 letik-laptop kernel: psmouse serio3: synaptics: queried min coordinates: x [1360..], y [1160..]
oct. 22 09:03:10 letik-laptop kernel: psmouse serio3: synaptics: queried max coordinates: x [..5672], y [..4764]
oct. 22 09:03:10 letik-laptop kernel: psmouse serio3: synaptics: queried min coordinates: x [1360..], y [1160..]
oct. 22 19:20:23 letik-laptop kernel: psmouse serio3: synaptics: queried max coordinates: x [..5672], y [..4764]
oct. 22 19:20:23 letik-laptop kernel: psmouse serio3: synaptics: queried min coordinates: x [1360..], y [1160..]
oct. 23 00:23:34 letik-laptop kernel: psmouse serio3: synaptics: queried max coordinates: x [..5672], y [..4764]
oct. 23 00:23:34 letik-laptop kernel: psmouse serio3: synaptics: queried min coordinates: x [1360..], y [1160..]
oct. 23 00:44:31 letik-laptop kernel: psmouse serio3: synaptics: queried max coordinates: x [..5672], y [..4764]
oct. 23 00:44:31 letik-laptop kernel: psmouse serio3: synaptics: queried min coordinates: x [1360..], y [1160..]

If it could help, I'm using a HP 840 G1.

Offline

#10 2015-10-22 23:35:32

brittyazel
Member
From: Davis, CA
Registered: 2013-05-11
Posts: 163

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

package xf86-input-libinput should get your up and running using libinput which has multitouch. I can get 10 point touch on my laptop in both X and Wayland


I don't really know what I'm doing.

Offline

#11 2015-10-23 04:50:40

riggt
Member
Registered: 2015-10-20
Posts: 21

Re: [Gnome]Multi-touch gestures with Synaptic touchpad

I just installed xf86-input-libinput. Before I tested it out I looked around the internet to see if it needs any configuration or set up. Finding nothing I went directly into testing it out. It works perfectly on my Lenovo S1 ThinkPad Yoga. I say this because I really couldn't find any information on it on the internet, and I think it would be useful to others to know how well it works on what devices. What device are you using, brittyazel?


- riggt

Avatar sourced from XKCD under creative commons licensing.

Offline

Board footer

Powered by FluxBB