16.10 升级后按“打字”键时触摸板不工作

c0m*_*nd0 4 mouse touchpad keyboard

我最近从 16.04 升级到 16.10,现在触摸板在按下键盘键时停止响应。这些键不包括alt、super、ctrl、shift、Fn等功能键。

在跑步时xinput list,我得到

? Virtual core pointer                      id=2    [master pointer  (3)]
?   ? Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
?   ? DLLC6B2:00 06CB:75BF Touchpad             id=11   [slave  pointer  (2)]
?   ? SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)]
? Virtual core keyboard                     id=3    [master keyboard (2)]
    ? Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ? Power Button                              id=6    [slave  keyboard (3)]
    ? Video Bus                                 id=7    [slave  keyboard (3)]
    ? Power Button                              id=8    [slave  keyboard (3)]
    ? Sleep Button                              id=9    [slave  keyboard (3)]
    ? Integrated_Webcam_HD                      id=10   [slave  keyboard (3)]
    ? AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]
    ? Dell WMI hotkeys                          id=14   [slave  keyboard (3)]
    ? DELL Wireless hotkeys                     id=15   [slave  keyboard (3)]
Run Code Online (Sandbox Code Playgroud)

我曾SynPS/2 Synaptics TouchPad在绝望的尝试中尝试禁用,但无济于事。的输出gsettings list-recursively | grep touch

org.gnome.settings-daemon.plugins.media-keys.custom-keybindings.touchpad-indicator binding ''
org.gnome.settings-daemon.plugins.media-keys.custom-keybindings.touchpad-indicator command '/usr/bin/python3 /opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/change_touchpad_state.py'
org.gnome.settings-daemon.plugins.media-keys.custom-keybindings.touchpad-indicator name 'Touchpad indicator'
org.gnome.shell.keyboard keyboard-type 'touch'
org.gnome.settings-daemon.peripherals.touchscreen orientation-lock false
org.gnome.desktop.peripherals.touchpad send-events 'enabled'
org.gnome.desktop.peripherals.touchpad natural-scroll true
org.gnome.desktop.peripherals.touchpad tap-to-click true
org.gnome.desktop.peripherals.touchpad left-handed 'mouse'
org.gnome.desktop.peripherals.touchpad click-method 'fingers'
org.gnome.desktop.peripherals.touchpad speed 0.38938053097345127
org.gnome.desktop.peripherals.touchpad scroll-method 'two-finger-scrolling'
org.gnome.desktop.peripherals.touchpad edge-scrolling-enabled true
org.gnome.desktop.peripherals.touchscreen display ['', '', '']
org.gnome.desktop.peripherals.touchpad send-events 'enabled'
org.gnome.desktop.peripherals.touchpad natural-scroll true
org.gnome.desktop.peripherals.touchpad tap-to-click true
org.gnome.desktop.peripherals.touchpad left-handed 'mouse'
org.gnome.desktop.peripherals.touchpad click-method 'fingers'
org.gnome.desktop.peripherals.touchpad speed 0.38938053097345127
org.gnome.desktop.peripherals.touchpad scroll-method 'two-finger-scrolling'
org.gnome.desktop.peripherals.touchpad edge-scrolling-enabled true
com.ubuntu.touch.sound incoming-call-sound '/usr/share/sounds/ubuntu/ringtones/Ubuntu.ogg'
com.ubuntu.touch.sound incoming-message-sound '/usr/share/sounds/ubuntu/notifications/Xylo.ogg'
com.ubuntu.touch.sound silent-mode false
org.gnome.shell.keyboard keyboard-type 'touch'
com.ubuntu.touch.network flight-mode false
com.ubuntu.touch.network gps true
com.ubuntu.touch.system auto-brightness false
com.ubuntu.touch.system brightness 80
com.ubuntu.touch.system orientation-lock 'none'
com.ubuntu.touch.system rotation-lock false
com.ubuntu.touch.system brightness-needs-hardware-default true
com.ubuntu.touch.system activity-timeout uint32 60
com.ubuntu.touch.system fingerprint-names @a{ss} {}
com.ubuntu.touch.system dim-timeout uint32 45
org.gnome.settings-daemon.peripherals.touchscreen orientation-lock false
Run Code Online (Sandbox Code Playgroud)

我用谷歌搜索了几个小时。似乎有一个在早期版本中输入时禁用触摸板的设置,但我过去从未启用过这些设置。当我升级到 16.10 时,这个问题就开始了。问题是它妨碍了我在 Linux 上做的小游戏。请帮忙。

编辑

xinput list-props 13

