如何在键入时禁用触摸板(Ubuntu 18.04)?

我在一年前问过这个问题,随着新的(糟糕的)升级18.04升级,修复程序被删除并重新应用它不起作用。

我有一台笔记本电脑,在打字时,我的手掌触摸触摸板,使鼠标移动,单独关闭标签,删除单词,打开程序和所有其他操作。

我想在打字时禁用它,就像Windows自动执行它一样。

这是上一个问题,接受的答案在16.04对我有用,但不再适用了。 如何在键入时禁用触摸板?

请注意,运行接受的答案中提到的命令会给出:

输入:

sudo apt install xserver-xorg-input-libinput 

输出:

 xserver-xorg-input-libinput is already the newest version (0.27.1-1). The following packages were automatically installed and are no longer required: libgnome-keyring-common libgnome-keyring0 libnih-dbus1 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 

是的,我重新启动了笔记本电脑。

安装Touchpad Indicator GNOME扩展。 完善。

https://extensions.gnome.org/extension/131/touchpad-indicator/

从顶部面板轻松打开和关闭触摸板,跟踪点,指尖,触摸屏或笔设备。 (可选)在插入鼠标时自动禁用部分或全部设备,并在拔下插头时重新启用它们。

假设您的系统使用的是libinput,而不是synaptics,这里是更正。 将以下位置复制到/etc/X11/xorg.conf.d/90-libinput.conf中。 必须注销才能触发重新加载X11。

键入时影响触摸板的更改位于倒数第二行。 在我的情况下,我有一些锅炉板将所有动作传递给libinput驱动程序,这可能不是绝对必要的。 我知道,最后一节是你的神奇子弹。

 # Match on all types of devices but tablet devices and joysticks Section "InputClass" Identifier "libinput pointer catchall" MatchIsPointer "on" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection Section "InputClass" Identifier "libinput keyboard catchall" MatchIsKeyboard "on" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection Section "InputClass" Identifier "libinput touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection Section "InputClass" Identifier "MyTouchpad" MatchIsTouchpad "on" Driver "libinput" Option "Tapping" "on" Option "DisableWhileTyping" "on" EndSection 

安装gnome-tweaks

 sudo apt install gnome-tweaks 

并打开它。

键盘和鼠标选项卡下,您可以在触摸板下的主窗口中找到开关时禁用 键盘

在此处输入图像描述