

Basic Configuration with a Graphical Interface.However evtest will run in loop until you stop it with Ctrl+C so I find it a little bit easier to use than re-running xinput list id. Type: XIButtonClassīutton labels: "Button Unknown" "Button Unknown" "Button Unknown" "Button Wheel Up" "Button Wheel Down"Ĭlass originated from: 9. Using xinput list id syntax displays you more-or-less same information, including last point which you touched on device as seen xinput list 9ģM 3M USB Touchscreen - EX II id=9 Ĭlass originated from: 9. Let's call this success and remember that current Xorg knows a lot of tricks itself (recognising USB touch devices is one of them).Īs a side note you don't really need to use evtest to get device position. Trying it out on screen proved that it now works as expected.

Strangly it seems that origin is top-right corner, but we shouldn't care much about it beacuse we can specify them using following command (after rounding them a xinput set-prop 14000 2800 13500
XINPUT TEST LINUX CODE
Immidiatly we can see minimum and maximum values for both axes and putting figer on top-left corner of screen produced (a lot of) output like this:Įvent: time 1386078786.506710, - SYN_REPORT -Įvent: time 1386078786.510712, type 3 (EV_ABS), code 0 (ABS_X), value 13919Įvent: time 1386078786.510712, type 3 (EV_ABS), code 1 (ABS_Y), value 2782Īfter a few touches I had coordinates which where something like this: Input device name: "3M 3M USB Touchscreen - EX II"

Input device ID: bus 0x3 vendor 0x596 product 0x1 version 0x410 dev/input/event8: SynPS/2 Synaptics TouchPad dev/input/event7: 3M 3M USB Touchscreen - EX II dev/input/event4: ThinkPad Extra Buttons dev/input/event0: AT Translated Set 2 keyboard No device specified, trying to scan all of /dev/input/event* You will have to run it as root as sudo evtest It's low level utility which enables you to see input events before they are passwd to Xorg server.

Next, I needed to calibrate screen to track my finger moving over surface. If you don't know how many parameters property takes, just put one, try it out and if it returns errors, keep adding parameters until it suceeds. Parameters are device id, property id, X axis swap and Y axis swap. This can be acomplised using following xinput set-prop 9 267 1 0 Examining properties of device in more detail revealed that it has property to swap axes and calibrate them, but what to write into those xinput list-props 9Ĭoordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000ĭevice Accel Constant Deceleration (264): 1.000000ĭevice Accel Adaptive Deceleration (265): 1.000000ĭevice Accel Velocity Scaling (266): 10.000000Īxis Labels (270): "Abs X" (261), "Abs Y" (262)īutton Labels (271): "Button Unknown" (260), "Button Unknown" (260), "Button Unknown" (260), "Button Wheel Up" (145), "Button Wheel Down" (146)Įvdev Third Button Emulation Timeout (275): 1000Įvdev Third Button Emulation Button (276): 3Įvdev Third Button Emulation Threshold (277): 20Įvdev Wheel Emulation Axes (279): 0, 0, 4, 5įirst task was was to flip x axes to make it move left-right instead of right-left. This seems like a good news, but when I tried to use it, it seemed that cursor would move only in middle of screen (with X axis swapped) so I wasn't very happy about it.
XINPUT TEST LINUX DRIVERS
Not giving up that easily I decided to see what xinput reports about it (without any additional drivers xinput list
XINPUT TEST LINUX SERIAL
TouchscreenĪ bit of googling later, I found out that there are two different drivers for microtouch devices, but both of them support serial devices only. We have a couple of 3M MicroTouch M150 touch screens which are VGA monitors (1024*768 resolution) with USB touchscreen interface which is reported lsusb -d 0596:0001īus 002 Device 002: ID 0596:0001 MicroTouch Systems, Inc.
XINPUT TEST LINUX HOW TO
In this post, I will try to explain how to examine your device using evtest and try out settings using xinput without restarting X server or installing any drivers other than built-in evdev. If you have different touch screen you might be out of luck or guess what to do. When you are trying to configure touch screen on Linux machine, internet offers examples nf configuration but without explanation were numbers in it came from.
