feat(oled): add safer sleep and idle status carousel - #858
Draft
SiYue-ZO wants to merge 1 commit into
Draft
Conversation
Validate and atomically persist OLED sleep settings, while using a 60-second default when no configuration exists. Reset idle and carousel deadlines when the setting changes. Move display power transitions into the OLED thread so sleep disables the panel and charge pump, wake-up renders a complete frame before enabling the panel, and manual, event, Wi-Fi, and shutdown policies no longer share UI page state. Use monotonic timing so NTP synchronization cannot trigger immediate carousel or sleep. Rotate network, video, and session information with pixel shifting on long-idle Cube displays. Publish active stream viewer counts through a stale-safe runtime heartbeat while preserving the legacy PCIe layout.
SiYue-ZO
force-pushed
the
feat/oled-power-management
branch
from
August 5, 2026 19:42
8708757 to
895dcdf
Compare
SiYue-ZO
marked this pull request as draft
August 6, 2026 03:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
0still disables automatic sleep.Never, 30-minute, and one-hour modes enter the carousel after 15 minutes of local inactivity. Pages rotate every six seconds and periodically shift position to reduce fixed-pixel exposure.Nevercontinues rotating without automatically turning the display off.Compatibility
POST /api/vm/oledacceptssleep, andGET /api/vm/oledreturnsexistandsleep.0or 10–3600 seconds on both the server andkvm_systemsides.0, are preserved./etc/kvm/oled_sleepnow use a 60-second default. This is an intentional behavior change./run/nanokvm; missing or stale state is treated as zero.Related to #835.
Partially addresses #105.