<html><head></head><body><div class="ydp1b91e0e6yahoo-style-wrap" style="font-family:verdana, helvetica, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi Peter,</div><div dir="ltr" data-setdir="false">    I couldn't get reason for missing <span><span style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">ID_INPUT_TOUCHSCREEN , my udev rule looks as below.</span></span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span>SUBSYSTEM=="input" KERNEL=="event[0-9]" ENV{ID_INPUT_TOUCHSCREEN}=="1" <span> ENV{ID_SEAT}="seat1" SYMLINK+="/dev/input/event0"</span> </span><br></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>I don't have libinput record tool, instead tried with evtest and I see BTN_TOUCH, below is capture from evtest</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><div><div>~# evtest</div><div>No device specified, trying to scan all of /dev/input/event*</div><div>Available devices:</div><div>/dev/input/event0:      touchscreen</div><div>/dev/input/event1:      Dell Dell USB Optical Mouse</div><div>Select the device event number [0-1]: 0</div><div>Input driver version is 1.0.1</div><div>Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0</div><div>Input device name: "touchscreen"</div><div>Supported events:</div><div>  Event type 0 (EV_SYN)</div><div>  Event type 1 (EV_KEY)</div><div>    Event code 330 (BTN_TOUCH)</div><div>  Event type 3 (EV_ABS)</div><div>    Event code 48 (ABS_MT_TOUCH_MAJOR)</div><div>      Value      0</div><div>      Min        0</div><div>      Max      600</div><div>    Event code 53 (ABS_MT_POSITION_X)</div><div>      Value      0</div><div>      Min      168</div><div>      Max     3908</div><div>    Event code 54 (ABS_MT_POSITION_Y)</div><div>      Value      0</div><div>      Min      195</div><div>      Max     4045</div><div>Properties:</div><div>Testing ... (interrupt to exit)</div><div>Event: time 1569995436.407176, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1</div><div>Event: time 1569995436.407176, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 96</div><div>Event: time 1569995436.407176, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 630</div><div>Event: time 1569995436.407176, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 693</div><div>Event: time 1569995436.407176, ++++++++++++++ SYN_MT_REPORT ++++++++++++</div><div>Event: time 1569995436.407176, -------------- SYN_REPORT ------------</div><div>Event: time 1569995436.413546, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 94</div><div>Event: time 1569995436.413546, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 640</div><div>Event: time 1569995436.413546, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 705</div><div>Event: time 1569995436.476318, ++++++++++++++ SYN_MT_REPORT ++++++++++++</div><div>Event: time 1569995436.476318, -------------- SYN_REPORT ------------</div><div>Event: time 1569995436.482637, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 85</div><div>Event: time 1569995436.482637, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 645</div><div>Event: time 1569995436.482637, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 696</div><div>Event: time 1569995436.482637, ++++++++++++++ SYN_MT_REPORT ++++++++++++</div><div>Event: time 1569995436.543353, -------------- SYN_REPORT ------------</div><div>Event: time 1569995436.549449, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 89</div><div>Event: time 1569995436.549449, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 638</div><div>Event: time 1569995436.549449, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 697</div><div>Event: time 1569995436.549449, ++++++++++++++ SYN_MT_REPORT ++++++++++++</div><div>Event: time 1569995436.549449, -------------- SYN_REPORT ------------</div><div>Event: time 1569995436.555527, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 102</div><div>Event: time 1569995436.555527, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 638</div><div>Event: time 1569995436.555527, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 709</div><div>Event: time 1569995436.555527, ++++++++++++++ SYN_MT_REPORT ++++++++++++</div><div>Event: time 1569995436.555527, -------------- SYN_REPORT ------------</div><div>Event: time 1569995436.752071, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0</div><div>Event: time 1569995436.752071, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 0</div><div>Event: time 1569995436.752071, ++++++++++++++ SYN_MT_REPORT ++++++++++++</div><div>Event: time 1569995436.752071, -------------- SYN_REPORT ------------</div></div><div><br></div><div><br></div><div dir="ltr" data-setdir="false">Does this indicate that Kernel driver is working fine and issue is with some configuration ? Please let me know.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks & Best Regards,</div><div dir="ltr" data-setdir="false">Sanjay</div><div dir="ltr" data-setdir="false"><br></div></div><div><br></div>
        
        </div><div id="ydpee546a4ayahoo_quoted_0912418664" class="ydpee546a4ayahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Wednesday, 2 October, 2019, 07:16:32 pm GMT+1, Peter Hutterer <peter.hutterer@who-t.net> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div>On Wed, Oct 02, 2019 at 04:40:24PM +0000, sanjay anvekar wrote:<br clear="none">>  Hi Peter,   Thank you for your response. I tried changing udev properties but it didn't help. Here is output from udevadm command.udevadm info /dev/input/event0P: /devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input0/event0N: input/event0S: input/by-path/platform-21a4000.i2c-eventE: DEVLINKS=/dev/input/by-path/platform-21a4000.i2c-eventE: DEVNAME=/dev/input/event0E: DEVPATH=/devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input0/event0E: ID_INPUT=1E: ID_PATH=platform-21a4000.i2cE: ID_PATH_TAG=platform-21a4000_i2cE: MAJOR=13E: MINOR=64E: SUBSYSTEM=inputE: USEC_INITIALIZED=2341962<br clear="none">> <br clear="none">> Also tried with 'libinput-debug-events' and following is outputlibinput-debug-events --device /dev/input/event0 --verboseinput device 'touchscreen', /dev/input/event0 not tagged as input devicefailed to create input device '/dev/input/event0'.Failed to initialized device /dev/input/event0<br clear="none">> I tested this input device with 'evetest' application and it works, but doesn't work with libinput.<br clear="none">> How do I debug further and conclude that it is Kernel driver issue ? Please let me know.<br clear="none">> Thanks & Best Regards,Sanjay<br clear="none"><br clear="none">fwiw, the plain text your email client sends appears to be ... broken.<br clear="none"><br clear="none">you're missing ID_INPUT_TOUCHSCREEN which is probably you're missing<br clear="none">BTN_TOUCH on the evdev node. run libinput record and that'll tell you the<br clear="none">bits set for the device - for a touchscreen you need ABS_X/Y and BTN_TOUCH<br clear="none">as the minimum.<br clear="none"><br clear="none">look for the udev-builtin-input_id.c file in the systemd git repo, that will<br clear="none">tell you how the various ID_INPUT_FOO tags get applied. Then you need to<br clear="none">make sure the kernel exports those.<br clear="none"><br clear="none">Cheers,<div class="ydpee546a4ayqt6644422547" id="ydpee546a4ayqtfd82967"><br clear="none">   Peter<br clear="none"><br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">>     On Wednesday, 2 October, 2019, 02:50:39 pm GMT+1, Peter Hutterer <<a shape="rect" href="mailto:peter.hutterer@who-t.net" rel="nofollow" target="_blank">peter.hutterer@who-t.net</a>> wrote:  <br clear="none">>  <br clear="none">>  On Tue, Oct 01, 2019 at 04:08:17PM +0000, sanjay anvekar wrote:<br clear="none">> > Hi All,   I am new to Wayland. I am using Weston 1.9.0 on imx6x board with<br clear="none">> > touchscreen display of resolution 1024x768. I am seeing touchscreen as<br clear="none">> > /dev/input/event0 device and it is working. I confirmed functioning of<br clear="none">> > touchscreen using "cat /dev/input/event0" command. Unfortunately, I don't<br clear="none">> > see touchscreen is listed by libinput application i.e.<br clear="none">> > 'libinput-list-devices'. If I connect USB mouse then I see mouse is listed<br clear="none">> > by 'libinput-list-devices' application, but not touchscreen. I am running<br clear="none">> > Qt application and it is not able to detect touch inputs. Please let me<br clear="none">> > know your inputs to resolve this problem.<br clear="none">> <br clear="none">> most likely the udev property ID_INPUT and/or ID_INPUT_TOUCHSCREEN is<br clear="none">> missing for this device, libinput debug-events --verbose should print<br clear="none">> *something* at least for the device.<br clear="none">> <br clear="none">> If the property is missing though that means that it doesn't export the<br clear="none">> correct evdev bits to be picked up by the udev builtin, so most likely the<br clear="none">> kernel driver needs to be fixed.<br clear="none">> <br clear="none">> Cheers,<br clear="none">>   Peter<br clear="none">>   <br clear="none"></div></div>
            </div>
        </div></body></html>