接入设备后的变化。
结果是安装 xinput-calibrator utouch(不确定需要)直接就可以了。/dev/input/ 目录,插入设备后,增加了 event13 mouse2
xinput -list 增加了
⎜ ↳ eGalax Inc. USB TouchController id=15 [slave pointer (2)]
lsusb 增加了
Bus 003 Device 008: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
/proc/bus/input/devices 增加
I: Bus=0003 Vendor=0eef Product=0001 Version=0100
N: Name="eGalax Inc. USB TouchController"
P: Phys=usb-0000:00:14.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/input/input20
U: Uniq=
H: Handlers=mouse2 event13
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0
B: ABS=3
代码: 全选
● xinput_calibrator
Calibrating EVDEV driver for "eGalax Inc. USB TouchController" id=15
current calibration values (from XInput): min_x=0, max_x=2047 and min_y=0, max_y=2047
Doing dynamic recalibration:
Setting new calibration data: -3, 2047, -1, 2039
--> Making the calibration permanent <--
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
Section "InputClass"
Identifier "calibration"
MatchProduct "eGalax Inc. USB TouchController"
Option "Calibration" "-3 2047 -1 2039"
EndSection
代码: 全选
● xinput list-props "eGalax Inc. USB TouchController"
Device 'eGalax Inc. USB TouchController':
Device Enabled (132): 1
Coordinate Transformation Matrix (134): 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 (251): 3823, 1
Device Node (252): "/dev/input/event13"
Evdev Axis Inversion (267): 0, 0
Evdev Axis Calibration (268): 82, 1901, 107, 1815
Evdev Axes Swap (269): 0
Axis Labels (270): "Abs X" (370), "Abs Y" (371)
Button Labels (271): "Button Unknown" (254), "Button Unknown" (254), "Button Unknown" (254), "Button Wheel Up" (138), "Button Wheel Down" (139)
Evdev Middle Button Emulation (272): 0
Evdev Middle Button Timeout (273): 50
Evdev Third Button Emulation (274): 0
Evdev Third Button Emulation Timeout (275): 1000
Evdev Third Button Emulation Button (276): 3
Evdev Third Button Emulation Threshold (277): 20
Evdev Wheel Emulation (278): 0
Evdev Wheel Emulation Axes (279): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (280): 10
Evdev Wheel Emulation Timeout (281): 200
Evdev Wheel Emulation Button (282): 4
Evdev Drag Lock Buttons (283): 0