我有Thinkpad T440,它没有随触摸板上的三个按钮一起提供。
我曾经使用Trackpoint并点击了这三个按钮。在这种T440情况下,我想禁用触摸板的“移动|点击以单击|两指或三指”功能,而仅将其配置为像可点击的大按钮一样,并使用中间的按钮。
谁能告诉我如何在/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
提前致谢。
$ xinput list⎡虚拟核心指针id = 2 [主指针(3)] ↳虚拟核心XTEST指针id = 4 [从属指针(2)] ↳Logitech USB接收器id = 10 [从属指针(2)] ↳ Logitech USB接收器id = 11 [从属指针(2)] -TPPS / 2 IBM TrackPoint id = 14 [从属指针(2)] -SynPS / 2 Synaptics TouchPad id = 13 [从属指针(2)]- 虚拟核心键盘ID = 3 [主键盘(2)] ↳虚拟核心XTEST键盘ID = 5 [从键盘(3)] ↳电源按钮id = 6 [从键盘(3)] ↳视频总线ID = 7 [从键盘(3)] ↳睡眠按钮id = 8 [从属键盘(3)] Camera集成摄像机id = 9 [从属键盘(3)] ↳AT翻译套件2键盘id = 12 [从属键盘(3)] ↳ThinkPad Extra 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
其中$id
设备ID,$propId
括号中的属性ID以及$value
您想要的是。例如:
xinput set-prop 13 135 0
设置Device Enabled (135)
为0
,这将禁用触摸板。
您将需要属性的描述以及使更改永久化的方法。可以在中找到描述man synaptics
,但是等等,它们是另一种神秘的格式!让我们看看为什么。
要使更改永久生效,您需要在中创建conf文件/etc/X11/xorg.conf.d
,例如,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上的跟踪点配置为仅启用两个手指滚动,而没有单击或鼠标移动。我失败了。也许您会设法做自己想做的事情(可以选择禁用除点击之外的所有功能Synaptics Off
)。
资料来源,更多示例和独角兽:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句