如何关闭 Wayland 内的轨迹点?

Eir*_*rik 2 mouse wayland xinput trackpoint libinput

我的笔记本电脑有一个不稳定的轨迹点,它会不断移动鼠标。

使用 xorg 时,我可以使用此命令将其关闭: xinput -set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Enabled" 0

好像 xinput 不是 wayland 上的东西?快速搜索给了我 libinput,但是 libinput 使我无法关闭轨迹点(据我所知)

那么如何关闭 Wayland 中的轨迹点呢?或者除了 xinput/libinput 之外还有其他方法吗?

系统信息:

东芝 Portege Z30A

Ubuntu 19.10 GNOME

*更新:

我找到了这个讨论:https://gist.github.com/fghaas/3406be59095de212182f1803a503a64b#file-75-input-rules

这似乎完全符合我的需要,但我不明白如何执行它。我可以得到一些帮助来理解它吗?我该把什么东西放在哪里?

小智 5

这今天对我有用:

sudo gedit /etc/udev/rules.d/99-myfavoritetrackpoint.rules
Run Code Online (Sandbox Code Playgroud)

在该文件中:

# ALPS DualPoint Stick: Ignore as input device
ATTRS{name}=="*DualPoint Stick", ENV{ID_INPUT}="", ENV{ID_INPUT_MOUSE}="", ENV{ID_INPUT_POINTINGSTICK}=""
Run Code Online (Sandbox Code Playgroud)

如果这不是您的设备名称,您可能会执行以下操作并在上述命令中查找要替换的设备名称:

sudo apt-get install libinput-tools
sudo libinput list-devices
Run Code Online (Sandbox Code Playgroud)