[UVFe] Please sync xserver-xorg-input-mutouch (1.2.0-2) from Debian unstable (main) - fixes: mutouch driver in hardy is Y axis Inverted

Bug #275650 reported by mrnaan
6
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Medium
xserver-xorg-input-mutouch (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

A fix for the issue listed below is available in the 1.2.0-2 version of this driver. No other changes besides this fix was included in that release. Please sync this to Ubuntu at the earliest convenience.

xserver-xorg-input-mutouch (1:1.2.0-2) unstable; urgency=medium

  * Cherry-picked from upstream: Handle axis inversion in the driver.
    The current X server doesn't handle inverted axes, so we need to do it in
    the driver. Report valid axis ranges to the server, but flip the
    coordinates before posting events.
    LP: #275650, fd.o bug#17813.

 -- Julien Cristau <email address hidden> Mon, 29 Sep 2008 15:23:22 +0200

[Original Report]
Binary package hint: xserver-xorg-input-mutouch

Okay, using and older version of the mutouch driver in gutsy, everything works fine.

However once upgraded to hardy the Y axis of the touch screen is inverted.

Changing MinY and MaxY in xorg.conf has no effect.

Can it be related to this

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-elographics/+bug/218671

mutouch in debug mode seems to output the same values for Y, where ever I put my finger,
however hardy Y movement is inverted? Has something changed in Xorg.

Beer for the first person who can send me a patch :-) or a way I can downgrade my X server ( ;-) )

 apt-cache policy xserver-xorg-input-mutouch
xserver-xorg-input-mutouch:
  Installed: 1:1.1.0-3
  Candidate: 1:1.1.0-3
  Version table:
 *** 1:1.1.0-3 0
        500 http://gb.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

here's my xorg configuration.

Section "InputDevice"
        Identifier "TouchScreen"
        Driver "mutouch"
        Option "Type" "finger"
        Option "Device" "/dev/ttyS2"
        Option "ScreenNo" "0"
        Option "MinX" "0"
        Option "MaxX" "16383"
        Option "MinY" "0"
        Option "MaxY" "16383"
        Option "DebugLevel" "9"
        Option "SendCoreEvents" "yes"
EndSection

and my

(**) MicroTouch FINGER input device: /dev/ttyS2
(**) Option "SendCoreEvents" "yes"
(**) FINGER: always reports core events
(**) Microtouch X device name: FINGER
(**) Option "ScreenNo" "0"
(**) Microtouch associated screen: 0
(**) Option "MaxX" "16383"
(**) Microtouch maximum x position: 16383
(**) Option "MinX" "0"
(**) Microtouch minimum x position: 0
(**) Option "MaxY" "16383"
(**) Microtouch maximum y position: 16383
(**) Option "MinY" "0"
(**) Microtouch minimum y position: 0
(**) Microtouch ThruGlass frequency is: 0
(**) Option "DebugLevel" "9"
(**) Microtouch debug level sets to 9
(**) Microtouch debug level sets to 9
(**) Microtouch device will work in Landscape mode
(II) XINPUT: Adding extended input device "FINGER" (type: MicroTouch Finger)
(II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)
(II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD)
MicroTouch finger init...
Done.
(II) Configured Mouse: ps2EnableDataReporting: succeeded
MicroTouch finger on...
MicroTouch touchscreen opening : /dev/ttyS2
(**) Option "Device" "/dev/ttyS2"
(**) Option "BaudRate" "9600"
(**) Option "StopBits" "1"
(**) Option "DataBits" "8"
(**) Option "Parity" "None"
(**) Option "Vmin" "10"
(**) Option "Vtime" "1"
(**) Option "FlowControl" "None"
Sending packet : 0x1 0x52 0xD 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 3 bytes of reply
Sending packet : 0x1 0x4F 0x49 0xD 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 8 bytes of reply
(--) MicroTouch touchscreen is a , connected through a serial port.
(--) MicroTouch controller firmware revision is 5.59.
Sending packet : 0x1 0x55 0x54 0xD 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 3 bytes of reply
(--) MicroTouch status of errors: ^MSending packet : 0x1 0x46 0x54 0xD 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 3 bytes of reply
Sending packet : 0x1 0x4D 0x53 0xD 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 3 bytes of reply
Sending packet : 0x1 0x50 0x4F 0xD 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 3 bytes of reply
Sending packet : 0x1 0x46 0x4F 0xD 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 3 bytes of reply
Done
Entering ReadInput
num_old_bytes is 0, Trying to read 256 bytes from port
Read 11 bytes of reports
Packet: 0xD8 0x14 0x46 0x32 0x3F
TouchScreen Finger: x(8980), y(8114), Press
Packet: 0xD8 0x14 0x46 0x32 0x3F
TouchScreen Finger: x(8980), y(8114), Stream
Entering ReadInput
num_old_bytes is 1, Trying to read 255 bytes from port
Read 10 bytes of reports
Packet: 0xD8 0x14 0x46 0x32 0x3F
TouchScreen Finger: x(8980), y(8114), Stream
Packet: 0xD8 0x14 0x46 0x32 0x3F
TouchScreen Finger: x(8980), y(8114), Stream
Entering ReadInput
num_old_bytes is 1, Trying to read 255 bytes from port
Read 6 bytes of reports
Packet: 0xD8 0x14 0x46 0x32 0x3F
TouchScreen Finger: x(8980), y(8114), Stream
Entering ReadInput
num_old_bytes is 2, Trying to read 254 bytes from port

