我xinput list-props "ETPS/2 Elantech Touchpad"
的输出是
Device 'ETPS/2 Elantech 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 (276): 0
libinput Tapping Enabled Default (277): 0
libinput Tapping Drag Enabled (278): 1
libinput Tapping Drag Enabled Default (279): 1
libinput Tapping Drag Lock Enabled (280): 0
libinput Tapping Drag Lock Enabled Default (281): 0
libinput Tapping Button Mapping Enabled (282): 1, 0
libinput Tapping Button Mapping Default (283): 1, 0
libinput Accel Speed (284): 0.000000
libinput Accel Speed Default (285): 0.000000
libinput Natural Scrolling Enabled (286): 0
libinput Natural Scrolling Enabled Default (287): 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 (288): 0
libinput Left Handed Enabled Default (289): 0
libinput Scroll Methods Available (290): 1, 1, 0
libinput Scroll Method Enabled (291): 1, 0, 0
libinput Scroll Method Enabled Default (292): 1, 0, 0
libinput Disable While Typing Enabled (293): 1
libinput Disable While Typing Enabled Default (294): 1
Device Node (264): "/dev/input/event5"
Device Product ID (265): 2, 14
libinput Drag Lock Buttons (295): <no items>
libinput Horizontal Scroll Enabled (296): 1
那么libinput Tapping Enabled
和之间有什么区别libinput Tapping Enabled Default
?在这种情况下默认是什么意思?我用它来设置我的 i3 触摸板。
答案1
xf86-input-libinput 使用这些只读属性来报告默认值libinput 将用于此特定设备,因此允许 UI 和控制面板正确重置参数,而不必在所有系统和设备上假设单一默认值(或重复 libinput 的逻辑)。