Bug 17813 - y-axis is inverted with mutouch 1.2.0 running on debian lenny (xorg 7.3)
Summary: y-axis is inverted with mutouch 1.2.0 running on debian lenny (xorg 7.3)
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/mutouch (show other bugs)
Version: 7.3 (2007.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-28 03:02 UTC by Anonymous Helper
Modified: 2008-09-29 06:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Anonymous Helper 2008-09-28 03:02:29 UTC
Hello,

Yesterday I used the mutouch-Xorg-driver under debian etch (Xorg 7.1), worked without problems. Then I upgraded to debian lenny (which has a newer Xorg server, 7.3) and had the problem that the y-axis was inverted; so if I touched at the top, the mouse was at the bottom. There's no option for the driver to solve this with config-options (at least i could not find any), so I took the code and changed one line, now it's working.

It's line 746 in xf86MuTouch.c I changed from

cur_y = WORD_ASSEMBLY(start_ptr[3], start_ptr[4]);

to

cur_y = (priv->max_y + priv->min_y) - WORD_ASSEMBLY(start_ptr[3], start_ptr[4]);

That inverted the y-axis for me, now everything is working again.

Maybe someone can take a look at it if this change is ok and maybe commit the change to the mutouch driver so hopefully the bug disappears.

For any kind of questions or comments please send mail to email@joachim-neu.de .

Thank you!
Comment 1 Julien Cristau 2008-09-29 06:28:07 UTC
this seems to be fixed in git, but not in any release yet.  I'll try to
get the patch in lenny soon, so you can confirm that it's fixed.


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.