如何配置Trackpoint + Synaptics触摸板只能启用Linux上的点击(Ubuntu)

我有Thinkpad T440,它不带有触摸板上的三个按钮。

我过去常常使用trackpoint点击这三个按钮。 虽然在这个T440的情况下,我想禁用触摸板“MOVE | tap-to-click |两指或三指”function,并且只能将其配置为一个大的可点击按钮,中间的按钮。

谁能告诉我如何在/usr/share/X11/xorg.conf.d/中编写它

我有这些文件:

 10-evdev.conf 11-evdev-trackpoint.conf 50-wacom.conf
 10-quirks.conf 50-synaptics.conf 51-synaptics-quirks.conf
 11-evdev-quirks.conf 50-vmmouse.conf       

提前致谢。

 $ xinputlist⎡虚拟核心指针id = 2 [主指针(3)]⎜⎜虚拟核心XTEST指针id = 4 [从指针(2)]⎜⎜罗技USB接收器id = 10 [从指针(2)]⎜⎜ Logitech USB接收器id = 11 [从指针(2)]⎜⎜TPPS/ 2 IBM TrackPoint id = 14 [从指针(2)]⎜⎜SynPS/ 2 Synaptics TouchPad id = 13 [从指针(2)]⎣虚拟内核keyboard id = 3 [master keyboard(2)]↳虚拟核心XTEST键盘id = 5 [从属键盘(3)]↳电源按钮id = 6 [从属键盘(3)]↳video总线id = 7 [从属键盘(3) )]↳睡眠按钮id = 8 [从属键盘(3)]↳集成摄像机ID = 9 [从属键盘(3)]↳AT翻译设置2键盘ID = 12 [从属键盘(3)]↳ThinkPadExtra Buttons id = 15 [从键盘(3)] 

嗯,这不是直接的答案,而是一个建议和例子。 如果您运行xinput ,您将获得设备列表。 然后运行xinput list-props $id ,其中$id是列表中的触摸板ID。

你将有一个这样的选项列表:

 $ xinput list-props 13 Device 'SynPS/2 Synaptics TouchPad': Device Enabled (135): 1 Coordinate Transformation Matrix (137): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (268): 1 Device Accel Constant Deceleration (269): 2.500000 Device Accel Adaptive Deceleration (270): 1.000000 Device Accel Velocity Scaling (271): 12.500000 Synaptics Edges (292): 1765, 5371, 1637, 4453 Synaptics Finger (293): 25, 30, 0 Synaptics Tap Time (294): 180 Synaptics Tap Move (295): 234 Synaptics Tap Durations (296): 180, 180, 100 Synaptics ClickPad (297): 1 [...] 

您可以使用xinput set-prop $id $propId $value更改所有这些xinput set-prop $id $propId $value ,其中$id是设备ID, $propId是括号中的属性ID, $value是您想要的$value 。 例如:

xinput set-prop 13 135 0 Device Enabled (135)0 ,这将禁用触摸板。

您将需要属性描述以及永久更改的方法。 描述可以在man synaptics找到,但是等等,它们是另一种神秘的forms! 让我们看看为什么。

要永久更改,您需要在/etc/X11/xorg.conf.d创建conf文件,例如30-tochpad.conf ,其内容如下:

  Section "InputClass" # you can read more in `man xorg` Identifier "all touchpads" # just a name for this config MatchIsTouchpad "on" # enables this config for all detected touchpads Driver "synaptics" # enables synaptics-specific options below # This will disable the device #Option "Ignore" "1" # There are options that are generic for input-devices or mouse-like devices, see `man evdev`: Option "ButtonMapping" "0 0 0 0 0 0 0" # i disabled all buttons here, for example # Here go options from `man synaptics` Option "VertTwoFingerScroll" "1" Option "HorizTwoFingerScroll" "1" Option "PalmDetect" "1" Option "ClickPad" "0" # ...etc... EndSection 

因此, man synaptics描述了xorg.conf选项,并告诉它们如何与xinput list-props输出相对应。

PS。 我尝试在ThinkPad X220上配置trackpoint,只启用双指滚动,无需点击或鼠标移动。 我失败了。 也许你会设法做你想做的事情(有一个选项可以禁用除点击之外的所有内容,也许是Synaptics Off )。

来源,更多例子和独角兽:

https://wiki.ubuntu.com/X/Config/Input

https://wiki.archlinux.org/index.php/Touchpad_Synaptics