Fix CEC adapter selection and add --adapter flag#83
Closed
daptify14 wants to merge 3 commits into
Closed
Conversation
- Fix bug where last CEC adapter was used instead of first - Add --adapter/-a flag to specify CEC device path explicitly - Addresses dual HDMI port issues on Raspberry Pi 4 - Use first adapter by default instead of last Fixes adapter selection on systems with multiple CEC adapters (/dev/cec0, /dev/cec1) where TV is typically on primary port. Usage: python -m pycec # Uses first adapter (fixed) python -m pycec --adapter /dev/cec0 # Uses specified adapter
- Replace setup.py with pyproject.toml (hatchling build system) - Add GitHub Actions workflow to build wheel on tags - Supports Markdown README (was the original install issue)
mgm-pvranik
approved these changes
Jan 22, 2026
konikvranik
approved these changes
Jan 22, 2026
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.
Fix for adapter selection issues and adds better control over CEC adapter usage. Current adapter detection logic always opens connection to the last detected adapter when more than one is discovered.
Changes:
--adapteror-a) to explicitly specify which CEC device path to useFixes #79