leoperbo的答案适用于Ubuntu 12.04,但我必须在leoperbo的建议命令中更改266号。如果不仔细查找3位数字,则不应使用此命令
xinput set-int-prop NN 266 8 2 3 0 0 1 2 3
另一个命令虽然应该可以正常工作(设置的编号没有意义,所以我更改了它们)
xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 2, 3, 0, 0, 1, 2, 3
以防万一我写了以下指南来找到您的NN和266的触摸板。最后,我还将解释您设置的值,以便您选择最佳设置。另外,您可能应该阅读leoperbo的答案以进行永久设置
1在终端中使用以下命令
xinput list
你会得到这样的东西
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=13 [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)]
↳ 1.3M WebCam id=10 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ Acer WMI hotkeys id=12 [slave keyboard (3)]
我们需要的是触摸板的ID(在我的情况下为13)
2在终端中使用以下命令将XX替换为上面找到的ID号
xinput list-props XX
你会得到这样的东西
Device 'ETPS/2 Elantech Touchpad':
Device Enabled (144): 1
Coordinate Transformation Matrix (146): 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): 56, 1352, 34, 606
Synaptics Finger (274): 1, 1, 256
Synaptics Tap Time (275): 180
Synaptics Tap Move (276): 68
Synaptics Tap Durations (277): 180, 180, 100
Synaptics ClickPad (278): 0
Synaptics Tap FastTap (279): 1
Synaptics Middle Button Timeout (280): 75
Synaptics Two-Finger Pressure (281): 282
Synaptics Two-Finger Width (282): 7
Synaptics Scrolling Distance (283): 30, 30
Synaptics Edge Scrolling (284): 0, 0, 0
Synaptics Two-Finger Scrolling (285): 1, 0
Synaptics Move Speed (286): 1.000000, 1.750000, 0.129366, 40.000000
Synaptics Edge Motion Pressure (287): 30, 160
Synaptics Edge Motion Speed (288): 1, 123
Synaptics Edge Motion Always (289): 0
Synaptics Off (290): 2
Synaptics Locked Drags (291): 0
Synaptics Locked Drags Timeout (292): 5000
Synaptics Tap Action (293): 2, 3, 0, 0, 1, 3, 0
Synaptics Click Action (294): 1, 1, 0
Synaptics Circular Scrolling (295): 0
Synaptics Circular Scrolling Distance (296): 0.100000
Synaptics Circular Scrolling Trigger (297): 0
Synaptics Circular Pad (298): 0
Synaptics Palm Detection (299): 0
Synaptics Palm Dimensions (300): 10, 200
Synaptics Coasting Speed (301): 20.000000, 50.000000
Synaptics Pressure Motion (302): ... of unknown type CARDINAL
Synaptics Pressure Motion Factor (303): 1.000000, 1.000000
Synaptics Resolution Detect (304): 1
Synaptics Grab Event Device (305): 1
Synaptics Gestures (306): 1
Synaptics Capabilities (307): 1, 0, 1, 1, 1, 1, 1
Synaptics Pad Resolution (308): 1, 1
Synaptics Area (309): 0, 0, 0, 0
Synaptics Noise Cancellation (310): 7, 7
Device Product ID (263): 2, 14
Device Node (264): "/dev/input/event11"
我们需要在上面找到的是这条线
Synaptics Tap Action (293): 2, 3, 0, 0, 1, 3, 0
并记下()中的数字,在我的情况下是293
终端上的第三个也是最后一个命令(将XX替换为id,将YYY替换为()内的数字,对于我的笔记本电脑来说,XX = 13和YYY = 293)
xinput set-int-prop XX YYY 8 2 3 0 0 1 2 3
值2 3 0 0 1 2 3是以下设置的正确顺序0 =禁用1 =左键单击2 =中间3 =右
Option "RTCornerButton"
Which mouse button is reported on a right top corner tap.
Option "RBCornerButton"
Which mouse button is reported on a right bottom corner tap.
Option "LTCornerButton"
Which mouse button is reported on a left top corner tap.
Option "LBCornerButton"
Which mouse button is reported on a left bottom corner tap.
Option "TapButton1"
Which mouse button is reported on a non-corner one-finger tap.
Option "TapButton2"
Which mouse button is reported on a non-corner two-finger tap.
Option "TapButton3"
Which mouse button is reported on a non-corner three-finger tap.