Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jepler opened this issue Feb 16, 2025 · 0 comments
Open

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

jepler opened this issue Feb 16, 2025 · 0 comments

Comments

@jepler
Copy link
Member

jepler commented Feb 16, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants