{"repo":"jlian/cec_auto_audio","free":true,"listed":false,"github":"https://github.com/jlian/cec_auto_audio","clone":"git clone https://github.com/jlian/cec_auto_audio.git","description":"Python helper to send proper HDMI-CEC frame to wake up AVR","language":"Python","stars":30,"topics":["denon-avr","hdmi-cec","raspberry-pi","samsung-tv"],"license":"MIT","category":"analytics","readme_excerpt":"Auto-enable system audio mode when switching HDMI-CEC sources Automatically wake up your AVR and enable System Audio Mode when switching to gaming consoles or media players via HDMI-CEC. Why this exists When you turn on a console connected via HDMI-CEC, your TV switches inputs automatically, but the AVR often doesn't wake up or enable System Audio Mode - leaving you with TV speakers. This script monitors CEC traffic and sends the necessary command to activate your audio system. Features - Watches CEC bus passively without interfering - Only acts when playback devices (consoles) become active - Cancels injection if the system resolves naturally - Rate-limited to prevent command spam - Dry-run mode for testing Requirements - A Raspberry Pi (or some other CEC-capable device) connected to your AVR or TV with HDMI (USB-HDMI adaptors won't work) on the CEC-enabled port (usually 0) - Python 3.6+ - cec-client from libCEC: sudo apt-get install cec-utils Installation Configuration Edit these variables in cec auto audio.py : Find your device addresses: echo 'scan' cec-client -s -d 1 Usage Run the script: The script monitors CEC traffic and automatically sends System Audio Mode Request ( tx 15:70:00:00 ) when needed. You can temporarily set DRY RUN = True while sniffing behavior; you’ll see log lines like: Once you’re happy, flip DRY RUN = False . Running as a systemd service On the device, create a service file: Example unit: Then: Because we print both our own [INFO] / [AUTO] lines and","default_branch":null,"files":null,"tree":[],"storefront":"/r/jlian","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jlian/cec_auto_audio/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}