We are using imx_7.1.2 Android Nougat release for our custom board.
In the custom board tsc2004(12 bit ADC) based touchscreen is used. Screen resolution is 480x272.
So, I have performed the calibration using tslib.
I am able to read the calibrated touch coordinates using getevent(as shown below), but at android GUI, there is no action performing on touching. I am using the tsc2004.c driver came with the kernel release and performing the callibration in driver before sending the coordinates to userspace.
sabresd_6dq:/ # getevent -lp /dev/input/event0
add device 1: /dev/input/event0
name: "TSC200X"
events:
(Touchscreen Top Left value)
KEY (0001): BTN_TOUCH*
ABS (0003):
ABS_X : value 13, min 0, max 4095, fuzz 4, flat 0, resolution 0
ABS_Y : value 15, min 0, max 4095, fuzz 7, flat 0, resolution 0
ABS_PRESSURE : value 336, min 0, max 2048, fuzz 2, flat 0, resolution 0
input props:
<none>
(Touchscreen Top Right Value)
sabresd_6dq:/ # getevent -lp /dev/input/event0
add device 1: /dev/input/event0
name: "TSC200X"
events:
KEY (0001): BTN_TOUCH*
ABS (0003):
ABS_X : value 464, min 0, max 4095, fuzz 4, flat 0, resolution 0
ABS_Y : value 14, min 0, max 4095, fuzz 7, flat 0, resolution 0
ABS_PRESSURE : value 399, min 0, max 2048, fuzz 2, flat 0, resolution 0
input props:
<none>
(Touchscreen Bottom Right Value)
sabresd_6dq:/ # getevent -lp /dev/input/event0
add device 1: /dev/input/event0
name: "TSC200X"
events:
KEY (0001): BTN_TOUCH*
ABS (0003):
ABS_X : value 462, min 0, max 4095, fuzz 4, flat 0, resolution 0
ABS_Y : value 250, min 0, max 4095, fuzz 7, flat 0, resolution 0
ABS_PRESSURE : value 307, min 0, max 2048, fuzz 2, flat 0, resolution 0
input props:
<none>
(Touchscreen Bottom Left Value)
sabresd_6dq:/ # getevent -lp /dev/input/event0
add device 1: /dev/input/event0
name: "TSC200X"
events:
KEY (0001): BTN_TOUCH*
ABS (0003):
ABS_X : value 8, min 0, max 4095, fuzz 4, flat 0, resolution 0
ABS_Y : value 247, min 0, max 4095, fuzz 7, flat 0, resolution 0
ABS_PRESSURE : value 299, min 0, max 2048, fuzz 2, flat 0, resolution 0
input props:
<none>
Idc file:
======
sabresd_6dq:/ # cat /system/usr/idc/TSC200X.idc
touch.deviceType = touchScreen
touch.orientationAware = 1
touch.size.calibration = none
touch.orientation.calibration = none
Please help.
Thanks,
Praveen