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

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
}