I try to use gpm with a logitech cordless wheelmouse using imps2. It works for a while then the mouse begins to behave in weird ways, and the only solution is to restart gpm altogether. My first impression is that the imps2 vs ps2 state of the mouse is being reset once in a while due to disconnections in the radio link (most notably when the mouse is not used for some time), and that gpm reads ps2 signals as if they were imps2, or some such thing. When reading the mouse directly from psaux, then X works great, without any such problem. But then I can only use one pointer device (I'm trying to use gpm with multiple input device). Moreover, when I repeat with -Rms3, the mouse goes mad in X just like in gpm, but when I repeat with -Rraw, X is able to recover and to understand the mouse again after a few seconds of the mouse going crazy. A suggested "bugfix" would be to dig the X code for magic ps2 mouse handling, and insert it in gpm's codebase. Note that gpm -t autops2 has the same problem as gpm -t imps2.
Damn, I know what is going wrong, I'm not sure how to best fix it. Essentially what is happening is that incomplete packets are getting through, missing a byte or two, which gets gpm out of sync, X can sort of deal with such, however the code behind it is, not something I wish to duplicate. gpm has some code to handle such, let me see if I can get it working saner for the next upload, which will happen once I figure out how to handle one thing in the newer code base. (Sadly, that thing has been on my todo list for a few months, ugh.) Zephaniah E. Hull.
Please tell me when/where you upload it, so I may test it immediately despite my using "testing" rather than "unstable". Thanks a lot for your prompt support. [ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] [ TUNES project for a Free Reflective Computing System | http://tunes.org ] I am an atheist, thank God!