Thinkpad mouse button problem

Kernels & Hardware, configuring network, installing services

Thinkpad mouse button problem

Postby chal » 2018-12-17 19:12

I have just updated the system on my X1 Carbon - not a major version upgrade, just a regular update. I'm running stretch. I do not use the touchpad, just the trackpoint and the three mouse buttons. I have disabled the touchpad, and middle button scrolling, via .xsession. Getting all this to work properly has never been straightforward. While using Deb 8, switching off the touchpad in bios settings was ignored and I used synclient to do it. When I first switched to Deb 9 the bios setting seemed to be recognized, so I stopped using synclient to disable the touchpad. On the other hand, the middle mouse button defaulted to scroll so I started using xinput to stop that happening. Since the update, the bios disabling of the touchpad has stopped working again, so I now have these lines in .xsession:
Code: Select all
xinput --set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 0
xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Button Scrolling Button' 0
xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Scroll Method Enabled' 0, 0, 0

I am not honestly sure what the last one does - I included it in desperation. My problem is that the left button now seems to randomly work as a scroll button: I click it and instead of performing the usual click action, eg following a hyperlink, it picks up the link text and the trackpoint drags it around. Clicking on a browser tab simply picks it up and I find myself accidentally dragging it around the srceen. Highlighting text doesn't stop when the button is released. Once it starts behaving like that, it takes another couple of clicks (sometimes only one, sometimes two or three) to set it back to normal behaviour and deactivate the scrolling/dragging. Irritatingly, this does not happen every time I click the button, but roughly every 2nd or 3rd time. xev shows button press and release events correctly so I do not think the button is faulty (and it would be a strange coincidence if it developed the fault at the precise moment of performing the system update. I presume it is a configuration issue but I cannot find any reference to it.
chal
 
Posts: 20
Joined: 2014-01-27 12:27

Re: Thinkpad mouse button problem

Postby bw123 » 2018-12-17 19:21

I don't know much about thinkpad, but I would start with just look over the output of xinput by itself and see if those settings make sense. Then --list-props on each. Maybe the device or property names don't match?
User avatar
bw123
 
Posts: 3787
Joined: 2011-05-09 06:02

Re: Thinkpad mouse button problem

Postby chal » 2018-12-17 19:28

I have checked all through the output of xinput but it all seems more-or-less sensible (there's a couple of things I'm not really sure what they do, hence my attempt to disable a scroll method. Not sure if it helps, but here is the output:
Code: Select all
$ xinput
⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                      id=12   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                 id=11   [slave  pointer  (2)]
⎣ Virtual core keyboard                      id=3   [master keyboard (2)]

$ xinput --list-props 'TPPS/2 IBM TrackPoint'
Device 'TPPS/2 IBM TrackPoint':
   Device Enabled (139):   1
   Coordinate Transformation Matrix (141):   1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
   libinput Accel Speed (311):   0.000000
   libinput Accel Speed Default (312):   0.000000
   libinput Accel Profiles Available (313):   1, 1
   libinput Accel Profile Enabled (314):   1, 0
   libinput Accel Profile Enabled Default (315):   1, 0
   libinput Natural Scrolling Enabled (316):   0
   libinput Natural Scrolling Enabled Default (317):   0
   libinput Send Events Modes Available (261):   1, 0
   libinput Send Events Mode Enabled (262):   0, 0
   libinput Send Events Mode Enabled Default (263):   0, 0
   libinput Left Handed Enabled (318):   0
   libinput Left Handed Enabled Default (319):   0
   libinput Scroll Methods Available (320):   0, 0, 1
   libinput Scroll Method Enabled (321):   0, 0, 0
   libinput Scroll Method Enabled Default (322):   0, 0, 1
   libinput Button Scrolling Button (323):   0
   libinput Button Scrolling Button Default (324):   2
   libinput Middle Emulation Enabled (325):   0
   libinput Middle Emulation Enabled Default (326):   0
   Device Node (264):   "/dev/input/event2"
   Device Product ID (265):   2, 10
   libinput Drag Lock Buttons (327):   <no items>
   libinput Horizontal Scroll Enabled (328):   1

$ xinput --list-props 'SynPS/2 Synaptics TouchPad'
Device 'SynPS/2 Synaptics TouchPad':
   Device Enabled (139):   0
   Coordinate Transformation Matrix (141):   1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
   Device Accel Profile (269):   1
   Device Accel Constant Deceleration (270):   2.500000
   Device Accel Adaptive Deceleration (271):   1.000000
   Device Accel Velocity Scaling (272):   12.500000
   Synaptics Edges (273):   1574, 5368, 1352, 4502
   Synaptics Finger (274):   25, 30, 0
   Synaptics Tap Time (275):   180
   Synaptics Tap Move (276):   252
   Synaptics Tap Durations (277):   180, 180, 100
   Synaptics ClickPad (278):   1
   Synaptics Middle Button Timeout (279):   0
   Synaptics Two-Finger Pressure (280):   282
   Synaptics Two-Finger Width (281):   7
   Synaptics Scrolling Distance (282):   114, 114
   Synaptics Edge Scrolling (283):   0, 0, 0
   Synaptics Two-Finger Scrolling (284):   1, 0
   Synaptics Move Speed (285):   1.000000, 1.750000, 0.034892, 0.000000
   Synaptics Off (286):   0
   Synaptics Locked Drags (287):   0
   Synaptics Locked Drags Timeout (288):   5000
   Synaptics Tap Action (289):   0, 0, 0, 0, 0, 0, 0
   Synaptics Click Action (290):   1, 3, 2
   Synaptics Circular Scrolling (291):   0
   Synaptics Circular Scrolling Distance (292):   0.100000
   Synaptics Circular Scrolling Trigger (293):   0
   Synaptics Circular Pad (294):   0
   Synaptics Palm Detection (295):   0
   Synaptics Palm Dimensions (296):   10, 200
   Synaptics Coasting Speed (297):   20.000000, 50.000000
   Synaptics Pressure Motion (298):   30, 160
   Synaptics Pressure Motion Factor (299):   1.000000, 1.000000
   Synaptics Grab Event Device (300):   0
   Synaptics Gestures (301):   1
   Synaptics Capabilities (302):   1, 0, 0, 1, 1, 1, 1
   Synaptics Pad Resolution (303):   68, 45
   Synaptics Area (304):   0, 0, 0, 0
   Synaptics Soft Button Areas (305):   3471, 0, 4098, 0, 0, 0, 0, 0
   Synaptics Noise Cancellation (306):   28, 28
   Device Product ID (265):   2, 7
   Device Node (264):   "/dev/input/event1"
chal
 
Posts: 20
Joined: 2014-01-27 12:27


Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable