feat(tv): USB-CEC route (Pulse-Eight adapter through libCEC's cec-client) - #96
Draft
nextestudios wants to merge 6 commits into
Draft
nextestudios wants to merge 6 commits into
nextestudios wants to merge 6 commits into
Conversation
… / Android TV) Settings → TV: console mode wakes the TV and switches it to the PC's HDMI input before the display flow, and can put it in standby after the restore. First provider: Google TV / Android TV through ADB (port 5555), with a small in-process ADB client (auth with this PC's RSA key, shell key events), so nothing has to be installed on the PC. Optional Wake-on-LAN for TVs that drop off the network in standby, and a custom input command for TVs that ignore the HDMI key codes. A TV that doesn't answer is only logged. Refs lippdev#75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ent) Runs cec-client -s -t p -p <input> with "on 0" then "as" (Active Source) to wake the TV on the PC's input, and "standby 0" on restore. Finds cec-client in libCEC's install folders or on the PATH (or a custom path), and explains a missing adapter or client. Refs lippdev#75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Fourth route for #75: real HDMI-CEC through a Pulse-Eight USB-CEC adapter, the "most reliable, needs extra hardware" option from the issue. Works with any CEC TV (Anynet+, Bravia Sync, SimpLink…), no network involved.
cec-client.exe(the user installs libCEC, which also brings the adapter driver), so there's no native library to bundle or P/Invoke:cec-client -s -d 1 -t p -p <input>withon 0thenas(Active Source, so the TV switches to the port the adapter is on);standby 0on restore.cec-client.exeinProgram Files (x86)/Program Files→Pulse-Eight\USB-CEC Adapter, then the PATH, or a custom path (file or folder). Settings shows which one will be used.cec-clientcard; strings in pt-BR / en-US / es-ES.CecCommands.cs, linked into the tests.docs/TESTING.md§3f, changelog under[Unreleased].Validation
CecCommandsTests(arguments per port with clamping, commands, adapter-missing detection, custom path as file or quoted exe, default search order).dotnet testare left to CI.docs/TESTING.md§3f.🤖 Generated with Claude Code