add keep_screen_on feature to orbic devices#919
Open
PapiJalopy wants to merge 2 commits intoEFForg:mainfrom
Open
add keep_screen_on feature to orbic devices#919PapiJalopy wants to merge 2 commits intoEFForg:mainfrom
PapiJalopy wants to merge 2 commits intoEFForg:mainfrom
Conversation
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.
Summery
Adds a toggleable keep-screen-on feature that prevents the device display from sleeping. When enabled the daemon detects when the display has entered its sleep state and re-enables it by toggling display sysfs nodes.
Addresses #916 #539
Changes
Adds a toggle in the web UI,
Adds keep_screen_on: bool to config (default is false).
Adds a checkbox and tip to the configuration page.
When
keep_screen_onis enabled, spawns a watchdog task that, polls display sysfs state (sleep_mode,bl_gpio,display_on).If display is blanked (
sleep_mode == 0andbl_gpio == 0), writes1todisplay_on,bl_gpio, andsleep_mode.No behavior change unless the option is enabled
Documents the new config option in the
config.toml.intemplate and the configuration docs.Testing
Verified source builds.
Verified binary installs.
Verified toggle is visible in web UI.
With
keep_screen_on = true, the screen no longer stays blanked after the normal timeout.With
keep_screen_on = false, behavior matches current upstream behavior.Pull Request Checklist
cargo fmt.