Rotating screen using gnome-settings does not rotate touch input

Bug #1072920 reported by Steve Beattie
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GNOME Settings Daemon
Unknown
Medium
ubuntu-nexus7
Confirmed
Medium
Unassigned

Bug Description

Using the system settings -> Displays dialog to rotate the screen via the rotation dropdown correctly adjusts the display roatation, but the touch input location is not translated as well. For example, if you set the rotation from the default Clockwise rotation to Counterclockwise and apply it, if you touch in the lower right corner of the now flipped 180 degrees display, the dash will be brought up, and touching near the date-time widget will bring up the trash folder.

Tags: sensors
Revision history for this message
Steve Beattie (sbeattie) wrote :

You can achieve similar results (though more difficult back out of) by using the --rotate option to xrandr.

Revision history for this message
Eric Zig (zuric) wrote :

Not sure but I think this bug is a duplicate of bug 1068442

Revision history for this message
Eric Zig (zuric) wrote :

I can reproduce this bug

Changed in ubuntu-nexus7:
status: New → Confirmed
Bryce Harrington (bryce)
Changed in ubuntu-nexus7:
assignee: nobody → Bryce Harrington (bryce)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

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

(Targeting to ubuntu's xorg package; it's not clear if this is appropriate to upstream, it could just be an error in my xrotate script.)

affects: xorg-server → xorg (Ubuntu)
Changed in xorg (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg (Ubuntu):
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

There is an xrotate script which can be run from the command line which will rotate both display and input.

In X, display rotation is done using RANDR, but input is done via XINPUT. The xrotate script does both.

A Gnome bug relating to this is https://bugzilla.gnome.org/show_bug.cgi?id=624880.

summary: - Rotating screen does not rotate touch input
+ Rotating screen using gnome-settings does not rotate touch input
Changed in ubuntu-nexus7:
assignee: Bryce Harrington (bryce) → nobody
Matt Fischer (mfisch)
no longer affects: xorg (Ubuntu)
Changed in gnome-settings-daemon:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Chris Wayne (cwayne) wrote :

Marking medium as using the xrotate script works.

Changed in ubuntu-nexus7:
importance: Undecided → Medium
Revision history for this message
Jani Monoses (jani) wrote :

The randr plugin in gnome-settings-daemon sets the Axes Swap and Axis Inversion xinput properties to adjust pointer coordinates.
These two are however ignored by evdev in case of the Nexus (or all touchscreens for that matter)
Upstream's suggestion is to use the Coordinate Transform Matrix property instead in that plugin, the same used in the xrotate and acceld scripts in our nexus 7 image.

Revision history for this message
Jani Monoses (jani) wrote :
Alex Chiang (achiang)
tags: added: snesors
tags: added: sensors
removed: snesors
Revision history for this message
Jani Monoses (jani) wrote :

gnome-settings-daemon has been patched to use the transformation matrix when rotating touchscreens.
g-s-d exposes 4 DBus methods to change screen configuration but only two of those (Rotate and RotateTo) take touchscreens into account and thus are affected by the above patch.
The Control Center GUI calls another method (ApplyConfiguration) which rotates the screen but not input. So that still needs to be patched.
With the autorotation work landed in raring - currently as a shell daemon but soon as part of g-s-d proper - the need to set the orientation of the touchscreen via Control Center is not going to be that important. We probably need to expose an Autorotation on/off toggle first.

Changed in gnome-settings-daemon:
status: New → Incomplete
Changed in gnome-settings-daemon:
status: Incomplete → Confirmed
Changed in gnome-settings-daemon:
status: Confirmed → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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