使用 Ubuntu 18.04 在 thinkpad E450 上打字时触摸板没有被禁用

Dur*_*ary 5 mouse touchpad thinkpad 18.04

我的触摸板在打字时没有被禁用,这很烦人,因为它在我打字时随机将我的光标放在其他地方。

有什么方法/插件可以让我在打字时禁用触摸板

笔记本电脑:Lenovo E450 Ubuntu:18.04(适用于之前版本的 Ubuntu)

Mis*_*orp 4

您应该能够使用 来启用/禁用此功能gnome-tweak-tool。如果您需要安装gnome-tweak-tool,可以通过终端进行安装:

$ sudo apt install gnome-tweak-tool 
Run Code Online (Sandbox Code Playgroud)

然后运行tweaks​​,导航到Keyboard & Mouse- 部分。在标题下touchpadDisable While Typing开关切换至on


如果这仍然不适合您,您可以添加一个新文件/usr/share/X11/xorg.conf.d并将其命名90-libinput-quirks.conf为类似于以下内容

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "DisableWhileTyping" "True"
EndSection
Run Code Online (Sandbox Code Playgroud)

libinput.conf文件名本身有些重要,它需要以比Ubuntu 18.04 捆绑的文件更高的数字开头。我的被​​命名,40-libinput.conf所以我命名我的90-libinput-quirks.conf以确保它是在原始配置之后加载的,从而覆盖/附加原始配置。

或者,您可以将其添加到默认文件中的上述Option "DisableWhileTyping" "True"部分。我不确定默认配置文件是否可以被更新之类的东西覆盖,所以我更喜欢第一种方法。Identifier "libinput touchpad catchall"40-libinput.conf