[How to do instruction] Configure a USB DAC with infrared to control MoOde on a RPi - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] Configure a USB DAC with infrared to control MoOde on a RPi (/showthread.php?tid=346) |
Configure a USB DAC with infrared to control MoOde on a RPi - jv275475 - 07-23-2018 I use moOde on a Raspberry Pi 3B, with a USB DAC (Arcam irDAC) that has an infra-red receiver. The DAC has a remote control where I can press play, stop, next song, etc. and this sends commands over USB to the Pi. Please note the infra-red receiver is embedded in the DAC, the infra-red receiver is NOT connected directly to the Pi. I have seen other threads that deal with that case. I have tested the instructions below successfully in MoOde 4, then on MoOde 4.2. 1. Install necessary packages Code: sudo apt-get -y install lirc 2. Unplug and re-plug USB DAC to trigger udev rules 3. Check input with ir-keytable: Code: ir-keytable -vtd /dev/input/event0 Example: Code: pi@moode:~ $ ir-keytable -vtd /dev/input/event0 4. In file /etc/lirc/lirc_options.conf, change the line "device" to point to the device: Code: device = /dev/input/event0 5. Replace the content of file /etc/lirc/irexec.lircrc with the following: Code: begin 6. Restart the services: Code: sudo systemctl restart lircd 7. Check lircd and irexec are running: Code: pi@moode:/etc/lirc $ ps -ef | grep irc NOTE: irw can be used for troubleshooting, a line should appear after each key press on the remote: Code: pi@moode:/etc $ irw For more info: http://www.lirc.org/html/configuration-guide.html |