linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Benjamin Tissoires <btissoir@redhat.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
	Rico Moorman <rico.moorman@gmail.com>,
	Peter Hutterer <peter.hutterer@redhat.com>,
	linux-input@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH v2] alps: Do not divide trackpoint deltas reported by hardware by 2 for v7 devices
Date: Thu, 4 Jun 2015 22:34:06 -0700	[thread overview]
Message-ID: <20150605053406.GB29704@dtor-ws> (raw)
In-Reply-To: <20150604135434.GA2495@mail.corp.redhat.com>

On Thu, Jun 04, 2015 at 09:54:34AM -0400, Benjamin Tissoires wrote:
> On Jun 04 2015 or thereabouts, Hans de Goede wrote:
> > On some v7 devices (e.g. Lenovo-E550) the deltas reported are typically
> > only in the 0-1 range dividing this by 2 results in a range of 0-0.
> > 
> > And even for v7 devices where this does not lead to making the trackstick
> > entirely unusable, it makes it twice as slow as before we added v7 support
> > and were using the ps/2 mouse emulation of the dual point setup.
> > 
> > If some kind of generic slowdown is actually necessary for some devices,
> > then that belongs in userspace, not in the kernel.
> > 
> > Cc: stable@vger.kernel.org
> > Reported-and-tested-by: Rico Moorman <rico.moorman@gmail.com>
> > Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> > ---
> > Changes in v2:
> > -Also remove the comment why we were dividing the delta by 2
> > ---
> 
> Looks good to me
> 
> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>

Applied, thank you.

> 
> Cheers,
> Benjamin
> 
> >  drivers/input/mouse/alps.c | 5 ++---
> >  1 file changed, 2 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c
> > index 9bc4343..113d6f1 100644
> > --- a/drivers/input/mouse/alps.c
> > +++ b/drivers/input/mouse/alps.c
> > @@ -1071,9 +1071,8 @@ static void alps_process_trackstick_packet_v7(struct psmouse *psmouse)
> >  	right = (packet[1] & 0x02) >> 1;
> >  	middle = (packet[1] & 0x04) >> 2;
> >  
> > -	/* Divide 2 since trackpoint's speed is too fast */
> > -	input_report_rel(dev2, REL_X, (char)x / 2);
> > -	input_report_rel(dev2, REL_Y, -((char)y / 2));
> > +	input_report_rel(dev2, REL_X, (char)x);
> > +	input_report_rel(dev2, REL_Y, -((char)y));
> >  
> >  	input_report_key(dev2, BTN_LEFT, left);
> >  	input_report_key(dev2, BTN_RIGHT, right);
> > -- 
> > 2.4.2
> > 

-- 
Dmitry

      reply	other threads:[~2015-06-05  5:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 12:26 [PATCH v2] alps: Do not divide trackpoint deltas reported by hardware by 2 for v7 devices Hans de Goede
2015-06-04 13:54 ` Benjamin Tissoires
2015-06-05  5:34   ` Dmitry Torokhov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150605053406.GB29704@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=btissoir@redhat.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-input@vger.kernel.org \
    --cc=peter.hutterer@redhat.com \
    --cc=rico.moorman@gmail.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).