Ubuntu

不能同時使用觸控板和鍵盤

  • September 20, 2021

我的觸控板工作正常,但是當我按下鍵盤上的按鈕時,滑鼠凍結,我不能再使用我的觸控板了。當我鬆開按鍵時,觸控板再次工作。對於某些我想在移動滑鼠時繼續使用鍵盤的軟體來說,這是一個問題

我在 DELL 筆記型電腦上使用 Ubuntu 20.04

xinput list-props觸摸板 id 的輸出

Device 'DELL07E6:00 06CB:76AF Touchpad':
   Device Enabled (172):   1
   Coordinate Transformation Matrix (174): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
   libinput Tapping Enabled (327): 1
   libinput Tapping Enabled Default (328): 0
   libinput Tapping Drag Enabled (329):    1
   libinput Tapping Drag Enabled Default (330):    1
   libinput Tapping Drag Lock Enabled (331):   0
   libinput Tapping Drag Lock Enabled Default (332):   0
   libinput Tapping Button Mapping Enabled (333):  1, 0
   libinput Tapping Button Mapping Default (334):  1, 0
   libinput Natural Scrolling Enabled (311):   1
   libinput Natural Scrolling Enabled Default (312):   0
   libinput Disable While Typing Enabled (335):    1
   libinput Disable While Typing Enabled Default (336):    1
   libinput Scroll Methods Available (313):    1, 1, 0
   libinput Scroll Method Enabled (314):   1, 0, 0
   libinput Scroll Method Enabled Default (315):   1, 0, 0
   libinput Click Methods Available (337): 1, 1
   libinput Click Method Enabled (338):    1, 0
   libinput Click Method Enabled Default (339):    1, 0
   libinput Middle Emulation Enabled (340):    0
   libinput Middle Emulation Enabled Default (341):    0
   libinput Accel Speed (318): 0.000000
   libinput Accel Speed Default (319): 0.000000
   libinput Left Handed Enabled (323): 0
   libinput Left Handed Enabled Default (324): 0
   libinput Send Events Modes Available (292): 1, 1
   libinput Send Events Mode Enabled (293):    0, 0
   libinput Send Events Mode Enabled Default (294):    0, 0
   Device Node (295):  "/dev/input/event10"
   Device Product ID (296):    1739, 30383
   libinput Drag Lock Buttons (325):   <no items>
   libinput Horizontal Scroll Enabled (326):   1

執行xinput並記下觸摸板或觸控板 ID。

  • 執行
xinput set-prop <id> 'libinput Disable While Typing Enabled' 0
  • 或者,像您所做的那樣,使用 列出其屬性xinput list-props <id>,記下“啟用鍵入時禁用”行的屬性編號(在您的情況下為 335)並執行
xinput set-prop <id> <property> 0

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