Configure your trackpad using xinput

Share your wisdom. Not for support questions!

Moderator: How-to Curator

Configure your trackpad using xinput

Postby demosthenese » March 29th, 2011, 7:12 pm

HOW-TO set up a trackpad using xinput

The advantage of xinput over xorg config files is that it can be used on the fly to configure the trackpad, so each user can have their own configuration script at login.

First you will need to install xinput, if you do not have it already.

Code: Select all
# apt-get update
# apt-get install xinput


Next, find out the name of your trackpad device.

Code: Select all
$ xinput --list


Which will produce a list similar to

Code: Select all
⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                 id=12   [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)]
    ↳ Power Button                               id=8   [slave  keyboard (3)]
    ↳ Sleep Button                               id=9   [slave  keyboard (3)]
    ↳ BisonCam, NB Pro                           id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard               id=11   [slave  keyboard (3)]

You can then find which properties of the trackpad that can be set with

Code: Select all
$ xinput --list-props 'SynPS/2 Synaptics TouchPad'


Adjust the name of the device to suit your hardware. This will produce a list similar to

Code: Select all
Device 'SynPS/2 Synaptics TouchPad':
   Device Enabled (119):   1
   Coordinate Transformation Matrix (121):   1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
   Device Accel Profile (238):   1
   Device Accel Constant Deceleration (239):   2.500000
   Device Accel Adaptive Deceleration (240):   1.000000
   Device Accel Velocity Scaling (241):   12.500000
   Synaptics Edges (242):   1752, 5192, 1620, 4236
   Synaptics Finger (243):   24, 29, 255
   Synaptics Tap Time (244):   180
   Synaptics Tap Move (245):   221
   Synaptics Tap Durations (246):   180, 180, 100
   Synaptics Tap FastTap (247):   0
   Synaptics Middle Button Timeout (248):   75
   Synaptics Two-Finger Pressure (249):   10
   Synaptics Two-Finger Width (250):   8
   Synaptics Scrolling Distance (251):   100, 100
   Synaptics Edge Scrolling (252):   0, 0, 0
   Synaptics Two-Finger Scrolling (253):   1, 1
   Synaptics Move Speed (254):   1.000000, 1.750000, 0.039809, 40.000000
   Synaptics Edge Motion Pressure (255):   29, 159
   Synaptics Edge Motion Speed (256):   1, 401
   Synaptics Edge Motion Always (257):   0
   Synaptics Button Scrolling (258):   1, 1
   Synaptics Button Scrolling Repeat (259):   1, 1
   Synaptics Button Scrolling Time (260):   100
   Synaptics Off (261):   0
   Synaptics Locked Drags (262):   0
   Synaptics Locked Drags Timeout (263):   5000
   Synaptics Tap Action (264):   0, 0, 0, 0, 1, 2, 3
   Synaptics Click Action (265):   1, 1, 1
   Synaptics Circular Scrolling (266):   0
   Synaptics Circular Scrolling Distance (267):   0.100000
   Synaptics Circular Scrolling Trigger (268):   0
   Synaptics Circular Pad (269):   0
   Synaptics Palm Detection (270):   0
   Synaptics Palm Dimensions (271):   9, 199
   Synaptics Coasting Speed (272):   20.000000, 50.000000
   Synaptics Pressure Motion (273):   29, 159
   Synaptics Pressure Motion Factor (274):   1.000000, 1.000000
   Synaptics Grab Event Device (275):   1
   Synaptics Gestures (276):   1
   Synaptics Capabilities (277):   1, 0, 1, 0, 0, 1, 1
   Synaptics Pad Resolution (278):   99, 69
   Synaptics Area (279):   0, 0, 0, 0
   Synaptics Noise Cancellation (280):   25, 25
   Synaptics Jumpy Cursor Threshold (428):   110


To alter a setting use a command similar to

Code: Select all
$ xinput --set-prop 'SynPS/2 Synaptics TouchPad' "Synaptics Two-Finger Scrolling" 1 1


Finally, put the property setting commands that you desire in a script to run at login.
User avatar
demosthenese
 
Posts: 119
Joined: February 14th, 2011, 11:19 pm
Location: Liverpool, UK

Return to HowTo

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x