Skip to content

feat(quickmenu): Streaming status toggle, Task Manager and Hibernate PC - #93

Open
xservzeroman wants to merge 4 commits into
docs/contributingfrom
feat/quickmenu-pc-tools
Open

xservzeroman wants to merge 4 commits into
docs/contributingfrom
feat/quickmenu-pc-tools

Conversation

@xservzeroman

Copy link
Copy Markdown

Three new items in the in-game Quick menu.

Changelog

  • Streaming status (PC, PS5, Xbox): a toggle that turns the stats corner on or off right away and saves it as Settings' "Stats while playing" (checkbox_enable_perf_overlay).
    • PC: flips prefConfig.enablePerfOverlay and Moonlight's performanceOverlay view (the decoder reads the same config object).
    • PS5 and Xbox: new home/StatusCorner.kt, a one-line corner fed by each player's Quick menu stats, refreshed every second, hidden until the first numbers arrive.
  • Task Manager (PC): sends Ctrl + Shift + Esc (Windows virtual keys with Moonlight's 0x80 prefix). Windows only.
  • Hibernate PC (PC): a confirm with Cancel first (selected), then Win + X, U, H. Windows only, and only when Hibernate is enabled in Power Options. A stream that ends within 60 s of it finishes quietly with " is hibernating" instead of the error dialog.
  • Build: test238. Lint: 0 errors.

To test

  • Quick menu, Streaming status, on a PC, PS5 and Xbox stream: the corner appears and disappears, and the choice is still there next stream.
  • On a Windows PC: Task Manager opens; Hibernate PC asks first, Cancel returns to the game, Hibernate puts the PC to sleep and MoonCast goes home without an error.

🤖 Generated with Claude Code

…PC (test238)

Streaming status flips the stats corner on PC, PS5 and Xbox (new StatusCorner for
PS5 and Xbox) and saves it as Stats while playing. PC only: Task Manager sends
Ctrl+Shift+Esc; Hibernate PC asks first (Cancel picked), then sends Win+X, U, H, and
the stream ending within a minute after that is not reported as an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…endent (test239)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xservzeroman

Copy link
Copy Markdown
Author

test239: Ahmed tested test238 — Streaming status and Task Manager work, Hibernate PC didn't. Hibernate now uses Run (Win + R) + shutdown /h sent as text, so it doesn't depend on the keyboard layout or Windows language, or on Hibernate being listed in the power menu.

🤖 Generated with Claude Code

@xservzeroman

Copy link
Copy Markdown
Author

✅ test239 on Ahmed's Windows PC: Hibernate PC (Run + shutdown /h) works. With test238's results, all three items are verified: Streaming status, Task Manager, Hibernate PC.

🤖 Generated with Claude Code

…y (test240)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xservzeroman

Copy link
Copy Markdown
Author

Correction: test239's Hibernate did NOT work from the Quick menu (typing shutdown /h in Run by hand works). Ahmed: the Run box never opened, so Win + R isn't reaching the PC (likely the game blocking the Windows key). test240 uses Ctrl + Esc to open Start instead, then types shutdown /h into search and presses Enter.

🤖 Generated with Claude Code

…video (test242)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xservzeroman

Copy link
Copy Markdown
Author

Ahmed, test240/241: ✅ Hibernate PC (Ctrl + Esc, Start search, shutdown /h) hibernates the PC. But MoonCast stayed on a frozen picture. test242: after Hibernate, 3 s without a new frame plus no answer on the PC's http port ends the stream with " is hibernating" (no quit sent). Also reported: after waking, Steam Big Picture started fresh instead of resuming — under investigation (whether Sunshine still reports the app running after resume).

🤖 Generated with Claude Code

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.

2 participants