有些条目xinput
很奇怪
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SYNA7501:00 06CB:12B8 Pen id=11 [slave pointer (2)]
⎜ ↳ SYNA7501:00 06CB:12B8 id=12 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=16 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ HP Truevision HD id=10 [slave keyboard (3)]
↳ Intel Virtual Button driver id=13 [slave keyboard (3)]
↳ Intel Virtual Button driver id=14 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)]
↳ HP WMI hotkeys id=17 [slave keyboard (3)]
↳ HP Wireless hotkeys id=18 [slave keyboard (3)]
Virtual core XTEST pointer
诸如此类的事情SYNA7501:00 06CB:12B8
在哪里可以找到这些条目的文档?例如哪一个是触摸屏?
...我尝试了该参数list-props
,但没有什么帮助。事实上,它输出的内容也是我想要查找文档的内容。
例如; xinput list-props 11
:
Device 'SYNA7501:00 06CB:12B8 Pen':
Device Enabled (137): 1
Coordinate Transformation Matrix (139): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (263): 0
Device Accel Constant Deceleration (264): 1.000000
Device Accel Adaptive Deceleration (265): 1.000000
Device Accel Velocity Scaling (266): 10.000000
Device Product ID (255): 1739, 4792
Device Node (256): "/dev/input/event12"
Evdev Axis Inversion (267): 0, 0
Evdev Axis Calibration (268): <no items>
Evdev Axes Swap (269): 0
Axis Labels (270): "Abs X" (260), "Abs Y" (261), "Abs Pressure" (262)
Button Labels (271): "Button 0" (259), "Button Unknown" (258), "Button Unknown" (258), "Button Wheel Up" (143), "Button Wheel Down" (144)
Evdev Scrolling Distance (272): 0, 0, 0
Evdev Middle Button Emulation (273): 0
Evdev Middle Button Timeout (274): 50
Evdev Third Button Emulation (275): 0
Evdev Third Button Emulation Timeout (276): 1000
Evdev Third Button Emulation Button (277): 3
Evdev Third Button Emulation Threshold (278): 20
Evdev Wheel Emulation (279): 0
Evdev Wheel Emulation Axes (280): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (281): 10
Evdev Wheel Emulation Timeout (282): 200
Evdev Wheel Emulation Button (283): 4
Evdev Drag Lock Buttons (284): 0
我希望能够控制这些参数。
这些输出的型号是“HP ENVY x360 - 15-w107ne”
答案1
SYNA7501:00 06CB:12B8 与 Pen 层一起是您的触摸屏。
从https://www.x.org/wiki/XOrgInputDriverSpec/#index3h2:
虚拟核心设备始终可用,但不会产生独立事件。所有事件都来自扩展设备。这非常适合支持多个核心设备和设备热插拔的服务器。随着最近 MPX 的集成,可能存在多个虚拟核心设备。它们也称为主设备。
本质上,虚拟核心指针/键盘可以由软件和硬件委托执行某些任务,例如捕获鼠标或启用多个鼠标光标。
至于更改参数,请使用以下命令:
xinput set-prop <device-id> <param-id> <values>
请注意,值取决于参数。例如,翻转 X 轴/Y 轴需要两个值 -0 0
不反转,0 1
Y 轴反转 - 第一个值用于 X 轴,第二个值用于 Y 轴。
编辑,文档:
Evdev 手册页:ftp://www.x.org/pub/X11R7.5/doc/man/man4/evdev.4.html