触摸板在 libinput 和 synaptics 之间切换

触摸板在 libinput 和 synaptics 之间切换

我正在考虑开启拖锁所以我可以短暂地抬起手指并重新定位以继续点击和拖动。

# get touchpad device id (12 in my case)
xinput --list
# get touchpad props
xinput list-props 12
# set libinput "Tapping Drag Lock Enabled"
xinput set-prop 12 280 1

这招管用,不过我觉得我需要找到一种方法来自动化,因为我猜想下次重启机器时设置会丢失。为了验证这个假设,我关机并重启。

重启后,xinput list-props 12显示的是 Synaptics 属性,而不是 libinput,好像触摸板改变了使用哪个驱动程序的想法。例如,拖拽锁定功能列为:

Synaptics Locked Drags (287):   0

此外,尝试将触摸板切换为“自然滚动”也没有任何效果。澄清我刚刚意识到 GUI 甚至没有显示用于设置触摸板“自然滚动”的界面,而仅用于设置鼠标。

我如何确定正在使用哪个驱动程序,以及什么可能会改变它?

作为参考,我在 Ubuntu 17.04 上运行 Gnome3

答案1

我不确定是什么导致了 gnome 的驱动程序选择的改变,但我能够通过删除 synaptics 及其配置文件来解决问题(确保 libinput 仍然安装后)。

# ensure libiniput drivers are installed
dpkg --status libinput-bin libinput10 xserver-xorg-input-libinput \
  | grep --before-context=1 '^Status: '

# remove synaptics drivers & config files so gnome doesn't get confused
sudo apt-get purge xserver-xorg-input-synaptics

相关内容