Device 'SynPS/2 Synaptics TouchPad':
    Device Enabled (139):   0
    Coordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (277): 1
    libinput Tapping Enabled Default (278): 0
    libinput Tapping Drag Enabled (279):    1
    libinput Tapping Drag Enabled Default (280):    1
    libinput Tapping Drag Lock Enabled (281):   0
    libinput Tapping Drag Lock Enabled Default (282):   0
    libinput Accel Speed (283): 0.389381
    libinput Accel Speed Default (284): 0.000000
    libinput Natural Scrolling Enabled (285):   1
    libinput Natural Scrolling Enabled Default (286):   0
    libinput Send Events Modes Available (261): 1, 1
    libinput Send Events Mode Enabled (262):    0, 0
    libinput Send Events Mode Enabled Default (263):    0, 0
    libinput Left Handed Enabled (287): 0
    libinput Left Handed Enabled Default (288): 0
    libinput Scroll Methods Available (289):    1, 1, 0
    libinput Scroll Method Enabled (290):   1, 0, 0
    libinput Scroll Method Enabled Default (291):   1, 0, 0
    libinput Click Methods Available (292): 1, 1
    libinput Click Method Enabled (293):    0, 1
    libinput Click Method Enabled Default (294):    1, 0
    libinput Middle Emulation Enabled (295):    0
    libinput Middle Emulation Enabled Default (296):    0
    libinput Disable While Typing Enabled (297):    1
    libinput Disable While Typing Enabled Default (298):    1
    Device Node (264):  "/dev/input/event5"
    Device Product ID (265):    2, 7
    libinput Drag Lock Buttons (299):   <no items>
    libinput Horizonal Scroll Enabled (266):    1


xinput list-props 11

Device 'DLLC6B2:00 06CB:75BF Touchpad':
    Device Enabled (139):   1
    Coordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (277): 1
    libinput Tapping Enabled Default (278): 0
    libinput Tapping Drag Enabled (279):    1
    libinput Tapping Drag Enabled Default (280):    1
    libinput Tapping Drag Lock Enabled (281):   0
    libinput Tapping Drag Lock Enabled Default (282):   0
    libinput Accel Speed (283): 0.389381
    libinput Accel Speed Default (284): 0.000000
    libinput Natural Scrolling Enabled (285):   1
    libinput Natural Scrolling Enabled Default (286):   0
    libinput Send Events Modes Available (261): 1, 1
    libinput Send Events Mode Enabled (262):    0, 0
    libinput Send Events Mode Enabled Default (263):    0, 0
    libinput Left Handed Enabled (287): 0
    libinput Left Handed Enabled Default (288): 0
    libinput Scroll Methods Available (289):    1, 1, 0
    libinput Scroll Method Enabled (290):   1, 0, 0
    libinput Scroll Method Enabled Default (291):   1, 0, 0
    libinput Click Methods Available (292): 1, 1
    libinput Click Method Enabled (293):    0, 1
    libinput Click Method Enabled Default (294):    1, 0
    libinput Middle Emulation Enabled (295):    0
    libinput Middle Emulation Enabled Default (296):    0
    libinput Disable While Typing Enabled (297):    1
    libinput Disable While Typing Enabled Default (298):    1
    Device Node (264):  "/dev/input/event14"
    Device Product ID (265):    1739, 30143
    libinput Drag Lock Buttons (299):   <no items>
    libinput Horizonal Scroll Enabled (266):    1
Run Code Online (Sandbox Code Playgroud)

我看到问题是libinput Disable While Typing Enabled (297)财产。所以,我只是用 set-prop 设置它?

dab*_*oss 10

虽然 @Pilot6 的答案对于 Xorg 来说效果很好,但它对运行 Wayland 的系统没有任何作用。


如果其他人在 Ubuntu 17.10+ 上或在任何版本上运行 Wayland 时遇到此问题,这里有一种解决方法。

具体来说,运行:

gsettings set org.gnome.desktop.peripherals.touchpad disable-while-typing false
Run Code Online (Sandbox Code Playgroud)

将指示 Gnome 告诉 libinput 禁用disable-while-typing.

我从/u/Eingaica在 reddit 上的帖子中找到了这个。


如果使用 Ubuntu 16.04 或更早版本,或者使用 Xorg,我建议遵循Pilot6对这个问题的回答。


Pil*_*ot6 5

升级libinput安装后。您可以通过这种方式禁用此功能。在终端中运行

sudo -H gedit /usr/share/X11/xorg.conf.d/60-libinput.conf
Run Code Online (Sandbox Code Playgroud)

并在之后添加到触摸板部分 Driver "libinput"

 Option "DisableWhileTyping" "false"
Run Code Online (Sandbox Code Playgroud)

保存文件并重新启动会话或重新启动。

解决此问题的另一种方法是卸载xserver-xorg-input-libinput. 这将使用xorg-synaptics.