我如何才能仅禁用 TK820 的触摸板(多手势触摸板和键盘组合)?我只能禁用整个输入设备。任何帮助或指导都将不胜感激。否则它对我来说毫无用处,因为我打算将普通鼠标放在触摸板的位置。(这对我来说效果很好)
编辑1:
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® 2.4GHz Transceiver v7.0 id=11 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=15 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® 2.4GHz Transceiver v7.0 id=12 [slave pointer (2)]
⎜ ↳ Logitech Unifying Device. Wireless PID:4102 id=17 [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)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Integrated Camera id=9 [slave keyboard (3)]
↳ Microsoft Microsoft® 2.4GHz Transceiver v7.0 id=10 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=16 [slave keyboard (3)]
编辑2:
使用 evtest 我看到,从 evtest 读取的触摸板输入类型始终是类型 2。也许有办法忽略这种类型的输入?
编辑3:
$ xinput list-props 17
Device 'Logitech Unifying Device. Wireless PID:4102':
Device Enabled (140): 1
Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (271): 0
Device Accel Constant Deceleration (272): 1.000000
Device Accel Adaptive Deceleration (273): 1.000000
Device Accel Velocity Scaling (274): 10.000000
Device Product ID (260): 1133, 50475
Device Node (261): "/dev/input/event16"
Evdev Axis Inversion (275): 0, 0
Evdev Axes Swap (277): 0
Axis Labels (278): "Rel X" (150), "Rel Y" (151), "Rel Horiz Wheel" (267), "Rel Dial" (268), "Rel Vert Wheel" (269)
Button Labels (279): "Button Left" (143), "Button Middle" (144), "Button Right" (145), "Button Wheel Up" (146), "Button Wheel Down" (147), "Button Horiz Wheel Left" (148), "Button Horiz Wheel Right" (149), "Button Side" (265), "Button Extra" (266), "Button Forward" (575), "Button Back" (576), "Button Task" (577), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263), "Button Unknown" (263)
Evdev Middle Button Emulation (280): 0
Evdev Middle Button Timeout (281): 50
Evdev Third Button Emulation (282): 0
Evdev Third Button Emulation Timeout (283): 1000
Evdev Third Button Emulation Button (284): 3
Evdev Third Button Emulation Threshold (285): 20
Evdev Wheel Emulation (286): 0
Evdev Wheel Emulation Axes (287): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (288): 10
Evdev Wheel Emulation Timeout (289): 200
Evdev Wheel Emulation Button (290): 4
Evdev Drag Lock Buttons (291): 0
答案1
如果你想禁用“TPPS/2 IBM TrackPoint”,只需在终端中运行
xinput disable 15
为了使其永久生效,您可以将此命令作为“自动启动的应用程序”运行。
还有一些其他方法可以在会话启动时自动运行此命令,但恕我直言,这是最简单的方法。
答案2
为解决这个问题,我做了以下操作来禁用触摸板的按钮/点击。不是光标移动,只是点击。
xinput set-button-map 9 "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
其中9
,设备的 ID 是使用 找到的xinput list
,按钮的数量是使用 找到的xinput list 9
。再次启用按钮:
xinput set-button-map 9 "1 2 3 4 5 ... 22 23 23"