我正在带触控板的笔记本电脑上运行带有 Debian 9 Stretch 的 i3 窗口管理器。
我遇到了一个问题,每当我打字时,鼠标就会被禁用。这是正常行为还是错误?
nonfree 存储库已启用,并且 linux-firmware-nonfree 已安装。该错误不会出现在其他发行版上。
USB 鼠标不会出现这种情况
x 输入 输出
Virtual core pointer id=2 [master pointer (3)]
Virtual core XTEST pointer id=4 [slave pointer (2)]
ETPS/2 Elantech Touchpad id=11 [slave pointer (2)]
Virtual core keyboard id=3 [master keyboard (2)]
Virtual core XTEST keyboard id=5 [slave keyboard (3)]
Video Bus id=7 [slave keyboard (3)]
Power Button id=8 [slave keyboard (3)]
HP TrueVision HD id=9 [slave keyboard (3)]
AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
HP Wireless hotkeys id=12 [slave keyboard (3)]
HP WMI hotkeys id=13 [slave keyboard (3)]
Power Button id=6 [slave keyboard (3)]
触摸板属性
Device 'ETPS/2 Elantech Touchpad':
Device Enabled (142): 1
Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (277): 0
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 Tapping Button Mapping Enabled (283): 1, 0
libinput Tapping Button Mapping Default (284): 1, 0
libinput Accel Speed (285): 0.000000
libinput Accel Speed Default (286): 0.000000
libinput Natural Scrolling Enabled (287): 0
libinput Natural Scrolling Enabled Default (288): 0
libinput Send Events Modes Available (262): 1, 1
libinput Send Events Mode Enabled (263): 0, 0
libinput Send Events Mode Enabled Default (264): 0, 0
libinput Left Handed Enabled (289): 0
libinput Left Handed Enabled Default (290): 0
libinput Scroll Methods Available (291): 1, 1, 0
libinput Scroll Method Enabled (292): 1, 0, 0
libinput Scroll Method Enabled Default (293): 1, 0, 0
libinput Disable While Typing Enabled (294): 1
libinput Disable While Typing Enabled Default (295): 1
Device Node (265): "/dev/input/event1"
Device Product ID (266): 2, 14
libinput Drag Lock Buttons (296): <no items>
libinput Horizontal Scroll Enabled (297): 1
答案1
我遇到的问题是键入时禁用 启用我的触控板的功能。这些是我用来解决它的步骤。
确保
xinput
已安装。键入
xinput
以查找触控板设备的名称。我的是ETPS/2 Elantech Touchpad
。运行
xinput --list-props "DEVICE"
以列出设备的属性。浏览列表,直到找到类似的内容
Disable While Typing
。使用
xinput --set-prop "DEVICE" ID_OF_PROPERTY 0
对我来说,这是
xinput --set-prop "ETPS/2 Elantech Touchpad" 294 0
答案2
对我来说,在 Debian 11 上使用 XFCE 时,只有以下方法有效:
- 编辑
/usr/share/X11/xorg.conf.d/40-libinput.conf
Option "SendEventsMode" "disabled-on-external-mouse"
在带有标识符的inputclass下注释掉libinput touchpad catchall
我的最终看起来像这样:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "Tapping" "True"
Option "TappingDrag" "True"
Option "DisableWhileTyping" "True"
Option "AccelProfile" "adaptive"
Option "AccelSpeed" "0.4"
#Option "SendEventsMode" "disabled-on-external-mouse"
Driver "libinput"
EndSection
注意:我还必须重新启动 X11 才能生效。