4

How can I configure my webapp so the screen won't go to sleep when the app is open? This would be useful for the youtube webapp

Merlijn Sebrechts
  • 7,215
  • 1
  • 42
  • 67
  • https://open.uappexplorer.com/ < there is a tool in there"tweekgeek" that can let you keep an app running in the application settings feature of it – Mateo Sep 06 '15 at 00:48

1 Answers1

1

Add the policy "keep-display-on" in the .apparmor file. This should be enough. See an example below:

{
    "template": "your-webapp",


    "policy_groups": [
        "networking",
        "webview",
        "audio",
        "video",
        "keep-display-on"
    ],


    "policy_version": 16.04
}
Magnetuz
  • 26
  • 3