0

亲爱的专家 我在 x-server 上校准 Penmount 触摸屏时遇到问题。我通过 tslib 连接。在 X 中,我有一个已编译的 xf86-input-tslib 库。不幸的是,ts_calibrate 不适用于“非法指令级别触摸工作良好,它的响应很好,但有时,点击发生在屏幕上的错误位置,有时会出现偏差。我尝试使用 xinput-calibrator 校准屏幕,但是xinput -list 中没有触摸屏:

xinput-calibrator
No calibratable devices found

mc ~ # DISPLAY=:0 xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Mouse1 id=6 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Keyboard1 id=7 [slave keyboard (3)]

虽然在内核中:

mc ~ # dmesg | grep PenMount<br/>
input: PenMount Serial TouchScreen as 
/devices/pci0000:00/0000:00:01.0/0000:01:02.2/tty/ttyS0/serio0/input/input3

mc ~ # cat /proc/bus/input/devices

I: Bus=0013 Vendor=0031 Product=9000 Version=01f2
N: Name=«PenMount Serial TouchScreen»
P: Phys=ttyS0/serio0/input0
S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:02.2/tty/ttyS0/serio0/input/input3
U: Uniq=
H: Handlers=mouse0 event3
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0
B: ABS=3

在 Xorg.0.log 我发现了这个:

[1051910.230] (II) config/udev: Adding input device PenMount Serial >TouchScreen(/dev/input/event3)
[1051910.230] (II) AutoAddDevices is off - not adding device.
[1051910.232] (II) config/udev: Adding input device PenMount Serial TouchScreen (/dev/input/mouse0)
[1051910.232] (II) AutoAddDevices is off - not adding device.
[1051910.237] (II) config/udev: Adding input device ltc2954 (/dev/input/event2)
[1051910.237] (II) AutoAddDevices is off - not adding device.

我可以为触摸做些什么将出现在 xinput --list 中?
Debain,内核 3.14

4

1 回答 1

0

你用的是什么版本的 xf86-input-tslib 和 tslib?使用 xf86-input-tslib 1.1.1 和 tslib 1.13 应该可以工作。如果您想在运行图形桌面时运行 ts_calibrate,请考虑自己构建 tslib,使用./configure --with-sdl2

于 2017-10-20T12:04:47.487 回答