Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I can only get two old v2 (fw: 0x020800, 0x040201) to test. Those who have a elantech v2
hardware please do test, thank you very much.
Note:
These 2 patches are on top of my previous v5 series.
JJ Ding (2):
Input: elantech - better support all those v2 variants
Input: elantech - remove module parameter force_elantech
drivers/input/mouse/elantech.c | 58 +++++++++++++++++++++++++++++----------
drivers/input/mouse/elantech.h | 1 +
2 files changed, 44 insertions(+), 15 deletions(-)
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
V2 hardware has many variants. This patch adddresses two issues:
- some model also has debounce packets, but with a different signature
than v3. Now we just check debounce for all v2 hardware.
- due to different scanning methods the hardware uses, x and y ranges have
to be calculated differently. And for some specific versions, we can just
see them as custom-made, so set {x, y} the same values as Windows driver
does.
Signed-off-by: JJ Ding <redacted>
---
drivers/input/mouse/elantech.c | 46 +++++++++++++++++++++++++++++++++++----
drivers/input/mouse/elantech.h | 1 +
2 files changed, 42 insertions(+), 5 deletions(-)
This essentially reverts commit f81bc788ff91d4efd4baf88b2c29713838caa8e5.
With recent work on elantech driver, I believe we now have complete support
for all elantech touchpads. So remove this hack.
Signed-off-by: JJ Ding <redacted>
---
drivers/input/mouse/elantech.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
@@ -28,10 +28,6 @@printk(KERN_DEBUGpr_fmt(fmt),##__VA_ARGS__);\}while(0)-staticboolforce_elantech;-module_param_named(force_elantech,force_elantech,bool,0644);-MODULE_PARM_DESC(force_elantech,"Force the Elantech PS/2 protocol extension to be used, 1 = enabled, 0 = disabled (default).");-/**SendaSynapticsstyleslicedquerycommand*/
@@ -1163,12 +1159,8 @@ int elantech_detect(struct psmouse *psmouse, bool set_properties)param[0],param[1],param[2]);if(!elantech_is_signature_valid(param)){-if(!force_elantech){-pr_debug("Probably not a real Elantech touchpad. Aborting.\n");-return-1;-}--pr_debug("Probably not a real Elantech touchpad. Enabling anyway due to force_elantech.\n");+pr_debug("Probably not a real Elantech touchpad. Aborting.\n");+return-1;}if(set_properties){
From: Richard Schütz <hidden> Date: 2011-09-13 10:25:10
Am 13.09.2011 08:15, schrieb JJ Ding:
V2 hardware has many variants. This patch adddresses two issues:
- some model also has debounce packets, but with a different signature
than v3. Now we just check debounce for all v2 hardware.
- due to different scanning methods the hardware uses, x and y ranges have
to be calculated differently. And for some specific versions, we can just
see them as custom-made, so set {x, y} the same values as Windows driver
does.
Signed-off-by: JJ Ding<redacted>
Tested-by: Richard Schütz <redacted>
Works like a charm now, thanks!
--
Regards,
Richard Schütz
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I can only get two old v2 (fw: 0x020800, 0x040201) to test. Those who have a elantech v2
hardware please do test, thank you very much.
Thanks JJ Ding for the patches. They look good :-) I think my hardware
is also 0x020800, but I'll test anyway and report back.
Cheers,
Éric
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, 13 Sep 2011 12:24:50 +0200, Richard Schütz [off-list ref] wrote:
Am 13.09.2011 08:15, schrieb JJ Ding:
quoted
V2 hardware has many variants. This patch adddresses two issues:
- some model also has debounce packets, but with a different signature
than v3. Now we just check debounce for all v2 hardware.
- due to different scanning methods the hardware uses, x and y ranges have
to be calculated differently. And for some specific versions, we can just
see them as custom-made, so set {x, y} the same values as Windows driver
does.
Signed-off-by: JJ Ding<redacted>
Tested-by: Richard Schütz <redacted>
Works like a charm now, thanks!
Good to hear it works for you. Thanks for testing.
jj
--
Regards,
Richard Schütz
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I can only get two old v2 (fw: 0x020800, 0x040201) to test. Those who have a elantech v2
hardware please do test, thank you very much.
Thanks JJ Ding for the patches. They look good :-) I think my hardware
No problem ;-)
is also 0x020800, but I'll test anyway and report back.
Cheers,
Éric
Éric, may I have your Reviewed-by after you test this?
Thank you very much.
jj
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Chase Douglas <hidden> Date: 2011-09-13 21:33:06
On 09/13/2011 01:15 AM, JJ Ding wrote:
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I just want to say: Thank you so much for all this! The Linux community
is often ignored by vendors, and then if we aren't ignored they only put
the effort into making the latest stuff work. Personally, I greatly
appreciate what you have contributed.
Thanks again!
-- Chase
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, 13 Sep 2011 16:33:00 -0500, Chase Douglas [off-list ref] wrote:
On 09/13/2011 01:15 AM, JJ Ding wrote:
quoted
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I just want to say: Thank you so much for all this! The Linux community
is often ignored by vendors, and then if we aren't ignored they only put
the effort into making the latest stuff work. Personally, I greatly
appreciate what you have contributed.
Thanks again!
-- Chase
Thank you, Chase, it's nice to hear this from you.
I've been a long time Linux user, so I do understand the frustration
when having a device working OK on Windows, but just can't get Linux to
support it ;)
I am happy to have a chance to contribute, even just a little bit.
jj
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: M. Edward (Ed) Borasky <hidden> Date: 2011-09-14 04:33:00
I just got an Asus U46E-BAL5 and the touchpad is showing up in
openSUSE Linux 11.4 as a PS/2 mouse. I think this patch set might fix
that issue - how can I get the patches to try it?
On Tue, Sep 13, 2011 at 8:43 PM, JJ Ding [off-list ref] wrote:
On Tue, 13 Sep 2011 16:33:00 -0500, Chase Douglas [off-list ref] wrote:
quoted
On 09/13/2011 01:15 AM, JJ Ding wrote:
quoted
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I just want to say: Thank you so much for all this! The Linux community
is often ignored by vendors, and then if we aren't ignored they only put
the effort into making the latest stuff work. Personally, I greatly
appreciate what you have contributed.
Thanks again!
-- Chase
Thank you, Chase, it's nice to hear this from you.
I've been a long time Linux user, so I do understand the frustration
when having a device working OK on Windows, but just can't get Linux to
support it ;)
I am happy to have a chance to contribute, even just a little bit.
jj
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I can only get two old v2 (fw: 0x020800, 0x040201) to test. Those who have a elantech v2
hardware please do test, thank you very much.
I just found an old v2 with firmware version 0x140200 to test, and it
worked well.
Dmitry, do you have any comment on these two changes? Do these two
patches seem OK for your -next tree?
Thank you,
jj
Note:
These 2 patches are on top of my previous v5 series.
JJ Ding (2):
Input: elantech - better support all those v2 variants
Input: elantech - remove module parameter force_elantech
drivers/input/mouse/elantech.c | 58 +++++++++++++++++++++++++++++----------
drivers/input/mouse/elantech.h | 1 +
2 files changed, 44 insertions(+), 15 deletions(-)
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I can only get two old v2 (fw: 0x020800, 0x040201) to test. Those who have a elantech v2
hardware please do test, thank you very much.
Hello,
I've tested these patches on my hardware with version 0x020801.
Everything looks fine.
Reviewed-by: Éric Piel <eric.piel@tremplin-utc.net>
Cheers,
Éric
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi everyone,
Thanks to Richard Schütz's bug report, I did some more research on elantech
v2 hardware. I asked our Windows driver team and firmware team about the
_ancient histroy_ of the dark old days ;-) These two patches are the results.
Hopefully with these 2 we can support v2 hardware as good as Windows does.
I can only get two old v2 (fw: 0x020800, 0x040201) to test. Those who have a elantech v2
hardware please do test, thank you very much.
Hello,
I've tested these patches on my hardware with version 0x020801.
Everything looks fine.
Reviewed-by: Éric Piel <eric.piel@tremplin-utc.net>
Cheers,
Éric
Thank you, Éric, for testing and reviewing.
jj
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html