2017-05-25 93 views
0

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

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,kernel 3.14

回答

0

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