Re: 2.6 input drivers FAQ

Vojtech Pavlik
2004-02-02T20:23:22Z

On Mon, Feb 02, 2004 at 01:12:06PM -0500, Valdis.Kletnieks@vt.edu wrote:

> Section "InputDevice"
> Identifier "Mouse0"
> Driver "mouse"
> Option "Device" "/dev/psaux"
> Option "Protocol" "ExplorerPS/2"
> Option "Buttons" "7"
> Option "Emulate3Buttons" "on"
> Option "ZAxisMapping" "6 7"
> EndSection
>
> And if I *had* gotten it in there twice, why would it only hit sporadically
> once or twice a day, as opposed to *all* mouse events (clicks, moves,
> etc) being doubled?

Because normally the X server reads them in very quick succession and if
you don't make a very short click, the sequence looks like this:

push1 push2 release1 release2, which is fine, because X interprets that
as just a push and a release.

If there is disk activity or something else that causes the scheduling
to be delayed, it's push1 release1 push2 release2, which counts as a
doubleclick.

Hence sporadic doubleclicking.

For movement, of course, you get twice the mouse speed, but usually most
people just adjust the acceleration settings and are done with that.

--
Vojtech Pavlik
SuSE Labs, SuSE CR