Reverse 2 and 3-finger tapping on synaptics touchpad

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
himase
Level 1
Level 1
Posts: 3
Joined: Mon Jun 24, 2013 11:28 am

Reverse 2 and 3-finger tapping on synaptics touchpad

Post by himase »

I have Linux Mint Debian Edition, installed on an Asus 1005PE laptop. If I tap with 2 fingers, it performs the right mouse click, and with 3 fingers, the middle mouse click. I want to reverse that, (2 finger tap = middle mouse click) but I couldn't find out how. Please help me :oops:
User avatar
roblm
Level 12
Level 12
Posts: 4455
Joined: Sun Feb 24, 2013 2:41 pm

Re: Reverse 2 and 3-finger tapping on synaptics touchpad

Post by roblm »

Open the Terminal and type: xinput
Look in the list for a touchpad item, such as "SynPS/2 Synaptics TouchPad" and get it's id number on the right. Then type the command:
xinput list-props X
where X is the id number you got above. Post the result.
himase
Level 1
Level 1
Posts: 3
Joined: Mon Jun 24, 2013 11:28 am

Re: Reverse 2 and 3-finger tapping on synaptics touchpad

Post by himase »

Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (134): 1
Coordinate Transformation Matrix (136): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (256): 1
Device Accel Constant Deceleration (257): 2.500000
Device Accel Adaptive Deceleration (258): 1.000000
Device Accel Velocity Scaling (259): 12.500000
Synaptics Edges (260): 1775, 5505, 1648, 4602
Synaptics Finger (261): 25, 30, 256
Synaptics Tap Time (262): 180
Synaptics Tap Move (263): 243
Synaptics Tap Durations (264): 180, 180, 100
Synaptics ClickPad (265): 0
Synaptics Tap FastTap (266): 0
Synaptics Middle Button Timeout (267): 75
Synaptics Two-Finger Pressure (268): 282
Synaptics Two-Finger Width (269): 7
Synaptics Scrolling Distance (270): 110, 110
Synaptics Edge Scrolling (271): 0, 0, 0
Synaptics Two-Finger Scrolling (272): 1, 1
Synaptics Move Speed (273): 1.000000, 1.750000, 0.036160, 40.000000
Synaptics Edge Motion Pressure (274): 30, 160
Synaptics Edge Motion Speed (275): 1, 442
Synaptics Edge Motion Always (276): 0
Synaptics Off (277): 0
Synaptics Locked Drags (278): 0
Synaptics Locked Drags Timeout (279): 5000
Synaptics Tap Action (280): 2, 3, 0, 0, 1, 3, 0
Synaptics Click Action (281): 1, 1, 0
Synaptics Circular Scrolling (282): 0
Synaptics Circular Scrolling Distance (283): 0.100000
Synaptics Circular Scrolling Trigger (284): 0
Synaptics Circular Pad (285): 0
Synaptics Palm Detection (286): 0
Synaptics Palm Dimensions (287): 10, 200
Synaptics Coasting Speed (288): 20.000000, 50.000000
Synaptics Pressure Motion (289): 30, 160
Synaptics Pressure Motion Factor (290): 1.000000, 1.000000
Synaptics Resolution Detect (291): 1
Synaptics Grab Event Device (292): 1
Synaptics Gestures (293): 1
Synaptics Capabilities (294): 1, 0, 1, 1, 1, 1, 1
Synaptics Pad Resolution (295): 136, 80
Synaptics Area (296): 0, 0, 0, 0
Synaptics Noise Cancellation (297): 27, 27
Device Product ID (251): 2, 7
Device Node (252): "/dev/input/event10"
User avatar
roblm
Level 12
Level 12
Posts: 4455
Joined: Sun Feb 24, 2013 2:41 pm

Re: Reverse 2 and 3-finger tapping on synaptics touchpad

Post by roblm »

If you look at the property: Synaptics Tap Action (280): 2, 3, 0, 0, 1, 3, 0
there are seven numbers after 280, which is the id number of that property. These numbers correspond to the mouse button that is reported when tapping on different areas of the touchpad. The first four numbers correspond to tapping on the four corners of the touchpad. The fifth is for one-finger tapping in a non-corner area, the sixth is two-finger tapping and the last is for three-finger tapping. Since the last number is 0, then it seems that you should not get any action from three-finger tapping.

Check the link below for information on your touchpad's properties. Each Option will list the corresponding Property.
http://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html

Try using this command in the Terminal:
xinput --set-prop “SynPS/2 Synaptics TouchPad” “Synaptics Tap Action” 2 3 0 0 1 2 3

I think the changes take place immediately without having to log off and back in or restarting your computer. Test your touchpad.

Any changes you make will be lost upon restarting you system but right now we're just trying to see if changing this property gives the result
you want.
himase
Level 1
Level 1
Posts: 3
Joined: Mon Jun 24, 2013 11:28 am

Re: Reverse 2 and 3-finger tapping on synaptics touchpad

Post by himase »

I had to replace the names with the ID numbers of the device and property
xinput --set-prop 13 280 2 3 0 0 1 2 3

This command does make my mous work the way I want it to work, thanks a lot! :) How can this be made permanent?
User avatar
roblm
Level 12
Level 12
Posts: 4455
Joined: Sun Feb 24, 2013 2:41 pm

Re: Reverse 2 and 3-finger tapping on synaptics touchpad

Post by roblm »

That's strange why you had to change the original command. Perhaps there was an error in one of the letters, characters or spacing, or the name of the touchpad was listed more than once when the xinput command was used. Either method should work but the advantage of using the words is that the id number can sometimes change for the device, depending on if you remove or add devices. This is more likely to occur with a desktop PC than a laptop. The command can also be done like this:
xinput --set-prop “SynPS/2 Synaptics TouchPad” 280 2 3 0 0 1 2 3

To make this change permanent, try this method. Open Nemo and go to “/user/share/X11/xorg.conf.d”. Right click on the file “50-synaptics-conf” and select “Open as Root”. Then open the file and add these two lines:

Option "TapButton2" "2"
Option "TapButton3" "3"

to the first section named:
Section "InputClass"

The file will look something like this:

Code: Select all

Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        Option "TapButton2" "2" 
        Option "TapButton3" "3" 
        MatchDevicePath "/dev/input/event*"
EndSection
Save the file, reboot and test your touchpad.
Post Reply

Return to “Hardware Support”