Skip to contentSkip to conversation

hid-multitouch: Fix Iiyama ProLite T1931SAW (0eef:0001 again!)

PATCH Superseded Ondrej Zary 3 participants 9 messages Nov 12, 2021 – Nov 19, 2021 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hid-multitouch: Fix Iiyama ProLite T1931SAW (0eef:0001 again!)

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.
Add it to mt_devices[] as MT_CLS_WIN_8 to fix the problem. Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +5 -0
index e1afddb7b33d..099daf590392 100644
@@ -1888,6 +1888,11 @@ static const struct hid_device_id mt_devices[] = {
 		MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
 			USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
+	/* eGalax devices (SAW) */
+	{ .driver_data = MT_CLS_WIN_8,
+		MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+			USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
 	/* eGalax devices (resistive) */
 	{ .driver_data = MT_CLS_EGALAX,
 		MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
Signature · 1 line
Ondrej Zary
#1 lore raw

Hi Ondrej,

Quoted 11 lines · Ondrej Zary

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.
Add it to mt_devices[] as MT_CLS_WIN_8 to fix the problem. Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

Hmm, this is worrisome. I am pretty sure there were some eGalax 0001 devices that were Win 7 compatible and I am not sure if they are compatible with Win8...

I guess that if you have to set MT_CLS_WIN_8, the device is not detected as such. so how about you use:
MT_CLS_EXPORT_ALL_INPUTS instead, (to keep MT_CLS_DEFAULT for those devices), and restrict the VID/PID matching to the non Win8 devices:

HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_DWAV, USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER)

?

Cheers,
Benjamin

Quoted 25 lines
---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +5 -1
index e1afddb7b33d..099daf590392 100644
@@ -1888,6 +1888,11 @@ static const struct hid_device_id mt_devices[] = {
                MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
                        USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
+       /* eGalax devices (SAW) */
+       { .driver_data = MT_CLS_WIN_8,
+               MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+                       USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
        /* eGalax devices (resistive) */
        { .driver_data = MT_CLS_EGALAX,
                MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
--

Ondrej Zary

#2 lore raw
Quoted 15 lines · Benjamin Tissoires

Hi Ondrej,

Quoted 11 lines · Ondrej Zary

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.
Add it to mt_devices[] as MT_CLS_WIN_8 to fix the problem. Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

Quoted 8 lines

Hmm, this is worrisome. I am pretty sure there were some eGalax 0001 devices that were Win 7 compatible and I am not sure if they are compatible with Win8...

I guess that if you have to set MT_CLS_WIN_8, the device is not detected as such. so how about you use:
MT_CLS_EXPORT_ALL_INPUTS instead, (to keep MT_CLS_DEFAULT for those devices), and restrict the VID/PID matching to the non Win8 devices:

It works with MT_CLS_EXPORT_ALL_INPUTS.

Quoted 2 lines

HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_DWAV, USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER)

But does not match HID_GROUP_GENERIC.

Quoted 33 lines

?

Cheers,
Benjamin

Quoted 25 lines
---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +5 -1
index e1afddb7b33d..099daf590392 100644
@@ -1888,6 +1888,11 @@ static const struct hid_device_id mt_devices[] = {
                MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
                        USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
+       /* eGalax devices (SAW) */
+       { .driver_data = MT_CLS_WIN_8,
+               MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+                       USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
        /* eGalax devices (resistive) */
        { .driver_data = MT_CLS_EGALAX,
                MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
--

Ondrej Zary

Signature · 1 line
Ondrej Zary
#3 lore raw
Quoted 26 lines · Ondrej Zary
Quoted 15 lines · Benjamin Tissoires

Hi Ondrej,

Quoted 11 lines · Ondrej Zary

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.
Add it to mt_devices[] as MT_CLS_WIN_8 to fix the problem. Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

Quoted 8 lines

Hmm, this is worrisome. I am pretty sure there were some eGalax 0001 devices that were Win 7 compatible and I am not sure if they are compatible with Win8...

I guess that if you have to set MT_CLS_WIN_8, the device is not detected as such. so how about you use:
MT_CLS_EXPORT_ALL_INPUTS instead, (to keep MT_CLS_DEFAULT for those devices), and restrict the VID/PID matching to the non Win8 devices:

Quoted 6 lines

It works with MT_CLS_EXPORT_ALL_INPUTS.

Quoted 2 lines

HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_DWAV, USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER)

But does not match HID_GROUP_GENERIC.

Sorry, it should have been HID_GROUP_MULTITOUCH

Cheers,
Benjamin

Quoted 40 lines
Quoted 21 lines

?

Cheers,
Benjamin

Quoted 14 lines
---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +0 -0
index e1afddb7b33d..099daf590392 100644
@@ -1888,6 +1888,11 @@ static const struct hid_device_id mt_devices[] = {
                MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
                        USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
Quoted 13 lines
Quoted 11 lines
drivers/hid/hid-multitouch.c +5 -1
+       /* eGalax devices (SAW) */
+       { .driver_data = MT_CLS_WIN_8,
+               MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+                       USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
        /* eGalax devices (resistive) */
        { .driver_data = MT_CLS_EGALAX,
                MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
--

Ondrej Zary

--
Ondrej Zary

#4 lore raw
Quoted 27 lines · Benjamin Tissoires
Quoted 26 lines · Ondrej Zary
Quoted 23 lines · Benjamin Tissoires

Hi Ondrej,

Quoted 11 lines · Ondrej Zary

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.
Add it to mt_devices[] as MT_CLS_WIN_8 to fix the problem. Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

Hmm, this is worrisome. I am pretty sure there were some eGalax 0001 devices that were Win 7 compatible and I am not sure if they are compatible with Win8...

I guess that if you have to set MT_CLS_WIN_8, the device is not detected as such. so how about you use:
MT_CLS_EXPORT_ALL_INPUTS instead, (to keep MT_CLS_DEFAULT for those devices), and restrict the VID/PID matching to the non Win8 devices:

Quoted 8 lines
Quoted 6 lines

It works with MT_CLS_EXPORT_ALL_INPUTS.

Quoted 2 lines

HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_DWAV, USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER)

But does not match HID_GROUP_GENERIC.

Sorry, it should have been HID_GROUP_MULTITOUCH

That's exactly how MT_USB_DEVICE is defined:
#define MT_USB_DEVICE(v, p) HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH, v, p)

So it's equal to MT_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) Will that match only non-Win8 devices?

Quoted 45 lines

Cheers,
Benjamin

Quoted 40 lines
Quoted 21 lines

?

Cheers,
Benjamin

Quoted 14 lines
---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +0 -0
index e1afddb7b33d..099daf590392 100644
@@ -1888,6 +1888,11 @@ static const struct hid_device_id mt_devices[] = {
                MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
                        USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
Quoted 13 lines
Quoted 11 lines
drivers/hid/hid-multitouch.c +5 -1
+       /* eGalax devices (SAW) */
+       { .driver_data = MT_CLS_WIN_8,
+               MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+                       USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
        /* eGalax devices (resistive) */
        { .driver_data = MT_CLS_EGALAX,
                MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
--

Ondrej Zary

--
Ondrej Zary

Signature · 1 line
Ondrej Zary
#5 lore raw
Quoted 34 lines · Ondrej Zary
Quoted 32 lines · Benjamin Tissoires
Quoted 31 lines · Ondrej Zary
Quoted 15 lines · Benjamin Tissoires

Hi Ondrej,

Quoted 11 lines · Ondrej Zary

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.
Add it to mt_devices[] as MT_CLS_WIN_8 to fix the problem. Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

Quoted 8 lines

Hmm, this is worrisome. I am pretty sure there were some eGalax 0001 devices that were Win 7 compatible and I am not sure if they are compatible with Win8...

I guess that if you have to set MT_CLS_WIN_8, the device is not detected as such. so how about you use:
MT_CLS_EXPORT_ALL_INPUTS instead, (to keep MT_CLS_DEFAULT for those devices), and restrict the VID/PID matching to the non Win8 devices:

It works with MT_CLS_EXPORT_ALL_INPUTS.

Quoted 2 lines

HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_DWAV, USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER)

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

But does not match HID_GROUP_GENERIC.

Sorry, it should have been HID_GROUP_MULTITOUCH

That's exactly how MT_USB_DEVICE is defined:
#define MT_USB_DEVICE(v, p) HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH, v, p)

Oops, sorry. That's what happens when I rely too much on my memory and don't check the code :(

Quoted 3 lines

So it's equal to MT_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) Will that match only non-Win8 devices?

Nope, you're correct, it will only match non-Win8 devices. So the only comment I have on your patch is to use MT_CLS_EXPORT_ALL_INPUTS instead of MT_CLS_WIN_8.

Cheers,
Benjamin

Quoted 52 lines
Quoted 46 lines

Cheers,
Benjamin

Quoted 40 lines
Quoted 21 lines

?

Cheers,
Benjamin

Quoted 14 lines
---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +0 -0
index e1afddb7b33d..099daf590392 100644
@@ -1888,6 +1888,11 @@ static const struct hid_device_id mt_devices[] = {
                MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
                        USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
Quoted 13 lines
Quoted 11 lines
drivers/hid/hid-multitouch.c +5 -1
+       /* eGalax devices (SAW) */
+       { .driver_data = MT_CLS_WIN_8,
+               MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+                       USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
        /* eGalax devices (resistive) */
        { .driver_data = MT_CLS_EGALAX,
                MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
--

Ondrej Zary

--
Ondrej Zary

--
Ondrej Zary

#6 lore raw

PATCH v2 1/1 hid-multitouch: Fix Iiyama ProLite T1931SAW (0eef:0001 again!)

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.

Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +5 -0
index 3ea7cb1cda84..ac114b76057b 100644
@@ -1880,6 +1880,11 @@ static const struct hid_device_id mt_devices[] = {
 		MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
 			USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
+	/* eGalax devices (SAW) */
+	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
+		MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+			USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
 	/* eGalax devices (resistive) */
 	{ .driver_data = MT_CLS_EGALAX,
 		MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
Signature · 1 line
Ondrej Zary
Reviewed-by on v2 1/1
#7 lore raw
Quoted 7 lines · Ondrej Zary

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

Quoted 6 lines

It seems to require export_all_inputs = true.

Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

Thanks!

Cheers,
Benjamin

Quoted 23 lines
---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +5 -1
index 3ea7cb1cda84..ac114b76057b 100644
@@ -1880,6 +1880,11 @@ static const struct hid_device_id mt_devices[] = {
                MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
                        USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
+       /* eGalax devices (SAW) */
+       { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
+               MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+                       USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
        /* eGalax devices (resistive) */
        { .driver_data = MT_CLS_EGALAX,
                MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
--

Ondrej Zary

maintainer Applied
#8 lore raw
In reply to Ondrej Zary
Quoted 21 lines · Ondrej Zary

Iiyama ProLite T1931SAW does not work with Linux - input devices are created but cursor does not move.

It has the infamous 0eef:0001 ID which has been reused for various devices before.

It seems to require export_all_inputs = true.

Hopefully there are no HID devices using this ID that will break. It should not break non-HID devices (handled by usbtouchscreen).

---
 drivers/hid/hid-multitouch.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-multitouch.c +0 -0
index 3ea7cb1cda84..ac114b76057b 100644

drivers/hid/hid-multitouch.c static const struct hid_device_id mt_devices[] = { · line 1889

Quoted 10 lines
drivers/hid/hid-multitouch.c +5 -0
@@ -1880,6 +1880,11 @@ static const struct hid_device_id mt_devices[] = {
 		MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
 			USB_DEVICE_ID_CVTOUCH_SCREEN) },
 
+	/* eGalax devices (SAW) */
+	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
+		MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
+			USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
+
 	/* eGalax devices (resistive) */
 	{ .driver_data = MT_CLS_EGALAX,

Applied, thanks Ondrej.

Signature · 2 lines
Jiri Kosina
SUSE Labs