Bug 9717 - mouse acceleration disfunctional under NetBSD 4.0beta2
Summary: mouse acceleration disfunctional under NetBSD 4.0beta2
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.2 (2007.02)
Hardware: x86 (IA32) NetBSD
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-19 14:24 UTC by Todd Kover
Modified: 2018-06-12 18:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
illustrates the chunk of code I was seeing issues with. (967 bytes, patch)
2007-01-19 14:25 UTC, Todd Kover
no flags Details | Splinter Review

Description Todd Kover 2007-01-19 14:24:02 UTC
(this is specifically against 1.1.99.903 which isn't in the dropdown).

I've been running this built with everything else in 7.2rc3 under NetBSD
3.1_STABLE with wsmouse for a while and it worked fine.  When I updated to
NetBSD-4.0_BETA2 I ran into this problem.  I poked around in git and didn't see
a fix or another bug report, but it's possible I missed something.

Periodically (sometimes it would take a week, once it happened, even after a
system restart it would happen a few windows open on every startup, then
magically stop after some inconsistant amount of time), the pointer would go to
the left side of the screen and unless I moved it very very slowly at a very
consistant pace, it would get partway right on the screen and then go back over
to the left.

I originally thought something was broken with wsmouse in 4.0_BETA2 so I went in
and started putting debugging printfs into various points in xserver.  When
wsmouse turned out to be working ok, I went through and added more printfs
throughout the server and xf86-input-mouse until I finally found that it was the
acceleration in xf86input.c that was causing this.

What I saw was that the call to miPointerAbsoluteCursor() in
xf86PostMotionEvent() was sending an unreasonable low number for the x
coordinates (something along the lines of -27xxxxxxxx, my last debugging file
with this has since been replaced).  Once it started doing this, it would start
happening often (moving the mouse fast was an easy way to trigger it).

I was able to narrow it down to the code that I've #ifdef'd out in the attached
patch.  It clearly doesn't fix it because it just disabled mouse acceleration.

Unfortuantely, once I started adding the printfs in (without #ifdefing)
everything started working fine again, so I was never really able to get any
furthur.  I was also confused by the bouncing around inside modules and didn't
figure out where local->d[xy]remaind and device->ptrfeed got assigned to go see
if there was something odd there.

My best guess is that something isn't initialized, perhaps something specific to
the wsmouse driver that is in other drivers or other parts of the code, and I'm
hoping that someone more familiar with this than I am will see the report and it
will point out where it is.

Any more information I can offer, please let me know.
Comment 1 Todd Kover 2007-01-19 14:25:23 UTC
Created attachment 8465 [details] [review]
illustrates the chunk of code I was seeing issues with.

this doesn't fix it but illustrates the segment of code where I was seeing
issues.  The patch basically disabled mouse acceleration.
Comment 2 Daniel Stone 2007-02-27 01:35:51 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 Adam Jackson 2018-06-12 18:43:04 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.