Hi. This is a patch in order to ask the Linux kernel to support a variant of the ELO touchscreen that requires a different initialisation string in order to function.
The patch allows inputattach to select a different ELO id parameter (4).
The kernel patch for the Linux change is not yet merged but the code for it can be seen in this post to the relevant mailing list:
https://lore.kernel.org/linux-input/83a934eb-e1ee-fd79-33ee-76413be2e6ea@virgin.net/T/#m6caed1d2c1bb262440cd7950207c7fa67b17edb1
I have posted this as a feature request as the "Patch" option does not appear to be enabled for Tickets. I hope this is okay.
The patch is both pasted below for your reference and also attached.
Thank you.
diff --git a/README b/README
index ef831c99..d307d46f 100644
--- a/README
+++ b/README
@@ -233,6 +233,7 @@ The following people have contributed to this release:
* Stefanos Chaliasos: build fixes.
* Bernat Arlandis: ffcfstress overflow fix.
* Mikko Tuumanen: jscal -b.
+* Gareth Randall: General Touch ST6001S support.
License
diff --git a/docs/inputattach.1 b/docs/inputattach.1
index d30a3e78..9690fc49 100644
--- a/docs/inputattach.1
+++ b/docs/inputattach.1
@@ -49,6 +49,9 @@ ELO touchscreen, 4-byte mode.
.BR -elo6b ", " --elo4002
ELO touchscreen, 6-byte mode.
.TP
+.BR -elogt ", " --elotouch-gt
+ELO touchscreen, 10-byte mode for General Touch ST6001S.
+.TP
.BR -ep ", " --easypen
Genius EasyPen 3x4 tablet.
.TP
diff --git a/utils/inputattach.c b/utils/inputattach.c
index 092f84bf..d7dcfe79 100644
--- a/utils/inputattach.c
+++ b/utils/inputattach.c
@@ -833,6 +833,9 @@ static struct input_types input_types[] = {
{ "--elotouch", "-elo", "ELO touchscreen, 10-byte mode",
B9600, CS8,
SERIO_ELO, 0x00, 0x00, 0, elo_init },
+{ "--elotouch-gt", "-elogt", "ELO touchscreen, 10-byte mode, General Touch ST6001S",
+ B9600, CS8,
+ SERIO_ELO, 0x04, 0x00, 0, NULL },
{ "--elo261-280", "-elo3b", "ELO Touchscreen, 3-byte mode",
B9600, CS8 | CRTSCTS,
SERIO_ELO, 0x03, 0x00, 0, NULL },
Thanks, I’ve applied your patch, I’ll push a release in the next couple of weeks.