Revision history for this message
mrnaan (toxicnaan) wrote : mutouch driver in hardy is Y axis Inverted
Download full text (5.2 KiB)

Binary package hint: xserver-xorg-input-mutouch

Okay, using and older version of the mutouch driver in gutsy, everything works fine.

However once upgraded to hardy the Y axis of the touch screen is inverted.

Changing MinY and MaxY in xorg.conf has no effect.

Can it be related to this

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-elographics/+bug/218671

mutouch in debug mode seems to output the same values for Y, where ever I put my finger,
however hardy Y movement is inverted? Has something changed in Xorg.

Beer for the first person who can send me a patch :-) or a way I can downgrade my X server ( ;-) )

 apt-cache policy xserver-xorg-input-mutouch
xserver-xorg-input-mutouch:
  Installed: 1:1.1.0-3
  Candidate: 1:1.1.0-3
  Version table:
 *** 1:1.1.0-3 0
        500 http://gb.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

here's my xorg configuration.

Section "InputDevice"
        Identifier "TouchScreen"
        Driver "mutouch"
        Option "Type" "finger"
        Option "Device" "/dev/ttyS2"
        Option "ScreenNo" "0"
        Option "MinX" "0"
        Option "MaxX" "16383"
        Option "MinY" "0"
        Option "MaxY" "16383"
        Option "DebugLevel" "9"
        Option "SendCoreEvents" "yes"
EndSection

and my

(**) MicroTouch FINGER input device: /dev/ttyS2
(**) Option "SendCoreEvents" "yes"
(**) FINGER: always reports core events
(**) Microtouch X device name: FINGER
(**) Option "ScreenNo" "0"
(**) Microtouch associated screen: 0
(**) Option "MaxX" "16383"
(**) Microtouch maximum x position: 16383
(**) Option "MinX" "0"
(**) Microtouch minimum x position: 0
(**) Option "MaxY" "16383"
(**) Microtouch maximum y position: 16383
(**) Option "MinY" "0"
(**) Microtouch minimum y position: 0
(**) Microtouch ThruGlass frequency is: 0
(**) Option "DebugLevel" "9"
(**) Microtouch debug level sets to 9
(**) Microtouch debug level sets to 9
(**) Microtouch device will work in Landscape mode
(II) XINPUT: Adding extended input device "FINGER" (type: MicroTouch Finger)
(II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)
(II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD)
MicroTouch finger init...
Done.
(II) Configured Mouse: ps2EnableDataReporting: succeeded
MicroTouch finger on...
MicroTouch touchscreen opening : /dev/ttyS2
(**) Option "Device" "/dev/ttyS2"
(**) Option "BaudRate" "9600"
(**) Option "StopBits" "1"
(**) Option "DataBits" "8"
(**) Option "Parity" "None"
(**) Option "Vmin" "10"
(**) Option "Vtime" "1"
(**) Option "FlowControl" "None"
Sending packet : 0x1 0x52 0xD 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes from port
Read 3 bytes of reply
Sending packet : 0x1 0x4F 0x49 0xD 0x0 0x0 0x0 0x0 0x0 0x0
Waiting a reply
Waiting 300 ms for data from port
Entering xf86MuTGetReply with buffer_p == 0
buffer_p is 0, Trying to read 256 bytes fro...

Read more...

Revision history for this message
mrnaan (toxicnaan) wrote :

okay, I've done some legwork on this and found

http://gitweb.freedesktop.org/?p=xorg/driver/xf86-input-mutouch.git;a=commitdiff;h=7ada6945af8c690e629bfc4ad6fe19b49cbbb66e

I believe this is the patch I need, how do I get this into my source

so far I've done.

sudo apt-get source xserver-xorg-input-mutouch

sudo apt-get -b source xserver-xorg-input-mutouch

this builds the source package, however I don't know how to integrate the above patch into the source,
I'm kinda new to this :-(.

Cheers!!!

Revision history for this message
In , Julien Cristau (jcristau) wrote :

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.

Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
Changed in xserver-xorg-input-mutouch:
importance: Undecided → Medium
milestone: none → ubuntu-8.10-beta
status: New → Confirmed
Changed in xorg-server:
status: Unknown → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

The change looks okay to me. +1 for sync.

Revision history for this message
Martin Pitt (pitti) wrote :

[Updating] xserver-xorg-input-mutouch (1:1.2.0-1build1 [Ubuntu] < 1:1.2.0-2 [Debian])
 * Trying to add xserver-xorg-input-mutouch...
  - <xserver-xorg-input-mutouch_1.2.0-2.dsc: downloading from http://ftp.debian.org/debian/>
  - <xserver-xorg-input-mutouch_1.2.0-2.diff.gz: downloading from http://ftp.debian.org/debian/>
  - <xserver-xorg-input-mutouch_1.2.0.orig.tar.gz: already in distro - downloading from librarian>
I: xserver-xorg-input-mutouch [universe] -> xserver-xorg-input-mutouch_1:1.2.0-1build1 [universe].

Changed in xserver-xorg-input-mutouch:
milestone: ubuntu-8.10-beta → none
status: Confirmed → Fix Released
Changed in xorg-server:
importance: Unknown → Medium
Changed in xorg-server:
importance: Medium → Unknown
Changed in xorg-server:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.