Re: mouse problems in 2.4.2 -> lost byte

From: Gunther Mayer (Gunther.Mayer@t-online.de)
Date: Tue Mar 27 2001 - 15:15:17 EST


linas@linas.org wrote:

>
> I am experiencing debilitating intermittent mouse problems & was about
...
> Symptoms:
> After a long time of flawless operation (ranging from nearly a week to
> as little as five minutes), the X11 pointer flies up to top-right corner,
                                                          ^^^^^^^^^^^^^^^^
> and mostly wants to stay there. Moving the mouse causes a cascade of
> spurious button-press events get generated.

This is easily explained: some byte of the mouse protocol was lost.
(Some mouse protocols are even designed to allow
 easy resync/recovery by fixed bit patterns!)

Write an intelligent mouse driver for XFree86 to compensate for
lost bytes.

Regards, Gunther

APPENDIX
========

Output ot litte test program:
> a.out
Simulating 1 lost byte
    1 -- ff 00 08 --- -256 : -248 Buttons=MRL Overflow/errors:XY
    2 -- 00 04 08 --- 4 : 8 Buttons= Overflow/errors: T
    3 -- 00 04 08 --- 4 : 8 Buttons= Overflow/errors: T
    4 -- 00 03 08 --- 3 : 8 Buttons= Overflow/errors: T
    5 -- 00 03 18 --- 3 : 24 Buttons= Overflow/errors: T
    6 -- ff 02 08 --- -254 : -248 Buttons=MRL Overflow/errors:XY
    7 -- 00 02 08 --- 2 : 8 Buttons= Overflow/errors: T
    8 -- 00 03 18 --- 3 : 24 Buttons= Overflow/errors: T
    9 -- ff 03 18 --- -253 : -232 Buttons=MRL Overflow/errors:XY
   10 -- ff 03 08 --- -253 : -248 Buttons=MRL Overflow/errors:XY
...

Probably XFree ignores data packets with XY overflow set. All other
packets move you to top-right corner.

Moving your mouse will quickly show button mania, as described by your post.


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



This archive was generated by hypermail 2b29 : Sat Mar 31 2001 - 21:00:17 EST