lkml.org 
[lkml]   [2001]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mouse problems in 2.4.2 -> lost byte
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.[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.078 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site