触摸板在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,就好像触摸板已经改变了对使用哪个驱动程序的想法。 例如,拖动锁定function列为:

 Synaptics Locked Drags (287): 0 

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

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

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

我不确定是什么导致了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