Orientation sensor is kept on even when the display is off

Bug #1375297 reported by Daniel d'Andrada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Canonical Devices Products
qtmir (Ubuntu)
Fix Released
High
Josh Arenson
qtmir (Ubuntu RTM)
Fix Released
High
Michał Sawicz

Bug Description

The orientation sensor is kept on even when the display is off.

Steps to reproduce:

1 - make sure qtmir logging is all enabled (it currently is by default)
2 - turn off the display
3 - rotate the device

Expected outcome:
Nothing new gets printed in unity8.log

Actual outcome:

You get output like this:
"""
qtmir.sensor: Screen::onOrientationReadingChanged
qtmir.sensor: Screen::customEvent - new orientation 8 handled
"""

This bug has a FIXME item in qtmir code, in src/platforms/mirserver/screen.cpp:
"""
// FIXME: nothing is using this method yet, but we should turn off sensors when display is off.
void Screen::toggleSensors(const bool enable) const
"""

Tags: ota-1 rtm14

Related branches

kevin gunn (kgunn72)
tags: added: rtm14
Revision history for this message
Victor Tuson Palau (vtuson) wrote :

kevin - I imagine this stop sensors from turning off and hence has an impact on battery life? If so I think this should be a high bug

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

@vtuson

Yes, it should impact battery life negatively.

kevin gunn (kgunn72)
Changed in qtmir:
importance: Undecided → High
tags: added: touch-2014-11-06
Changed in qtmir:
assignee: nobody → Josh Arenson (josharenson)
Changed in qtmir:
status: New → Confirmed
Changed in qtmir:
status: Confirmed → In Progress
kevin gunn (kgunn72)
tags: added: ota-1
removed: touch-2014-11-06
Changed in qtmir (Ubuntu):
assignee: nobody → Josh Arenson (josharenson)
Changed in qtmir (Ubuntu RTM):
assignee: nobody → Josh Arenson (josharenson)
Changed in qtmir (Ubuntu):
importance: Undecided → High
Changed in qtmir (Ubuntu RTM):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtmir - 0.4.4+15.04.20141110-0ubuntu1

---------------
qtmir (0.4.4+15.04.20141110-0ubuntu1) vivid; urgency=low

  [ Michael Zanetti ]
  * Use QSGDefaultImageNode instead of QSGSimpleTexture to gain surface
    manipulation features such as antialiasing (LP: #1351559)

  [ josharenson ]
  * Add support for enabling/disabling orientation sensor based on
    screen power state. (LP: #1375297)
 -- Ubuntu daily release <email address hidden> Mon, 10 Nov 2014 09:41:58 +0000

Changed in qtmir (Ubuntu):
status: New → Fix Released
Michał Sawicz (saviq)
Changed in qtmir (Ubuntu RTM):
status: New → In Progress
assignee: Josh Arenson (josharenson) → Michał Sawicz (saviq)
Olli Ries (ories)
Changed in canonical-devices-system-image:
assignee: nobody → Canonical Devices Products (canonical-devices-products-team)
importance: Undecided → High
milestone: none → r1
status: New → Confirmed
Michał Sawicz (saviq)
Changed in qtmir (Ubuntu RTM):
status: In Progress → Triaged
assignee: Michał Sawicz (saviq) → nobody
milestone: none → 14.09-ota-1
Changed in qtmir:
status: In Progress → Fix Released
Michał Sawicz (saviq)
Changed in qtmir (Ubuntu RTM):
status: Triaged → In Progress
assignee: nobody → Michał Sawicz (saviq)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtmir - 0.4.4+15.04.20141208~rtm-0ubuntu1

---------------
qtmir (0.4.4+15.04.20141208~rtm-0ubuntu1) 14.09; urgency=medium

  [ josharenson ]
  * Add support for enabling/disabling orientation sensor based on
    screen power state. (LP: #1375297)
 -- Ubuntu daily release <email address hidden> Mon, 08 Dec 2014 09:35:48 +0000

Changed in qtmir (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: Confirmed → Fix Released
Michał Sawicz (saviq)
no longer affects: qtmir
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.