Debian

滑鼠和鍵盤同時使用時不起作用

  • October 23, 2020

我在帶有觸控板的筆記型電腦上執行帶有 Debian 9 Stretch 的 i3 視窗管理器。

我遇到了一個問題,每當我輸入時,滑鼠就會被禁用。這是正常行為還是錯誤?

已啟用非自由儲存庫並已安裝 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已安裝。
  2. 鍵入xinput以查找觸控板設備的名稱。我的是ETPS/2 Elantech Touchpad
  3. 執行xinput --list-props "DEVICE"以列出設備的屬性。
  4. 遍歷列表,直到找到類似Disable While Typing.
  5. 採用
xinput --set-prop "DEVICE" ID_OF_PROPERTY 0

對我來說,這是

xinput --set-prop "ETPS/2 Elantech Touchpad" 294 0

引用自:https://unix.stackexchange.com/questions/385781