我最近从 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)]
我曾拼命尝试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
我在 Google 上搜索了几个小时。在早期版本中似乎有一个设置可以禁用打字时的触摸板,但我以前从未启用过这些设置。这个问题在我升级到 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
我发现问题出在libinput Disable While Typing Enabled (297)
属性上。那么,我只需使用 set-prop 进行设置即可?
答案1
而@Pilot6 的回答对 Xorg 来说运行良好,它不会对运行 Wayland 的系统产生任何影响。
如果其他人在 Ubuntu 17.10+ 上遇到此问题,或者在任何版本上运行 Wayland 时遇到此问题,这里有一种方法可以解决它。
具体来说,运行:
gsettings set org.gnome.desktop.peripherals.touchpad disable-while-typing false
将指示 Gnome 告诉 libinput 禁用disable-while-typing
。
我发现这个/u/艾因加卡的在 reddit 上发帖。
如果使用 Ubuntu 16.04 或更早版本,或者使用 Xorg,我建议遵循Pilot6 的回答对这个问题
答案2
升级libinput
安装完成后。您可以通过以下方式禁用此功能。在终端中运行
sudo -H gedit /usr/share/X11/xorg.conf.d/60-libinput.conf
并将其添加到触摸板部分之后Driver "libinput"
Option "DisableWhileTyping" "false"
保存文件并重新启动会话或重新启动。
解决此问题的另一种方法是卸载xserver-xorg-input-libinput
。这将恢复 16.04 中的所有内容xorg-synaptics
。