Skip to content

feat(nx-service-applet): hold off the console's automatic sleep - #166

Merged
LNSD merged 1 commit into
mainfrom
lnsd/applet-auto-sleep
Aug 17, 2026
Merged

LNSD merged 1 commit into
mainfrom
lnsd/applet-auto-sleep

Conversation

@LNSD

@LNSD LNSD commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

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

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>
@LNSD
LNSD added this pull request to the merge queue Aug 17, 2026
Merged via the queue into main with commit 10bab3a Aug 17, 2026
4 checks passed
@LNSD
LNSD deleted the lnsd/applet-auto-sleep branch August 17, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant