Re: [PATCH 2.6] Mousedev - better button handling under load
From: Dmitry Torokhov
Date: Thu Jul 08 2004 - 13:11:43 EST
On Thursday 08 July 2004 08:25 am, David Balazic wrote:
> Hi,
>
> Currently mousedev combines all hardware motion data that arrivers
> since
> last time userspace read data into one cooked PS/2 packet. The
> problem is
> that under heavy or even moderate load, when userspace can't read
> data
> quickly enough, we start loosing valuable data which manifests in:
>
> - ignoring buton presses as by the time userspace gets to read the
> data
> button has already been released;
> - click starts in wrong place - by the time userspace got aroungd
> and read
> the packet mouse moved half way across the screen.
>
>
> I am seeing the second simptom on Fedora Core 2 in X.
> ( I click on a windows title, move the mouse and what happens is than a
> selection rectangle is drawn on the desktop, starting a few inches away from
> the real click position )
> Is this the cause ?
>
Yes, I think it is. If userspace is behind then mousedev will continue
accumulating displacements after noticing click and when userspace finally
gets around to read the packet it looks like click was at the current
displacement point.
> Regards,
> David
>
> P.S.: Is there a bug about this in bugzilla.redhat.com ? ( or elsewhere ? )
Not that I know of...
--
Dmitry
-
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/