← Back to team overview

touch-packages team mailing list archive

Re: [Bug 1462489] Re: Allow apps to keep the screen on

 

On 06/08/2015 01:37 PM, costales wrote:
> THanks Jamie,
> It's OK the user question :)
> 
> This is a QML container for a web, then should I to add the media-hub for
> this kind of app? Is it just that?
> 
As a developer, I think it is all supposed to be transparent-- ie, you use
regular QML, an UbuntuWebview or Oxide Webview and under the hood media-hub is
used. Today, that should work fine for Audio{}/etc it is just that with the
UbuntuWebview and Oxide Webview that under the hood work is in progress.

> Thanks in advance!
> 
> 
> On Monday, June 8, 2015, Jamie Strandboge <jamie@xxxxxxxxxx> wrote:
>> On 06/08/2015 12:17 PM, costales wrote:
>>> I made GPS Navigation app. I need to config the idle screen for use this
>>> app each time :(
>>> I'd need to set the screen = ON always.
>>>
>> FYI, the suggested implementation in the bug is to ask the user the first
> time
>> the app tries to inhibit the screen turning off if it is ok to do this--
> after
>> that the answer will be remembered (and thereafter adjustable in system
>> settings). I don't know if this will be the actual implementation, but
> the idea
>> is to solve your issue when it is implemented.
>>
>> ...
>>
>>> For a video apps it would be useful too.
>>>
>> Video apps should be using media-hub which already has the ability to
> inhibit
>> the screen turning off. Webapps needing this are waiting for work that is
> in
>> progress to make media-hub work with oxide, but that is coming.
>>
>> --
>> Jamie Strandboge             | http://www.ubuntu.com
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1462489
>>
>> Title:
>>   Allow apps to keep the screen on
>>
>> To manage notifications about this bug go to:
>>
> https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/1462489/+subscriptions
>>
> 


-- 
Jamie Strandboge             | http://www.ubuntu.com

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

Title:
  Allow apps to keep the screen on

Status in apparmor-easyprof-ubuntu package in Ubuntu:
  Confirmed
Status in ubuntu-system-settings package in Ubuntu:
  Confirmed
Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed
Status in unity8 package in Ubuntu:
  Confirmed

Bug description:
  Support an interface in QML and HTML to allow an app to keep the
  screen on while the app is active. This has come up in several
  scenarios, such as an ebook reader, a clock in night mode.

  One solution to inhibit the screen blanking:

  Add a new dbus rule to the default template
  Provide a mediator (unity8) to control this, so it can restore the screen blanking when the app is not active or has been closed
  Prompt the user for confirmation the first time the app accesses it
  use the trust store to avoid prompts each time
  add to the System settings Other app access panel an entry for Screen or Display so the setting could be revoked

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/1462489/+subscriptions


Follow ups

References