Configuring two-finger tap (right click) and scroll using xinput

Hi Everyone,

I’m using Gnome + i3 on Debian Stretch and having a difficult time configuring the touchpad using Kyle Rankin’s DKMS package. Using my best Google-foo I’ve been able to enable tap-to-click and disable edge scrolling but have so far been unable to manage to enable two-finger tap for right click emulation or two-finger scroll.

xinput yields :

me@mypc:~/dev/psmouse-byd-dkms$ xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ PS/2 BYD TouchPad                       	id=12	[slave  pointer  (2)]

further, xinput list-props "PS/2 BYD TouchPad" yields :

Device 'PS/2 BYD TouchPad':
	Device Enabled (138):	1
	Coordinate Transformation Matrix (140):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (263):	1
	Device Accel Constant Deceleration (264):	2.500000
	Device Accel Adaptive Deceleration (265):	1.000000
	Device Accel Velocity Scaling (266):	12.500000
	Synaptics Edges (267):	450, 10814, 359, 6297
	Synaptics Finger (268):	25, 30, 0
	Synaptics Tap Time (269):	180
	Synaptics Tap Move (270):	575
	Synaptics Tap Durations (271):	180, 100, 100
	Synaptics ClickPad (272):	0
	Synaptics Middle Button Timeout (273):	75
	Synaptics Two-Finger Pressure (274):	4
	Synaptics Two-Finger Width (275):	8
	Synaptics Scrolling Distance (276):	261, 261
	Synaptics Edge Scrolling (277):	0, 0, 0
	Synaptics Two-Finger Scrolling (278):	1, 1
	Synaptics Move Speed (279):	1.000000, 1.750000, 0.015287, 0.000000
	Synaptics Off (280):	0
	Synaptics Locked Drags (281):	0
	Synaptics Locked Drags Timeout (282):	5000
	Synaptics Tap Action (283):	0, 0, 0, 0, 1, 2, 3
	Synaptics Click Action (284):	1, 1, 1
	Synaptics Circular Scrolling (285):	0
	Synaptics Circular Scrolling Distance (286):	0.100000
	Synaptics Circular Scrolling Trigger (287):	0
	Synaptics Circular Pad (288):	0
	Synaptics Palm Detection (289):	0
	Synaptics Palm Dimensions (290):	10, 200
	Synaptics Coasting Speed (291):	20.000000, 50.000000
	Synaptics Pressure Motion (292):	30, 160
	Synaptics Pressure Motion Factor (293):	1.000000, 1.000000
	Synaptics Grab Event Device (294):	0
	Synaptics Gestures (295):	1
	Synaptics Capabilities (296):	1, 0, 1, 0, 0, 0, 0
	Synaptics Pad Resolution (297):	111, 111
	Synaptics Area (298):	0, 0, 0, 0
	Synaptics Noise Cancellation (299):	65, 65
	Device Product ID (258):	2, 20
	Device Node (259):	"/dev/input/event1"
	Synaptics Jumpy Cursor Threshold (495):	250

I found a script that alleges to configure things as I’ve described but thus far I’ve only been able to enable tap-to-click. The script, such as it is, looks like this :

#!/bin/bash

xinput --set-prop --type=int --format=32 12 "Synaptics Two-Finger Pressure" 4

# Below width 1 finger touch, above width simulate 2 finger touch. - value=pad-pixels
xinput --set-prop --type=int --format=32 12 "Synaptics Two-Finger Width" 8

# vertical scrolling, horizontal scrolling - values: 0=disable 1=enable
xinput --set-prop --type=int --format=8 12 "Synaptics Two-Finger Scrolling" 1 1

# vertical, horizontal, corner - values: 0=disable  1=enable
xinput --set-prop --type=int --format=8 12 "Synaptics Edge Scrolling" 0 0 0

# stabilize 2 finger actions - value=pad-pixels
xinput --set-prop --type=int --format=32 12 "Synaptics Jumpy Cursor Threshold" 250

# pad corners rt rb lt lb tap fingers 1 2 3 (can't simulate more then 2 tap fingers AFAIK) - values: 0=disable 1=left 2=middle 3=right e
tc. (in FF 8=back 9=forward)
xinput --set-prop --type=int --format=8 12 "Synaptics Tap Action" 0 0 0 0 1 2 3

It would be lovely if one of the kernel folks or other knowledgeable device folks could help us understand how deep the apparent attempt at synaptics emulation goes. Using debian stretch (4.4 kernel) gnome settings shows no touch options configurable for this device.

Many thanks!
Rebecca

Hi Rebecca,

I installed Ubuntu 16.04, installed the DKMS module, and built kyle rankin’s patch.
I have landed exactly where you are, with the module working and showing up under ubuntu in the mouse and trackpad area.
Speed, Tap-to-click, and natural scrolling options are available, but ‘two finger scroll’ box is greyed out.
I was just getting ready to try what you suggested… and I did, and no two finger scrolling.

So I can confirm your result so far.

-Colby

So do I (on PureOS, Ubuntu and Debian).

Seems someone with skills needs to work on the patches.

Hi folks,

the two-finger scrolling is disabled even in our drivers by default (the driver is included in Linux kernel 4.6 so you can get it from Debian Experimental repos). The issue with it was that it was very unreliable so the choice fell on disabling it. We are currently all over-tasked but in a week we will start investigating BYD touchpad issues and see what can we tackle.

I have the same pain with it, so be assured that we will try to tackle it hard or change that in future revisions!

Hi,

I have the same problem (no two-finger tap and scroll) in Debian Stretch… but at least I found an easy way to be able to configure the touchpad in gnome-control-center again: just uninstall package xserver-xorg-input-synaptics.

Michael Biebl wrote:

With GNOME 3.20 support for non-libinput configurations has been dropped from gnome-control-center. So if you want to configure your touchpad (and mouse) settings, you'll need xserver-xorg-input-libinput.

Unfortunately the synaptics package in Debian was changed to have a higher priority then libinput. So if you have xserver-xorg-input-synaptics installed you can’t configure your touchpad in gnome-control-center atm.

Cheers,
Stefan.

Does not work for me on Debian stretch :frowning:

Try this: https://puri.sm/forums/topic/librem-13-touchpad-qubes/#post-7013

Your link gives me 404 :frowning:

Because this is an old link, imported from previous forum. Here’s a converted link:

1 Like

Thank’s.

Anyway this manipulation does not work either under Debian stretch either.

Stil no two-finger scroll on the librem13-v1 :frowning: