Skip to content

feat: a command for the TV when going back to the PC - #213

Merged
lippdev merged 2 commits into
mainfrom
feat/tv-restore-command
Nov 17, 2026
Merged

lippdev merged 2 commits into
mainfrom
feat/tv-restore-command

Conversation

@lippdev

@lippdev lippdev commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Closes #209. Builds on #208 (TV control back), whose commit shows here until #208 merges; merge #208 first.

What

PLEXX-DE asked (issue #209, discussion #154) for the TV to go somewhere other than standby when the desk comes back: its Home screen, or another HDMI input.

  • System → TV → Command when going back to the PC (advanced): an Android shell command, empty by default, shown with the other Android TV fields (placeholder input keyevent 3, the Home key).
  • When the desk is back, the TV gets that command first, then standby if Put the TV in standby on restore is on. With neither, nothing is sent, as before. AdbProtocol.RestoreCommands decides the list (pure, tested); AndroidTvController.RestoreAsync sends them on one connection, a second apart. The engine's TurnOff became Restore, called when TvControlConfig.HasRestoreStep.
  • TvControlConfig.RestoreCommand is a new setting; Legacy keeps it untouched in config.json (feat: the Legacy build (1.6.2 that keeps the current app's settings) #200).
  • String in the six catalogs; a paragraph in the six guides' TV section; changelogs; docs/TESTING.md.

Testing

  • dotnet test: 678 passing (1 new). Debug build OK.
  • On a TV: pending (the owner has the TV at home; PLEXX-DE's Skyworth uses an am start … input command). Not to be merged before that.

🤖 Generated with Claude Code

lippdev and others added 2 commits November 11, 2026 17:10
A user confirmed ADB input switching works on a Coocaa/Skyworth TV,
even from deep sleep, with a custom input command (#207).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
System -> TV gets an optional Android shell command sent when the desk
comes back, before standby: the TV's Home screen (input keyevent 3) or
another input instead of only turning it off. AdbProtocol.RestoreCommands
lists what is sent (the command, then standby if on); with neither,
nothing is sent, as before.

Closes #209.

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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes The new restore command path, persistence and settings UI, ADB command ordering, localization, documentation, and test coverage were reviewed.

  • TV restore behavior Adds an optional Android shell command before optional standby, sent over one ADB connection after the desk is restored.
  • Settings and documentation Adds the setting to the UI and language catalogs, and documents it in guides, changelogs, and the manual TV checklist.

Pullfrog  | View workflow run | Using gpt-6-luna | 𝕏

@lippdev
lippdev changed the base branch from feat/bring-back-tv-control to main November 16, 2026 13:42
@lippdev
lippdev merged commit 56d7a0a into main Nov 17, 2026
2 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.

Optional Setting to switch TV to different HDMI channel after restoring

1 participant