← Back to team overview

touch-packages team mailing list archive

[Bug 1500633] Re: orientation sensor "last vertical" seems to be remembered and applied

 

This sounds like the expected behavior if you ask me...

The sensors have a threshold so they don't keep on flipping between
portrait/landscape when the device is flat on the table. If you hold it
in portrait and place it flat on the desk it will stay in portrait, if
you hold it in landscape and then place it flat down, it'll stay in
landscape.  In unity8 we don't read actual sensor values ourselves, but
we get a clear "Landscape" or "Portrait" from the lower layers (qtmir I
think fills in the Screen.orientation value).

The above steps to reproduce do this:

* Put sensors in Portrait
* place it down flat (sensors stay in portrait as expected)
* focus a rotation-locked application which will cause unity8 to ignore the sensors.
* put the sensors in landscape
* place it down flat (sensors stay in landscape as expected)
* focus a rotation-enabled app, which will cause unity8 to regard the sensors, and thus rotate to landscape.

In order to get away with it, it seems a back-channel from unity8 down
to QtMir and QtUbuntu would be needed in order to really turn off the
sensor logic while a rotation-locked app is focused. I for one still
think the way it currently works is quite expected tho. After all you
did hold it up in portrait and instructed the sensors to rotate to
portrait. Unity8 will execute that request as soon as possible.

** Changed in: unity8 (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1500633

Title:
  orientation sensor "last vertical" seems to be remembered and applied

Status in QtMir:
  Incomplete
Status in qtmir package in Ubuntu:
  Incomplete
Status in unity8 package in Ubuntu:
  Incomplete

Bug description:
  latest rc-image

  1. download and install machines vs machines
  2. open machines vs machines
  3. open browser, rotate to landscape
  4. lay flat on table so that browser is still in landscape
  5. switch back to machines vs machines with launcher
  6. raise top of phone as to make the phone vertical in portrait, lay back down flat
  7. switch to browser

  expected: browser would be in landscape
  actual: browser rotates

To manage notifications about this bug go to:
https://bugs.launchpad.net/qtmir/+bug/1500633/+subscriptions