Skip to content

Sleep function #12

@mat02

Description

@mat02

Hi!
I'm trying to invoke sleep mode from my app to save battery. However, inkview.Sleep() returns immediately (both normal and deep option) and doesn't appear to do anything.
I tried calling it from coroutines, from main event handler and even from main event loop handler wrapper in C, but the result is the same. IsTaskActive, when checked right before invoking sleep, returns 1. SleepMode also returns nonzero value.
Does anyone know what is the correct sequence to invoke sleep?
My usecase is that I only need to refresh data once in an hour or so (displaying calendar agenda). I thought that I could put the device to sleep in-between updates and extend the battery life.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions