Sync HDMI CEC volume events with ALSA mixer.
Ever wanted to control the volume of speakers attached to Raspberry PI with your TV remove? This project will help you.
The following software needs to be installed:
- libcec
- alsa-utils
- Node
Install cec-alsa-volume with
npm install -g cec-alsa-volume
cec-alsa-volume --min-volume 0 --max-volume 100 --mixer-device "hw:0" --mixer-name "PCM" --name "RaspberryPI"
This is tested to work with a RaspberryPI and a LG TV. There might be issues with other devices as HDMI CEC is not the most interoperable standard.