![对于 xinput 的 libinput 属性,名称中带有 default 的和不带有 default 的有什么区别?](https://linux22.com/image/1535429/%E5%AF%B9%E4%BA%8E%20xinput%20%E7%9A%84%20libinput%20%E5%B1%9E%E6%80%A7%EF%BC%8C%E5%90%8D%E7%A7%B0%E4%B8%AD%E5%B8%A6%E6%9C%89%20default%20%E7%9A%84%E5%92%8C%E4%B8%8D%E5%B8%A6%E6%9C%89%20default%20%E7%9A%84%E6%9C%89%E4%BB%80%E4%B9%88%E5%8C%BA%E5%88%AB%EF%BC%9F.png)
我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 的逻辑)。