Skip to content

fix: v0.9.0 freezes the console after a while at the menu; 0.9.1 - #81

Merged
michvllni merged 2 commits into
mainfrom
fix/lcd-session
Nov 9, 2026
Merged

michvllni merged 2 commits into
mainfrom
fix/lcd-session

Conversation

@michvllni

Copy link
Copy Markdown
Collaborator

Problem

v0.9.0 freezes the whole console after the app has sat at the menu for a while: no input is taken any more, HOME included. Seen on a 2DS, once after a sync and once after pressing START while a run was connecting. Luma recorded no crash dump, so it is a hang rather than a crash. The build before #80 does not freeze.

Cause

#80 opened two system services in componentsInit() and held them until the app quit: ptm:u, to read the lid, and gsp::Lcd, to switch the backlights while the lid is closed during a review-first sync. The system uses gsp::Lcd itself, among other things to dim the screens after a while without input. With the app holding a session, the system blocks.

Fix

  • ptm:u is opened by watchLid() when the unattended pass of a review-first sync starts, and closed when it ends.
  • gsp::Lcd is opened by setBacklights() for each backlight call and closed at once.
  • The lid behaviour during that pass is unchanged.
  • AGENTS.md: the note on unattended transfers says neither service is held open, and why.
  • APP_VERSION is now 0.9.1. Tag the merge commit v0.9.1 to release.

Testing

  • On a 2DS: the fix build stays responsive after a sync and after a cancelled connect, both of which froze v0.9.0.
  • make builds clean, and make -C tests passes (322 tests).
  • Not tried: a review-first sync (B) with the sleep switch or lid closed, to see the backlights go off and come back.

🤖 Generated with Claude Code

michvllni and others added 2 commits November 9, 2026 20:27
- v0.9.0 opened both services in componentsInit() and held them until
  exit.  On a 2DS the whole console then froze after a while at the menu,
  HOME included, with no crash dump; the build before #80 did not.  The
  system needs those sessions itself (dimming the screens after a while
  without input, among other things).
- ptm:u is now opened by watchLid() for the unattended pass of a
  review-first sync only, and gsp::Lcd by setBacklights() for each call.
  The lid behaviour during that pass is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- v0.9.0 freezes the console after a while at the menu; 0.9.1 carries
  the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michvllni
michvllni merged commit 1d621ef into main Nov 9, 2026
7 checks passed
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