evdev always returns fixed XY values
Marco Cavallini
info at koansoftware.com
Mon May 25 02:29:35 PDT 2015
Il 22/05/2015 15:28, Peter Korsgaard ha scritto:
>
> Hi,
>
> > 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?
>
> 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.
>
Hi Peter,
So why ts_print is working?
Couldn't this be related to xinput only?
Values from ~4448 to ~7783
1432134805.418559: 4448 4217 32768
1432134805.429196: 4443 4215 32768
1432134805.438954: 4438 4216 32768
1432134805.449473: 4435 4218 32768
1432134805.458969: 4429 4219 32768
1432134805.468946: 4425 4221 32768
1432134805.478909: 4422 4222 32768
1432134805.490955: 4418 4224 32768
1432134805.498909: 4414 4225 32768
1432134805.517313: 5831 5931 0
1432134807.098553: 7804 7955 32768
1432134807.109174: 7805 7955 32768
1432134807.118929: 7806 7955 32768
1432134807.128856: 7806 7957 32768
1432134807.138843: 7806 7958 32768
1432134807.148981: 7802 7958 32768
1432134807.158960: 7797 7953 32768
1432134807.168963: 7791 7953 32768
1432134807.177293: 7783 7956 0
Regards,
--
Marco
More information about the xorg
mailing list