When in portrait mode, touches don't cause click actions, just drags

Bug #1076567 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-nexus7
Fix Released
High
Bryce Harrington
xorg-server (Ubuntu)
Fix Released
High
Bryce Harrington

Bug Description

(Possibly this is related to / a dupe of bug #1075415)

When the device is rotated to portrait mode, button and link clicking do not work. Rotating back to landscape mode causes it to resume working. Click and drag works fine. Using an external mouse works ok, as do other non-touch input solutions.

[Test case]
1. xrotate portrait
2. touch and drag on background
3. quickly touch and release an icon on the launcher
4. firefox www.ubuntu.com
5. touch on any hyperlink

Expected behavior: Steps 3 should launch the app, step 5 should navigate to the web page
Actual: Steps 3 and 5 have no effect

[Discussion]
I had initially thought the input was being mis-calibrated when rotated (e.g. bad matrix transform?) but that proved not to be the case. As long as you're just doing drags it seems to work (although it's a big glitchy), it just never left-clicks.

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

Output from xev when doing a single quick touch:

EnterNotify event, serial 38, synthetic NO, window 0x2800001,
    root 0x68, subw 0x0, time 59887756, (64,105), root:(146,157),
    mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 38, synthetic NO, window 0x0,
    keys: 104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

MotionNotify event, serial 38, synthetic NO, window 0x2800001,
    root 0x68, subw 0x0, time 59887756, (64,105), root:(146,157),
    state 0x100, is_hint 0, same_screen YES

ButtonPress event, serial 38, synthetic NO, window 0x2800001,
    root 0x68, subw 0x0, time 59887756, (64,105), root:(146,157),
    state 0x100, button 1, same_screen YES

LeaveNotify event, serial 38, synthetic NO, window 0x2800001,
    root 0x68, subw 0x0, time 59887824, (619,182), root:(701,234),
    mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
    focus YES, state 0

ButtonRelease event, serial 38, synthetic NO, window 0x2800001,
    root 0x68, subw 0x0, time 59887858, (619,182), root:(701,234),
    state 0x100, button 1, same_screen YES

LeaveNotify event, serial 38, synthetic NO, window 0x2800001,
    root 0x68, subw 0x0, time 59887824, (619,182), root:(701,234),
    mode NotifyUngrab, detail NotifyNonlinear, same_screen YES,
    focus YES, state 0

In comparison, this is what a normal mouse click looks like on my desktop:

ButtonPress event, serial 38, synthetic NO, window 0x6200001,
    root 0x150, subw 0x0, time 435278947, (68,29), root:(71,113),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 38, synthetic NO, window 0x6200001,
    root 0x150, subw 0x0, time 435279075, (68,29), root:(71,113),
    state 0x100, button 1, same_screen YES

description: updated
Changed in ubuntu-nexus7:
assignee: nobody → Bryce Harrington (bryce)
Revision history for this message
Chris Wayne (cwayne) wrote :

Bryce,
I think this is in fact a duplicate of bug 1075415, as I was able to get click events (although it seems to be even more sensitive in portrait mode)

Revision history for this message
Chris Wayne (cwayne) wrote :

As per IRC conversation with Bryce, we are going to treat this as a seperate issue, which I have confirmed (it is VERY difficult to get a click event, although it does seem possible). Marking confirmed.

Changed in ubuntu-nexus7:
status: New → Confirmed
Chris Wayne (cwayne)
Changed in ubuntu-nexus7:
importance: Undecided → High
Revision history for this message
Bryce Harrington (bryce) wrote :

Fix uploaded to staging ppa.

Changed in ubuntu-nexus7:
status: Confirmed → Fix Committed
Revision history for this message
Sean Feole (sfeole) wrote :

Loaded xorg 2:1.13.0-0ubuntu6.1~nexus7.1 from staging. Looks like the issue has been fixed

[Test case]
1. xrotate portrait
2. touch and drag on background
3. quickly touch and release an icon on the launcher
4. firefox www.ubuntu.com
5. touch on any hyperlink

Expected behavior: Steps 3 should launch the app, step 5 should navigate to the web page
Actual:Steps 3 launches the app, step 5 navigates to the web page

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

Variant of the patch was accepted upstream but is not yet in the xserver we include in raring, so will need to include a backport of it there.

Changed in xorg-server (Ubuntu):
assignee: nobody → Bryce Harrington (bryce)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg-server - 2:1.13.1.901-0ubuntu2

---------------
xorg-server (2:1.13.1.901-0ubuntu2) raring; urgency=low

  * Add 237_dix_save_touchpoint_last_coords_before_transform.patch:
    Fix sensitive touch settings on Nexus 7 when input is transformed.
    (LP: #1075415, #1076567, #1076627)
 -- Bryce Harrington <email address hidden> Tue, 22 Jan 2013 13:51:16 -0800

Changed in xorg-server (Ubuntu):
status: In Progress → Fix Released
Jani Monoses (jani)
Changed in ubuntu-nexus7:
status: Fix Committed → Fix Released
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.