Repository navigation
feat(nx-service-applet): hold off the console's automatic sleep - #166
Merged
Merged
Conversation
A program waiting on a host is exactly what the idle timer reads as nobody being there, and a console that sleeps takes its network down with it, so a run breaks off reporting no console rather than a result. - `SelfController::set_auto_sleep_disabled` issues ISelfController cmd 68, in the bool-in/no-out shape the crate's other setters already use - The HOS 5.0.0 floor is checked in `nx-rt-core` rather than here: no firmware version reaches below the runtime, so the primitive stays version-agnostic like its 2.0.0 sibling and says so - The command carries no applet-type restriction, only a version one, so it dispatches through `get_self_controller()` instead of the `Application` typestate its neighbours go through - `appletSetAutoSleepDisabled` now resolves to `__nx_rt_core__libnx_applet_set_auto_sleep_disabled` through the applet override fragment Signed-off-by: Lorenzo Delgado <lnsdev@proton.me>
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.
A program waiting on a host is exactly what the idle timer reads as nobody being there, and a console that sleeps takes its network down with it, so a run breaks off reporting no console rather than a result.
SelfController::set_auto_sleep_disabledissues ISelfController cmd 68, in the bool-in/no-out shape the crate's other setters already usenx-rt-corerather than here: no firmware version reaches below the runtime, so the primitive stays version-agnostic like its 2.0.0 sibling and says soget_self_controller()instead of theApplicationtypestate its neighbours go throughappletSetAutoSleepDisablednow resolves to__nx_rt_core__libnx_applet_set_auto_sleep_disabledthrough the applet override fragment