lkml.org 
[lkml]   [2004]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2.6] Mousedev - better button handling under load
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.047 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site