[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#822835: Synaptics Driver isn't used



On Thu, 2016-05-05 at 17:36 +0200, Julien Cristau wrote:
> I'm pretty sure this "libinput knows nothing about touchpad"
> statement is wrong.

That may well be true, as I am not familiar with the code.  Maybe you
can point out what I'm missing?

This is the output of (set -x; xinput; xinput list-props 15) when the
libinput driver (ie the new default) is in use:

+ + xinput
⎡ Virtual core pointer              id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer    id=4   [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen              id=12  [slave  pointer  (2)]
⎜   ↳ DLL06E4:01 06CB:7A13 Touchpad id=13  [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad    id=15  [slave  pointer  (2)]
⎣ Virtual core keyboard             id=3   [master keyboard (2)]
    ↳ Virtual core XTEST keyboard   id=5   [slave  keyboard (3)]
    ↳ Power Button                  id=6   [slave  keyboard (3)]
    ↳ Video Bus                     id=7   [slave  keyboard (3)]
    ↳ Video Bus                     id=8   [slave  keyboard (3)]
    ↳ Power Button                  id=9   [slave  keyboard (3)]
    ↳ Sleep Button                  id=10  [slave  keyboard (3)]
    ↳ Integrated_Webcam_HD          id=11  [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard  id=14  [slave  keyboard (3)]
    ↳ Dell WMI hotkeys              id=16  [slave  keyboard (3)]
+ xinput list-props 15
Device 'SynPS/2 Synaptics TouchPad':
  Device Enabled (137):	1
  Coordinate Transformation Matrix (139): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
  libinput Tapping Enabled (278): 1
  libinput Tapping Enabled Default (279): 0
  libinput Tapping Drag Enabled (280): 1
  libinput Tapping Drag Enabled Default (281): 1
  libinput Tapping Drag Lock Enabled (282): 1
  libinput Tapping Drag Lock Enabled Default (283): 0
  libinput Accel Speed (284): 0.102881
  libinput Accel Speed Default (285): 0.000000
  libinput Natural Scrolling Enabled (286): 0
  libinput Natural Scrolling Enabled Default (287): 0
  libinput Send Events Modes Available (258): 1, 1
  libinput Send Events Mode Enabled (259): 1, 1
  libinput Send Events Mode Enabled Default (260): 0, 0
  libinput Left Handed Enabled (288): 0
  libinput Left Handed Enabled Default (289): 0
  libinput Scroll Methods Available (290): 1, 1, 0
  libinput Scroll Method Enabled (291): 1, 0, 0
  libinput Scroll Method Enabled Default (292): 1, 0, 0
  libinput Click Methods Available (293): 1, 1
  libinput Click Method Enabled (294): 1, 0
  libinput Click Method Enabled Default (295): 1, 0
  libinput Disable While Typing Enabled (296): 0
  libinput Disable While Typing Enabled Default (297): 1
  Device Node (261): "/dev/input/event1"
  Device Product ID (262): 2, 7
  libinput Drag Lock Buttons (298): <no items>
  libinput Horizonal Scroll Enabled (263): 1

The touchpad didn't recognise tapping of any sort after boot.  It did
however recognise a two fingered drag as a scroll.  I then set few
properties using "xinput set-prop 15 ..." (278, 259, 284, 296).  None
had any effect I could detect.  Setting 291 and 294 looked enticing but
I could not figure out the syntax xinput wanted.

I enable the synaptics driver using /etc/X11/xorg.conf.f/touchpad.conf:

Section "InputClass"
  Identifier	"Touchpad twofinger scroll"
  MatchIsTouchpad "yes"
  Driver	"synaptics"
  Option	"ZAxisMapping"		"4 5"
  Option	"HorizTwoFingerScroll"	"true"
  Option	"VertTwoFingerScroll"	"true"
  Option	"FastTaps"		"on"
  Option	"AccelFactor"		"0.1028806" #2x
  Option	"MinSpeed"		"1"
  Option	"MaxSpeed"		"4.75"
  Option	"TapButton1"		"1"
  Option	"TapButton2"		"3"
  Option	"TapButton3"		"2"
EndSection

With the synaptics driver the touchpad works as you would expect.  Even
multi touch - two fingered tap is right click, two fingered drag is
scroll and so on.  

+ xinput
⎡ Virtual core pointer              d=2  [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer    d=4  [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen              d=12 [slave  pointer  (2)]
⎜   ↳ DLL06E4:01 06CB:7A13 Touchpad d=13 [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad    d=15 [slave  pointer  (2)]
⎣ Virtual core keyboard             d=3  [master keyboard (2)]
    ↳ Virtual core XTEST keyboard   d=5  [slave  keyboard (3)]
    ↳ Power Button                  d=6  [slave  keyboard (3)]
    ↳ Video Bus                     d=7  [slave  keyboard (3)]
    ↳ Video Bus                     d=8  [slave  keyboard (3)]
    ↳ Power Button                  d=9  [slave  keyboard (3)]
    ↳ Sleep Button                  d=10 [slave  keyboard (3)]
    ↳ Integrated_Webcam_HD          d=11 [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard  d=14 [slave  keyboard (3)]
    ↳ Dell WMI hotkeys              d=16 [slave  keyboard (3)]
+ xinput list-props 15
Device 'SynPS/2 Synaptics TouchPad':
  Device Enabled (137): 1
  Coordinate Transformation Matrix (139): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
  Device Accel Profile (270): 1
  Device Accel Constant Deceleration (271): 1.000000
  Device Accel Adaptive Deceleration (272): 1.000000
  Device Accel Velocity Scaling (273): 12.500000
  Synaptics Edges (278): 1585, 5357, 1446, 4406
  Synaptics Finger (279): 25, 30, 0
  Synaptics Tap Time (280): 180
  Synaptics Tap Move (281): 245
  Synaptics Tap Durations (282): 180, 100, 100
  Synaptics ClickPad (283): 1
  Synaptics Middle Button Timeout (284): 0
  Synaptics Two-Finger Pressure (285): 282
  Synaptics Two-Finger Width (286): 7
  Synaptics Scrolling Distance (287): 111, 111
  Synaptics Edge Scrolling (288): 0, 0, 0
  Synaptics Two-Finger Scrolling (289): 1, 1
  Synaptics Move Speed (290): 1.000000, 4.750000, 0.102881, 0.000000
  Synaptics Off (291): 2
  Synaptics Locked Drags (292): 0
  Synaptics Locked Drags Timeout (293): 5000
  Synaptics Tap Action (294): 0, 0, 0, 0, 1, 3, 2
  Synaptics Click Action (295): 1, 3, 2
  Synaptics Circular Scrolling (296): 0
  Synaptics Circular Scrolling Distance (297): 0.100000
  Synaptics Circular Scrolling Trigger (298): 0
  Synaptics Circular Pad (299): 0
  Synaptics Palm Detection (300): 0
  Synaptics Palm Dimensions (301): 10, 200
  Synaptics Coasting Speed (302): 20.000000, 50.000000
  Synaptics Pressure Motion (303): 30, 160
  Synaptics Pressure Motion Factor (304): 1.000000, 1.000000
  Synaptics Grab Event Device (305): 0
  Synaptics Gestures (306): 1
  Synaptics Capabilities (307): 1, 0, 0, 1, 1, 1, 1
  Synaptics Pad Resolution (308): 1, 1
  Synaptics Area (309): 0, 0, 0, 0
  Synaptics Soft Button Areas (310): 3471, 0, 4026, 0, 0, 0, 0, 0
  Synaptics Noise Cancellation (311): 27, 27
  Device Product ID (262): 2, 7
  Device Node (261): "/dev/input/event1"

Again using "xinput set-prop 15 ..." had no effect I could detect (I
tried setting 283=0, 289=1,1 295=2,1,3 306=0).  Not that it matters -
setting with synclient or via the Xorg config works fine.

It would be nice if libinput worked, as syndaemon doesn't work now and
I see libinput has a "Disable While Typing Enabled" option.  It would
be wonderful to have that again.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: