Skip to content

wakelock == 1 not preventing screen from locking on sdl2 #1061

@brentpicasso

Description

@brentpicasso

After migrating to Kivy 1.10 / latest p4a I'm seeing the case where android device is not staying awake where it should be.

wakelock == 1 (android.wakelock = True in buildozer.spec) and android permissions include WAKE_LOCK.

our buildozer.spec file has not changed in this area when it was built for 1.9.1, and wakelock was working as expected.

I hacked PythonActivity.java to output some debug information if it chose the branch to set wakelock, and I was able to see it setting the wakelock in action. See screenshots:

image

image

Running latest buildozer / kivy / py4a

Let me know how else I can help debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions