X11 based application does not respond to touch after first touch ( ILI210x Touchscreen)

0 views
Skip to first unread message

Vishnu Motghare

unread,
Jun 7, 2023, 8:39:40 AM6/7/23
to xorg-...@lists.x.org, xo...@lists.x.org
Hello All,

X11-based applications like xterm & xinput_calibrator do not respond to touch after the first touch.

We have an ILI210x Touchscreen controller & the kernel version is 5.15, touch was working fine with the 5.4 kernel version with Xterm &  xinput_calibrator

This is the  Commit   added in the kernel to report the pressure value & after this, no X11-based application works after the first touch

Do we need to add any setting in xorg.conf to handle the pressure value reported by  ILI210x Touchscreen?

Thanks & Regards,
Vishnu Motghare

Peter Hutterer

unread,
Jun 7, 2023, 11:00:33 PM6/7/23
to Vishnu Motghare, xo...@lists.x.org, xorg-...@lists.x.org
On Wed, Jun 07, 2023 at 01:04:02PM +0530, Vishnu Motghare wrote:
> Hello All,
>
> X11-based applications like xterm & xinput_calibrator do not respond to
> touch after the first touch.
>
> We have an ILI210x Touchscreen controller & the kernel version is 5.15,
> touch was working fine with the 5.4 kernel version with Xterm &
> xinput_calibrator
>
> This is the Commit
> <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/input/touchscreen/ili210x.c?h=v5.10.182&id=3a492e4403ee2e3442397230d68e26e81525af90>
> added
> in the kernel to report the pressure value & after this, no X11-based
> application works after the first touch
>
> Do we need to add any setting in xorg.conf to handle the pressure value
> reported by ILI210x Touchscreen?

Most likely you're using the xf86-input-libinput driver for touchscreens
(unless you explicitly changed it to use the evdev driver). In that case
you can check with `libinput debug-events` to see what libinput produces
- the xorg libinput driver is a fairly thin wrapper and this should give
you a good indication of where things go wrong.

libinput record works either way and shows you the events produced by
the kernel.

also, fwiw libinput does not handle pressure for touch screen events so
this patch shouldn't have made a difference in userspace. So there's
most likely some other event missing, libinput record should show this.
Probably best to file an issue against libinput for that.

Cheers,
Peter

Peter Hutterer

unread,
Jun 8, 2023, 4:33:24 AM6/8/23
to Vishnu Motghare, xo...@lists.x.org, xorg-...@lists.x.org
On Thu, Jun 08, 2023 at 12:31:51PM +0530, Vishnu Motghare wrote:
> Hi Peter,
>
> Thanks for your reply.
>
> I'm using xf86-input-tslib
> <https://layers.openembedded.org/layerindex/recipe/301409/> & not
> libinput. can xf86-input-tslib
> <https://layers.openembedded.org/layerindex/recipe/301409/> handle the
> pressure? Also how to capture events from tslib input driver?

libinput record sits below the drivers so that will work either way
(should be called `kernel record` but oh well). As for tslib - no idea,
sorry, the little that I knew about it I have well and truly forgotten.

Cheers,
Peter

>
> Regards,
> Vishnu

Vishnu Motghare

unread,
Jun 8, 2023, 5:03:08 AM6/8/23
to Peter Hutterer, xo...@lists.x.org, xorg-...@lists.x.org
Hi Peter,

Thanks for your reply. 

I'm using xf86-input-tslib  & not libinput. can xf86-input-tslib  handle the pressure? Also how to capture events from tslib input driver?

Regards,
Vishnu

On Thu, 8 Jun 2023 at 08:30, Peter Hutterer <peter.h...@who-t.net> wrote:
Reply all
Reply to author
Forward
0 new messages