Port of hid-egalax to the unified hid-multitouch driver
Hi everyone,
I wrote this little patch that merges hid-egalax into hid-multitouch. (It applies to 2.6.38-rc7, but I can rebase it as you please...) The latter driver has to gain a new quirk type (MT_QUIRK_EGALAX) for fixing the reported ranges (X,Y and Z) and work around the corrupt packet length (td->last_field_index).
With these changes it works like a charm for my Samsung MB30 touchscreen and by the way fixes the broken suspend/resume behavior.
So I'd like you to test it for other egalax devices and give me your feedback on this patch.
Thanks and Greetings,
Richard
[input-hid] Add hid-egalax driver to the unified hid-multitouch
framework.
drivers/hid/Kconfig | 9 +- drivers/hid/Makefile | 1 - drivers/hid/hid-egalax.c | 279 ------------------------------------------ drivers/hid/hid-multitouch.c | 48 +++++++- 4 files changed, 47 insertions(+), 290 deletions(-) delete mode 100644 drivers/hid/hid-egalax.c
Hi Richard,
Thank you very much for this work. This reminds me that we have to switch the other drivers to hid-multitouch too.
Actually, I was not in favor of porting this driver into hid-multitouch. eGalax has two differents protocols: one for resistive technology (which is compatible with hid-multitouch in its current form), and one for capacitive technology (which requires the "corrupt packet length" quirk).
Apparently, according to the kernel logs the Samsung MB30 is a resistive technology (correct me if I'm wrong). This means that we also need testings for the capacitive one.
I'll let the community decide whether we should include this in hid-multitouch. Henrik, Jiri, any idea?
Now let's go for the review!
Cheers,
Benjamin
Quoted 24 lines · Richard Nauber
Hi everyone,
I wrote this little patch that merges hid-egalax into hid-multitouch. (It applies to 2.6.38-rc7, but I can rebase it as you please...) The latter driver has to gain a new quirk type (MT_QUIRK_EGALAX) for fixing the reported ranges (X,Y and Z) and work around the corrupt packet length (td->last_field_index).
With these changes it works like a charm for my Samsung MB30 touchscreen and by the way fixes the broken suspend/resume behavior.So I'd like you to test it for other egalax devices and give me your feedback on this patch.
Thanks and Greetings,
Richard[input-hid] Add hid-egalax driver to the unified hid-multitouch framework.
drivers/hid/Kconfig | 9 +-
drivers/hid/Makefile | 1 -
drivers/hid/hid-egalax.c | 279
------------------------------------------
drivers/hid/hid-multitouch.c | 48 +++++++-4 files changed, 47 insertions(+), 290 deletions(-)
Quoted 9 lines
delete mode 100644
drivers/hid/hid-egalax.c--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Benjamin Tissoires
Thank you very much for this work.
Indeed, thanks a lot Richard.
Quoted 2 lines
This reminds me that we have to switch the other drivers to hid-multitouch too.
That would be nice. I don't see this really being done for the upcoming merge window, right Benjamin?
Quoted 6 lines
Actually, I was not in favor of porting this driver into hid-multitouch. eGalax has two differents protocols: one for resistive technology (which is compatible with hid-multitouch in its current form), and one for capacitive technology (which requires the "corrupt packet length" quirk).
Quoted 6 lines
Apparently, according to the kernel logs the Samsung MB30 is a resistive technology (correct me if I'm wrong). This means that we also need testings for the capacitive one.
I'll let the community decide whether we should include this in hid-multitouch. Henrik, Jiri, any idea?
Either directly hid-multitouch, or hid-multitouch-capacitive sub-module should be fine.
Thanks for the efforts,
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.
Quoted 5 lines
Quoted 2 lines
This reminds me that we have to switch the other drivers to hid-multitouch too.
That would be nice. I don't see this really being done for the upcoming merge window, right Benjamin?
There has been no activity in that direction here either...
Quoted 10 lines
Quoted 10 lines
Actually, I was not in favor of porting this driver into hid-multitouch. eGalax has two differents protocols: one for resistive technology (which is compatible with hid-multitouch in its current form), and one for capacitive technology (which requires the "corrupt packet length" quirk).
Apparently, according to the kernel logs the Samsung MB30 is a resistive technology (correct me if I'm wrong). This means that we also need testings for the capacitive one.
Quoted 5 lines
Quoted 2 lines
I'll let the community decide whether we should include this in hid-multitouch. Henrik, Jiri, any idea?
Either directly hid-multitouch, or hid-multitouch-capacitive sub-module should be fine.
Maybe it is obvious already, but I think the patch is great. There is really no reason to split the driver - in particular given that the manufacturer has ensured similar behavior from both types.
Thanks,
Henrik
Quoted 7 lines · Henrik Rydberg
Quoted 5 lines
Quoted 2 lines
This reminds me that we have to switch the other drivers to hid-multitouch too.
That would be nice. I don't see this really being done for the upcoming merge window, right Benjamin?
There has been no activity in that direction here either...
I've got Stantum, Cando and 3m that can be merged right now. I mean that they have been tested and do not have regressions (crossing fingers).
This let Quanta and Mosart. I'm sure they worked some weeks ago, but I'm not sure (tested the last few days) ATM.
If you want, I can send the three that goes well, and for the other, we'll see for 2.6.40.
I have the auto-detection of contact counts that could go for 2.6.39 as well.
Cheers,
Benjamin
Quoted 24 lines
Quoted 11 lines
Quoted 11 lines
Actually, I was not in favor of porting this driver into hid-multitouch. eGalax has two differents protocols: one for resistive technology (which is compatible with hid-multitouch in its current form), and one for capacitive technology (which requires the "corrupt packet length" quirk).
Apparently, according to the kernel logs the Samsung MB30 is a resistive technology (correct me if I'm wrong). This means that we also need testings for the capacitive one.
Quoted 5 lines
Quoted 2 lines
I'll let the community decide whether we should include this in hid-multitouch. Henrik, Jiri, any idea?
Either directly hid-multitouch, or hid-multitouch-capacitive sub-module should be fine.
Maybe it is obvious already, but I think the patch is great. There is really no reason to split the driver - in particular given that the manufacturer has ensured similar behavior from both types.
Thanks,
Henrik
Quoted 10 lines · Benjamin Tissoires
Quoted 4 lines
Quoted 2 lines
That would be nice. I don't see this really being done for the upcoming merge window, right Benjamin?
There has been no activity in that direction here either...
I've got Stantum, Cando and 3m that can be merged right now. I mean that they have been tested and do not have regressions (crossing fingers).
This let Quanta and Mosart. I'm sure they worked some weeks ago, but I'm not sure (tested the last few days) ATM.
Perfect, thanks a lot for your work on this.
Quoted 4 lines
If you want, I can send the three that goes well, and for the other, we'll see for 2.6.40.
I have the auto-detection of contact counts that could go for 2.6.39 as well.
Yes, please send around whatever you have and consider ready for merge, so that it could be reviewed and merged for the upcoming merge window still.
Thanks again,
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.