Re: [PATCH] mousedev: Fix scrollwheel thingy on IBM ScrollPoint mice

From: Kim Holviala
Date: Thu Oct 28 2004 - 07:46:27 EST


Kim Holviala wrote:

This patch limits the scroll wheel movements to be either +1 or -1 on
the event -> emulated PS/2 level. I chose to implement it there because
mousedev emulates Microsoft mice but the real ones almoust never return
a bigger value than 1 (or -1).
...
+#ifdef CONFIG_INPUT_MOUSEDEV_WHEELFIX
+ if (value) { value = (value < 0 ? -1 : 1); }
+#endif /* CONFIG_INPUT_MOUSEDEV_WHEELFIX */

We can have a workaround for XOrg, but not one like this. This will make
fast scrolling unreliable. I have standard Microsoft-compatible mice
which do report more than one scroll tick per report, if you scroll the
wheel fast enough, and this throws away the extra ticks.

One more comment to the scrollpoint issue: if they haven't fixed it after 4.3.something XFree throws away all scroll events where the scroll amount is more than 1. So "fast scrolling" is already unreliable, this patch just made it work somehow instead of what it's doing now: not working at all.



Kim

-
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/