T431s 上的 Evdev 车轮仿真

abi*_*ird 5 xorg mouse

我有一个 Thinkpad T431s,带有轨迹点(键盘中间的红色棒)和触控板(一个也用作按钮的触摸板)。这是第一个不为轨迹点提供任何专用按钮的模型。我只想使用跟踪点。到目前为止,我能够配置触控板,使其充当轨迹点的按钮,同时通过以下方式禁用运动:

# Devide the clickpad into 3 areas for left/middle/right click
xinput set-prop 10 "Synaptics Soft Button Areas" 3477, 5112, 0, 0, 2659, 3476, 0, 0

# Disable mouse movements
xinput set-prop 10 "Device Accel Constant Deceleration" 9999999

# Disable tap events
xinput set-prop 10 "Synaptics Tap Action" 0, 0, 0, 0, 0, 0, 0
Run Code Online (Sandbox Code Playgroud)

其中 10 是触控板的 ID。

但是,我无法弄清楚如何配置轨迹点以使用中间按钮进行滚动模拟。问题似乎是 trackpoint 设备没有任何真正的按钮。因此,以下不起作用:

xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
Run Code Online (Sandbox Code Playgroud)

有什么方法可以将轨迹点配置为使用另一个设备(触控板)的中间按钮进行滚动仿真?还有其他建议吗?

Bar*_*lot 1

对于某些 Linux 发行版,已经有 evdev 驱动程序的修补版本,支持在按下配置为触控板“中心按钮”的区域时使用 TrackPoint 进行滚动。

在 Arch 上,这是 AUR 包: https://aur.archlinux.org/packages/xf86-input-evdev-trackpoint/ 我已经在 T440 上尝试过它,并且开箱即用。

如果您使用不同的发行版,您可以搜索已修补的 evdev 驱动程序,尝试对其进行修补并使用 AUR 站点上的 tar.gz 文件中提供的 diff 自行编译它(ATM 从 freedesktop 修补了 vanilla 2.8.2 evdev 驱动程序。 org),或者切换到 Arch 并直接使用 AUR 包;)