Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1674524 > unrolled thread

[PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus

Started byBenjamin Tissoires <benjamin.tissoires@redhat.com>
First post2017-06-26 10:30 +0200
Last post2017-06-27 10:00 +0200
Articles 3 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-06-26 10:30 +0200
    Re: [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over  SMBus Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-06-26 17:40 +0200
      Re: [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over  SMBus Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-06-27 10:00 +0200

#1674524 — [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus

FromBenjamin Tissoires <benjamin.tissoires@redhat.com>
Date2017-06-26 10:30 +0200
Subject[PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus
Message-ID<tWxzc-8nE-17@gated-at.bofh.it>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

---

Hi Christopher,

Could you please test this patch without appending synaptics_intertouch=1
to the boot command line? If this still works, we will have the RMI4 over
SMBus by default for your laptop.

Cheers,
Benjamin

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
---
 drivers/input/mouse/synaptics.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index f4fbe1a..a8fb26bc 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[] = {
 	"LEN0046", /* X250 */
 	"LEN004a", /* W541 */
 	"LEN200f", /* T450s */
+	"LEN2016", /* T460 20FN */
 	NULL
 };
 
-- 
2.9.4

[toc] | [next] | [standalone]


#1674880 — Re: [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus

FromBenjamin Tissoires <benjamin.tissoires@redhat.com>
Date2017-06-26 17:40 +0200
SubjectRe: [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus
Message-ID<tWEhj-47v-7@gated-at.bofh.it>
In reply to#1674524
On Jun 26 2017 or thereabouts, Christopher Bachner wrote:
> Hello,
> 
> I am assuming that if the inertouch message is not showing up in dmesg,
> then it is working. Is that a correct assumption?
> 
> Either way I also attached my dmesg.
> 
> I am not sure, though, why the scroll mode still freezes if I move the my
> fingers quickly on the touchpad while also using the trackpoint. Is that
> maybe a future fix and this change is just the foundation for it? Overall
> the usage of the trackpoint is better now for sure.

Sadly, you are also hit by:
[    6.355378] i801_smbus 0000:00:1f.4: BIOS is accessing SMBus registers
[    6.355380] i801_smbus 0000:00:1f.4: Driver SMBus register access inhibited

Which disables entirely the RMI4 over SMBus module. And then we can not
probe for it, meaning you are stuck with the PS/2 crappy mode.

We are aware of this bug and we'll try to fix that. I think the test you
provides are valid (the patch works as expected), but a different bug
prevents rmi-smbus to fully initialize the touchpad :(

Cheers,
Benjamin

> 
> 
> (Resending again without attachment since the linux-kernel@vger.kernel.org
> and linux-input@vger.kernel.org don't accept attachments)
> 
> 
> ---
> Thanks,
> 
> Christopher Bachner
> 
> ---
> Thanks,
> 
> Christopher Bachner
> 
> On Mon, Jun 26, 2017 at 8:12 AM, Christopher Bachner <
> b.christopher.92@gmail.com> wrote:
> 
> > Hello,
> >
> > I am assuming that if the inertouch message is not showing up in dmesg,
> > then it is working. Is that a correct assumption?
> >
> > Either way I also attached my dmesg.
> >
> > I am not sure, though, why the scroll mode still freezes if I move the my
> > fingers quickly on the touchpad while also using the trackpoint. Is that
> > maybe a future fix and this change is just the foundation for it? Overall
> > the usage of the trackpoint is better now for sure.
> >
> >
> >
> > ---
> > Thanks,
> >
> > Christopher Bachner
> >
> > On Mon, Jun 26, 2017 at 1:26 AM, Benjamin Tissoires <
> > benjamin.tissoires@redhat.com> wrote:
> >
> >> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> >>
> >> ---
> >>
> >> Hi Christopher,
> >>
> >> Could you please test this patch without appending synaptics_intertouch=1
> >> to the boot command line? If this still works, we will have the RMI4 over
> >> SMBus by default for your laptop.
> >>
> >> Cheers,
> >> Benjamin
> >>
> >> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> >> ---
> >>  drivers/input/mouse/synaptics.c | 1 +
> >>  1 file changed, 1 insertion(+)
> >>
> >> diff --git a/drivers/input/mouse/synaptics.c
> >> b/drivers/input/mouse/synaptics.c
> >> index f4fbe1a..a8fb26bc 100644
> >> --- a/drivers/input/mouse/synaptics.c
> >> +++ b/drivers/input/mouse/synaptics.c
> >> @@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[] = {
> >>         "LEN0046", /* X250 */
> >>         "LEN004a", /* W541 */
> >>         "LEN200f", /* T450s */
> >> +       "LEN2016", /* T460 20FN */
> >>         NULL
> >>  };
> >>
> >> --
> >> 2.9.4
> >>
> >>
> >

[toc] | [prev] | [next] | [standalone]


#1675395 — Re: [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus

FromBenjamin Tissoires <benjamin.tissoires@redhat.com>
Date2017-06-27 10:00 +0200
SubjectRe: [PATCH] Input: synaptics - switch t460s 20FN to use RMI4 over SMBus
Message-ID<tWTzJ-5PY-27@gated-at.bofh.it>
In reply to#1674880
On Jun 26 2017 or thereabouts, Benjamin Tissoires wrote:
> On Jun 26 2017 or thereabouts, Christopher Bachner wrote:
> > Hello,
> > 
> > I am assuming that if the inertouch message is not showing up in dmesg,
> > then it is working. Is that a correct assumption?
> > 
> > Either way I also attached my dmesg.
> > 
> > I am not sure, though, why the scroll mode still freezes if I move the my
> > fingers quickly on the touchpad while also using the trackpoint. Is that
> > maybe a future fix and this change is just the foundation for it? Overall
> > the usage of the trackpoint is better now for sure.
> 
> Sadly, you are also hit by:
> [    6.355378] i801_smbus 0000:00:1f.4: BIOS is accessing SMBus registers
> [    6.355380] i801_smbus 0000:00:1f.4: Driver SMBus register access inhibited
> 
> Which disables entirely the RMI4 over SMBus module. And then we can not
> probe for it, meaning you are stuck with the PS/2 crappy mode.
> 
> We are aware of this bug and we'll try to fix that. I think the test you
> provides are valid (the patch works as expected), but a different bug
> prevents rmi-smbus to fully initialize the touchpad :(

Could you try applying Lyude's patch: http://patchwork.ozlabs.org/patch/780865/
(on top of mine, of course).

In the dmesg, you should see a Synaptics TMXXXX device appearing after
trying to set up the SMBus companion.

Cheers,
Benjamin

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web