Re: [bug] Mouse jumps randomly in x kernel 2.6.18

From: Pozsar Balazs
Date: Mon Aug 21 2006 - 04:53:26 EST


On Sun, Aug 20, 2006 at 09:52:03PM -0400, Dmitry Torokhov wrote:
> On Sunday 20 August 2006 19:23, Bob Reinkemeyer wrote:
> > just to be clear, is this all you want to revert, or do you want all
> > similar fuctions reverted?
> >
>
> Just the part Poszar quoted - we have a report from another user that
> removing only 2nd part of the explorer 4.0 magic knock cures mouse
> jumpiness.

Here's the patch to revert the superfluous initilization.
Horizontal scrolling still works on my instellimouse 4.0 thanks to the
first (kept) part of the init seq, and it hopefully cures the jumpiness.

ps: I wonder how the windows driver manages not to go jumpy...


Signed-off-by: Pozsar Balazs <pozsy@xxxxxxxxxxx>

--- a/drivers/input/mouse/psmouse-base.c 2006-08-21 10:46:20.000000000 +0200
+++ b/drivers/input/mouse/psmouse-base.c 2006-08-21 10:46:26.000000000 +0200
@@ -485,13 +485,6 @@
param[0] = 40;
ps2_command(ps2dev, param, PSMOUSE_CMD_SETRATE);

- param[0] = 200;
- ps2_command(ps2dev, param, PSMOUSE_CMD_SETRATE);
- param[0] = 200;
- ps2_command(ps2dev, param, PSMOUSE_CMD_SETRATE);
- param[0] = 60;
- ps2_command(ps2dev, param, PSMOUSE_CMD_SETRATE);
-
if (set_properties) {
set_bit(BTN_MIDDLE, psmouse->dev->keybit);
set_bit(REL_WHEEL, psmouse->dev->relbit);


--
pozsy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/