Evtouch and stick mouse should also be rotated when changing screen rotation

Bug #212753 reported by Sami Mäkinen
2
Affects Status Importance Assigned to Milestone
xf86-input-evtouch (Ubuntu)
Expired
Medium
Unassigned

Bug Description

The Sony Vaio UX has both a touchscreen (using evtouch) and a stick mouse. Using intel driver and xrandr (or krandrtray) screen rotation works perfectly, but after rotation touchscreen is still calibrated for normal rotation and thus is impossible to use. Similarly after rotation stick mouse is 90 degrees "wrong".

Would it be possible to add device specific configuration for proper rotation support? For evtouch, a second calibration setting, and for stick mouse a parameter to rotate mouse axis.

/proc/bus/input/
I: Bus=0003 Vendor=0637 Product=0003 Version=0110
N: Name="GUNZE USB Touch Panel"
I: Bus=0011 Vendor=0002 Product=0008 Version=0000
N: Name="DualPoint Stick"

Picture rotated:
http://www.iphonebuzz.com/gallery/files/5/2/2/uPhone_Sony_Vaio_UX_iPhone_interface.jpg
Picture normal:
http://www.bigberries.com/images/digital/2007/jan/bb_sony_vaio_ux_premium.jpg

Revision history for this message
Bryce Harrington (bryce) wrote :

Please attach an /var/log/Xorg.0.log file from this device.

Changed in xorg-server:
status: New → Incomplete
Revision history for this message
Sami Mäkinen (sami-makinen-helsinki) wrote :

Here we go.

The original description is perhaps a bit unclear - the touchscreen is indeed rotated, but has wrong calibration, thus making it unusable in portrait mode ("left" rotate). But still up is up even after rotation.

For the stick on the other hand in portrait mode up is left, but since there is no need for calibration the stick is "usable", if taking into account the change in axis.

Bryce Harrington (bryce)
Changed in xf86-input-evtouch:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Eric Drechsel (ericdrex) wrote :

touchscreen issue duplicates https://bugs.launchpad.net/ubuntu/+source/xf86-input-evtouch/+bug/222164

For me, stick mouse coordinates aren't transformed on screen rotation, which is "correct" behavior since the stick rotates (physically) with the rest of the device. I could see wanting an external mouse to have its coordinates transformed, since the mouse can be rotated (physically) independent of the screen (this should always be the desired behavior I think -- maybe it already does this?). If an option exists to toggle rotation for standard (relative) pointing devices, it can be configured in .fdi files for individual devices or classes as in https://bugs.launchpad.net/bugs/261873.

It's not clear to me what behavior the reporter is describing for the stick. Is the stick not getting its coords transformed? This is the correct behavior IMO.

Revision history for this message
Sami Mäkinen (sami-makinen-helsinki) wrote :

In current up to date Kubuntu 8.10 KDE 4.1 the behavior is as follows:

1) Choose Rotate left (90 degrees) from randr tray icon
2) rotate physical device (including stick) to match screen rotation (see picture rotated; stick is at lower right corner of the image)
3) now pressing up (=towards the display) on the stick, moves the mouse cursor left (i.e. its un-rotated direction)

This behavior is wrong, because the direction of physical motion (applying pressure to the stick) is at 90 degrees angle to the motion of the mouse cursor.

When using an external screen, which is rotated independently of the computer, I would agree that the correct behavior would be not to translate stick mouse coordinates. This is not the case here. A setting should be available to choose between the two separate behaviors. I think most definitely both modes of operation should be supported, although personally I think rotating the whole device is more common than only rotating the display. There are more and more tablet style devices out there.

Revision history for this message
Mirsal Ennaime (mirsal-ennaime) wrote :

Hasn't that been fixed ? It works fine here

Revision history for this message
Sami Mäkinen (sami-makinen-helsinki) wrote :

In current up to date Ubuntu 9.04 Netbook Remix the situation is as follows:

For touch screen:
- after default installation, touchscreen works with evdev, but calibration is off, calibation tool cannot be run, and after screen rotation calibration is even worse and mouse cursor moves at 90 degree offset to finger motion
- after creating HAL fdi file, using evtouch driver, calibration tool can be run successfully, and rotation work perfectly
-> for touch screen this issue is fixed,if indeed using the evtouch driver is appropriate. I got the impression that touch screen support is intended to be moved to evdev driver.

However I am getting very severe instability using evtouch, with complete lockups and hard reboots. Still investigating this, and will file a separate bug report on that one after collecting some facts.

For stick mouse:
- works by default, I guess using evdev
- after rotation (both screen and computer, so that what was the computer bottom becomes its left edge), pushing stick mouse up (what is normally the left edge of the computer, when not rotated) moves mouse cursor left, which is of course wrong because the computer is rotated. In other words, rotation has no effect on stick mouse, but an effect is very much desired.
-> for stick mouse this issue is still open

Is it possible to make an fdi file for the stick mouse, which would allow rotating the stick when the screen is rotated?

Revision history for this message
Mirsal Ennaime (mirsal-ennaime) wrote :

It works in karmic

Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

Hi Sami,

This bug was reported against an earlier version of Ubuntu, can you
test if it still occurs on Lucid?

Please note we also provide technical support for older versions of
Ubuntu, but not in the bug tracker. Instead, to raise the issue through
normal support channels, please see:

    http://www.ubuntu.com/support

If you are the original reporter and can still reproduce the issue on
Lucid, please run the following command to refresh the report:

  apport-collect 212753

If you are not the original reporter, please file a new bug report, so
we can work with you as the original reporter instead (you can reference
bug 212753 in your report if you think it may be related):

  ubuntu-bug xorg

If by chance you can no longer reproduce the issue on Lucid or if you
feel it is no longer relevant, please mark the bug report 'Fix Released'
or 'Invalid' as appropriate, at the following URL:

  https://bugs.launchpad.net/ubuntu/+bug/212753

Changed in xf86-input-evtouch (Ubuntu):
status: Triaged → Incomplete
tags: added: needs-retested-on-lucid-by-june
Revision history for this message
Bryce Harrington (bryce) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xf86-input-evtouch (Ubuntu):
status: Incomplete → Expired
Revision history for this message
VMitov (vladislav-mitov) wrote :

Ubuntu 10.04
Intel Corporation 82G33/G31 Express Integrated Graphics Controller
GeneralTouch SCTL4B22BR

Works perfect in landscape mode, but can't calibrate in portrait (can't SwapXY)
I rotate the monitor with Ubuntus default Monitor Preferences GUI.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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