触摸屏幕 TouchScreen 校准

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

触摸屏幕 TouchScreen 校准

#1

帖子 eexpress » 2013-01-21 16:34

买了一个usb接口的触摸屏幕。看各种误导,搞半天tslib/ts_calibrate/xinput各种参数。nnnnd

接入设备后的变化。
/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 utouch(不确定需要)直接就可以了。

代码: 全选

● 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可以按照行修改参数

代码: 全选

● 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
● 鸣学
头像
alien_hjy
帖子: 1066
注册时间: 2010-11-29 13:39
系统: ubuntu 14.04

Re: 触摸屏幕 TouchScreen 校准

#2

帖子 alien_hjy » 2013-01-22 8:47

电阻屏?
系统识别为鼠标还是触摸屏?支持不支持滑动手势?
貌似现在的桌面环境对触屏优化不好。那举例,win8里能支持手势吗?

Sent from my JY-G3 using Tapatalk 2
《笨兔兔的故事》linux新手必读
帮我加一下ubuntu one的空间,不胜感激。。。
突然发现我的本本弱爆了:
OS:ubuntu 14.04&win8.1
购机年份:2012
CPU:AMD APU A6-3400M
独立显卡:无
内存:南亚易胜 2*4GB DDR3
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 触摸屏幕 TouchScreen 校准

#3

帖子 eexpress » 2013-01-22 9:17

当然是电阻。电容的,可都是定制尺寸,不能随便就买到的。
看上面信息吧,mouse2和event13嘛。
● 鸣学
chenaichenluo
帖子: 1
注册时间: 2014-07-25 10:30
系统: ubuntu

Re: 触摸屏幕 TouchScreen 校准

#4

帖子 chenaichenluo » 2014-07-31 9:49

你用的ubuntu的版本是多少的? 10.04吗??
55157894
帖子: 3
注册时间: 2015-01-18 19:51
系统: ubuntu12.4

Re: 触摸屏幕 TouchScreen 校准

#5

帖子 55157894 » 2015-01-18 20:24

各位大大,
我刚学用ubuntu,现用12.4的系统,接USB接口的电阻触摸屏,系统安装后,可以正常识别,但每次较正后,重新启动系统后又得重新校准。

代码:
● 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
以上是得到的较正结果,根据提示和路径,我新建立了99-calibraton.conf,并将配置信息复制去,保存,重启系统,依然无效。 另将,配置信息保存到usr/share/x11/xorg.conf.d/10.evdev.conf之中,结果还是一样。


特些,来请教各位有使用过触摸屏的朋友,我接下来应该如何下手?谢谢
回复