I have followed the guide but still i’m struck.
In /lib/udev/rules.d/60-persistent-input.rules, I have added following rule which make sure it detect touchscreen but xserver evdev driver configuring device as mouse.
KERNEL=="event*", ATTRS{name}=="*Capacitive*", ENV{.INPUT_CLASS}="touchscreen", ENV{ID_INPUT_TOUCHSCREEN}="1", ENV{ID_INPUT_TABLET}="", SYMLINK+="input/event0"
evtest output:
>
> 820:~# evtest
> No device specified, trying to scan all of /dev/input/event*
> Available devices:
> /dev/input/event0: Capacitive Touchscreen
> /dev/input/event1: pm8941_pwrkey
> /dev/input/event2: pm8941_pwrkey
> /dev/input/event3: gpio_keys
> /dev/input/event4: Logitech USB Receiver
> /dev/input/event5: Logitech USB Receiver
> Select the device event number [0-5]: 0
> Input driver version is 1.0.1
> Input device ID: bus 0x18 vendor 0x416 product 0x23bb version 0x28bb
> Input device name: “Capacitive Touchscreen”
> Supported events:
> Event type 0 (EV_SYN)
> Event type 1 (EV_KEY)
> Event code 330 (BTN_TOUCH)
> Event code 331 (BTN_STYLUS)
> Event code 332 (BTN_STYLUS2)
> Event type 3 (EV_ABS)
> Event code 47 (ABS_MT_SLOT)
> Value 0
> Min 0
> Max 15
> Event code 48 (ABS_MT_TOUCH_MAJOR)
> Value 0
> Min 0
> Max 1024
> Event code 53 (ABS_MT_POSITION_X)
> Value 0
> Min 0
> Max 479
> Event code 54 (ABS_MT_POSITION_Y)
> Value 0
> Min 0
> Max 853
> Event code 55 (ABS_MT_TOOL_TYPE)
> Value 0
> Min 0
> Max 2
> Event code 57 (ABS_MT_TRACKING_ID)
> Value 0
> Min 0
> Max 5
> Event code 58 (ABS_MT_PRESSURE)
> Value 0
> Min 0
> Max 1024
> Properties:
> Property type 1 (INPUT_PROP_DIRECT)
> Testing … (interrupt to exit)
> Event: time 1548227606.134406, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 253
> Event: time 1548227606.134406, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 609
in /var/log/Xorg.0.log
[ 22.258] (II) config/udev: Adding input device Capacitive Touchscreen(/dev/input/event0)
[ 22.258] () Capacitive Touchscreen: Applying InputClass "evdev touchscreen catchall"
[ 22.258] (II) Using input driver 'evdev' for 'Capacitive Touchscreen'
[ 22.258] () Capacitive Touchscreen: always reports core events
[ 22.258] () evdev: Capacitive Touchscreen: Device: "/dev/input/event0"
[ 22.258] (--) evdev: Capacitive Touchscreen: Vendor 0x416 Product 0x23bb
[ 22.258] (--) evdev: Capacitive Touchscreen: Found absolute axes
[ 22.259] (--) evdev: Capacitive Touchscreen: Found absolute multitouch axes
[ 22.259] (II) evdev: Capacitive Touchscreen: No buttons found, faking one.
**[ 22.259] (II) evdev: Capacitive Touchscreen: Forcing relative x/y axes to exist.**
**[ 22.259] (II) evdev: Capacitive Touchscreen: Configuring as mouse**
[ 22.259] () evdev: Capacitive Touchscreen: YAxisMapping: buttons 4 and 5
[ 22.259] () evdev: Capacitive Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 22.259] () Option "config_info" "udev:/sys/devices/virtual/input/input0/event0"
[ 22.259] (II) XINPUT: Adding extended input device "Capacitive Touchscreen" (type: MOUSE, id 11)
[ 22.259] (II) evdev: Capacitive Touchscreen: initialized for relative axes.
[ 22.259] (WW) evdev: Capacitive Touchscreen: ignoring absolute axes.
[ 22.259] () Capacitive Touchscreen: (accel) keeping acceleration scheme 1
[ 22.259] () Capacitive Touchscreen: (accel) acceleration profile 0
[ 22.259] () Capacitive Touchscreen: (accel) acceleration factor: 2.000
[ 22.259] () Capacitive Touchscreen: (accel) acceleration threshold: 4
touchscreen driver is ported from android.
Xserver evdev driver