evdev always returns fixed XY values

Marco Cavallini info at koansoftware.com
Fri May 22 07:05:05 PDT 2015


Il 22/05/2015 15:28, Peter Korsgaard ha scritto:

>
> Looks like your touchscreen driver is buggy.
>
>   > # 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
>
> Driver claims to return X/Y in 0..4095 range.
>
>   > 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
>
> But then returns values that are outside this range, confusing user space.
>
> Garbage in is garbage out.
>


I can't figure out wht ts_calibrate and all the tslib applications are 
working and the x ones not.


--
Marco



More information about the xorg mailing list