Skip to content

Interaction of fake deep sleep, boot.py, & supervisor.runtime.display #10070

Open
@jepler

Description

@jepler

Recent #10062 added support for the supervisor.runtime.display property, which holds a reference to a designated primary display.

For deep sleep, displays are released. For fake deep sleep, the C function board_init() is called so as to simulate the board reset sequence. However, boot.py is not re-run in the case of fake deep sleep.

A consequence of this is that supervisor.runtime.display will be cleared for fake deep sleep, and the display will not be available when fake deep sleep finishes and code.py is restarted.

This reduces the benefit of using boot.py to set up a display on projects that use deep sleep.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions