Il 22/05/2015 04:03, Peter Hutterer ha scritto:
On Thu, May 21, 2015 at 04:37:13PM +0200, Marco Cavallini wrote:
Hello,
I am working on an ARM board
I can see touchscreen events from /dev/input/touchscreen0

I have some problems to understand the different touchscreen results between
ts_* and evdev
For example ts_calibrate works, but xinput_calibrator not because the second
touch have the same XY

I noticed that using evdev I always have fixed XY values, for example
calling "xinput test"

Am I misconfiguring anything?

I take it touchscreen0 is a symlink to some eventX device, so they speak the
same protocol?

what does evtest or evemu-record say about the output?

Cheers,
    Peter




Hi Peter,
thank you for answering.

The evtest returns values between ~4600 to ~7800
I touched min XY and max XY points.
xinput test returns always 4095.
Wat am I missing?

Thank you


# ls -al /dev/input/
drwxr-xr-x    3 root     root           140 Jan  1  1970 .
drwxr-xr-x   11 root     root          2960 May 20 15:09 ..
drwxr-xr-x    2 root     root            60 Jan  1  1970 by-path
crw-r-----    1 root     root       13,  64 Jan  1  1970 event0
crw-r-----    1 root     root       13,  63 Jan  1  1970 mice
crw-r-----    1 root     root       13,  32 Jan  1  1970 mouse0
lrwxrwxrwx 1 root root 6 Jan 1 1970 touchscreen0 -> event0


# evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "ADS7843 Touchscreen"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value      0
      Min        0
      Max     4095
    Event code 1 (ABS_Y)
      Value      0
      Min        0
      Max     4095
    Event code 24 (ABS_PRESSURE)
      Value      0
      Min        0
      Max        0
Properties:
Testing ... (interrupt to exit)
Event: time 1432134717.482451, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1432134717.482451, type 3 (EV_ABS), code 0 (ABS_X), value 4637
Event: time 1432134717.482451, type 3 (EV_ABS), code 1 (ABS_Y), value 4299
Event: time 1432134717.482451, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 32768
Event: time 1432134717.482451, -------------- EV_SYN ------------
Event: time 1432134717.491145, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1432134717.491145, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 1432134717.491145, -------------- EV_SYN ------------
Event: time 1432134719.652423, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1432134719.652423, type 3 (EV_ABS), code 0 (ABS_X), value 7823
Event: time 1432134719.652423, type 3 (EV_ABS), code 1 (ABS_Y), value 7987
Event: time 1432134719.652423, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 32768
Event: time 1432134719.652423, -------------- EV_SYN ------------
Event: time 1432134719.663012, type 3 (EV_ABS), code 0 (ABS_X), value 7820
Event: time 1432134719.663012, -------------- EV_SYN ------------
Event: time 1432134719.672662, type 3 (EV_ABS), code 0 (ABS_X), value 7813
Event: time 1432134719.672662, type 3 (EV_ABS), code 1 (ABS_Y), value 7985
Event: time 1432134719.672662, -------------- EV_SYN ------------
Event: time 1432134719.682753, type 3 (EV_ABS), code 0 (ABS_X), value 7805
Event: time 1432134719.682753, type 3 (EV_ABS), code 1 (ABS_Y), value 7961
Event: time 1432134719.682753, -------------- EV_SYN ------------
Event: time 1432134719.691162, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1432134719.691162, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0


# xinput test 6
motion a[0]=4095 a[1]=4095 a[2]=32768
button press   1
motion a[0]=4095 a[1]=4095
motion a[0]=4095 a[1]=4095
motion a[0]=4095 a[1]=4095
motion a[0]=4095 a[1]=4095


Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to