Keyboard orientation incorrect when brought up by side stage app

Bug #1251330 reported by Thomas Moenicke
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
ubuntu-keyboard
Fix Released
Critical
Daniel d'Andrada
qtubuntu (Ubuntu)
Invalid
Critical
Daniel d'Andrada
ubuntu-keyboard (Ubuntu)
Fix Released
Undecided
Daniel d'Andrada
unity-mir (Ubuntu)
Invalid
Critical
Daniel d'Andrada

Bug Description

When running an app in side stage, e.g. messaging-app, and holding the tablet in landscape mode, it reports Portrait as current orientation, which causes the virtual keyboard to show up like it would be in portrait mode, at the left side of the screen.

Related branches

Revision history for this message
Gerry Boland (gerboland) wrote :

This is correct behaviour.

With tablet device in landscape, the main stage app is in landscape, but the side stage app should be considered in portrait orientation. This is to have the sidestage closely emulate the phone environment.

I expect the OSK needs to be made aware if app is in sidestage mode, and adjust its behaviour accordingly.

Changed in qtubuntu:
status: New → Invalid
summary: - app reports wrong contentOrientation when running in side stage
+ Keyboard orientation incorrect when brought up by side stage app
Revision history for this message
Roman Zonov (roman2861) wrote :
Changed in qtubuntu:
status: Invalid → New
Revision history for this message
Bill Filler (bfiller) wrote :

It is not correct that the orientation reports itself in portrait mode when the device is actually in landscape mode. The orientation should be consistent per the device orientation and another mechanism should be used to report if the app is in sidestage mode. We shouldn't overload orientation here.

Changed in qtubuntu:
assignee: nobody → Ricardo Mendoza (ricmm)
importance: Undecided → Critical
Changed in unity-mir (Ubuntu):
importance: Undecided → Critical
assignee: nobody → Gerry Boland (gerboland)
Revision history for this message
Gerry Boland (gerboland) wrote :

> This is correct behaviour.
By this I think that qtubuntu is doing the right thing. Not that this isn't a bug. I suspect that the OSK needs to be able to decide the correct orientation itself

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Not sure what will be the fix (and component affected) yet but I'm on it.

Changed in unity-mir (Ubuntu):
assignee: Gerry Boland (gerboland) → Daniel d'Andrada (dandrader)
Changed in ubuntu-keyboard:
assignee: nobody → Daniel d'Andrada (dandrader)
status: New → In Progress
Changed in unity-mir (Ubuntu):
status: New → In Progress
Changed in qtubuntu:
assignee: Ricardo Mendoza (ricmm) → Daniel d'Andrada (dandrader)
status: New → In Progress
Changed in qtubuntu:
status: In Progress → Invalid
Changed in unity-mir (Ubuntu):
status: In Progress → Invalid
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

This bug is in maliit-framework and gets fixed by upstream git commit ea4ed5ec38704264e787631b89b1aba62c72049a ("Inputcontext to properly notify orientation with native portrait displays").

No idea how to tie this bug to lp:phablet-extras/maliit-framework (which is where we hold your modified copy of maliit-framework) though.

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

> No idea how to tie this bug to lp:phablet-extras/maliit-framework (which is where we hold your modified copy of maliit-framework) though.

Thus leaving the ubuntu-keyboard bug active as a placeholder. Please advise.

Revision history for this message
Bill Filler (bfiller) wrote :

The code is packaged now here:
lp:ubuntu/maliit-framework

we need to cherry pick git commit ea4ed5ec38704264e787631b89b1aba62c72049a from https://github.com/maliit/framework and update the package.

Changed in ubuntu-keyboard:
importance: Undecided → Critical
assignee: Daniel d'Andrada (dandrader) → Sergio Schvezov (sergiusens)
Revision history for this message
Bill Filler (bfiller) wrote :

@dandrader
Tested out sergio's branch with the commit applied https://code.launchpad.net/~sergiusens/ubuntu/trusty/maliit-framework/1251330. Indeed it fixes the tablet. But breaks phone. Keyboard is rotated on the right side of screen and not in correct orientation. Any ideas how to fix this?

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

> Tested out sergio's branch with the commit applied https://code.launchpad.net/~sergiusens/ubuntu/trusty/maliit-framework/1251330. Indeed it fixes the tablet. But breaks phone. Keyboard is rotated on the right side of screen and not in correct orientation. Any ideas how to fix this?

I was afraid of that as I didn't test it on a phone. Sorry.
I'm flashing my Galaxy Nexus (maguro) now to investigate.

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Taking back. Seems like we also have to update ubuntu-keyboard.

Changed in ubuntu-keyboard:
assignee: Sergio Schvezov (sergiusens) → Daniel d'Andrada (dandrader)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-keyboard - 0.99.trunk.phablet2+14.04.20140206-0ubuntu1

---------------
ubuntu-keyboard (0.99.trunk.phablet2+14.04.20140206-0ubuntu1) trusty; urgency=low

  [ Bill Filler ]
  * Remove legacy code and files: the old language xml files, deprecated
    LayoutUpdater usage, old layouting.

  [ Daniel d'Andrada ]
  * Fixes mapping between rotation angles and screen orientations Code
    was assuming that primary screen orientation was always landscape.
    (LP: #1251330)

  [ Thomas Moenicke ]
  * Remove legacy code and files: the old language xml files, deprecated
    LayoutUpdater usage, old layouting.

  [ Łukasz 'sil2100' Zemczak ]
  * Add a free, open ebook for the polish keyboard plugin for the
    database - one released on a CC BY-SA 3.0 license.
 -- Ubuntu daily release <email address hidden> Thu, 06 Feb 2014 16:59:31 +0000

Changed in ubuntu-keyboard (Ubuntu):
status: New → Fix Released
Revision history for this message
Ari Hannula (ari-hannula) wrote :

After upgrading to ubuntu-keyboard_0.99.trunk.phablet2+14.04.20140213-0ubuntu1_armhf and maliit-framework_0.99.0+git20130615+97e8335-0ubuntu6_armhf, keyboard is sometimes shown in landscape (on the right side) although my app is always in portrait. Using Nexus 4.

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Hi Ari,

That would be a new, different bug.
If you have consistent steps to reproduce it, please make a bug report about it.

Thanks!

Changed in ubuntu-keyboard:
status: In Progress → Fix Released
Changed in ubuntu-keyboard (Ubuntu):
assignee: nobody → Daniel d'Andrada (dandrader)
Michał Sawicz (saviq)
affects: qtubuntu → qtubuntu (Ubuntu)
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.