I am running Plexamp Headless (v4.11.0). My Raspberry Pi has a HiFiBerry Digi2 Pro. My Audio Device needs to be set to ‘snd_rpi_hifiberry_digi: HiFiBerry Digi+ Pro HiFi wm8804-spdif-0’ in order for it to work, I have an optical cable to my Marantz receiver.
Many times this will change on it’s own, usually to ‘vc4-hdmi-0: MAI PCM i2s-hifi-0’ or ‘vc4-hdmi-1: MAI PCM i2s-hifi-0’. After this happens, trying to play any music nothing plays and I am back at the home page.
This has been happening for multiple versions of Plexamp Headless. I tried to get log files, but under Setting > Debugging there is no option to download logs.
This usually happens after I ssh into the Raspberry Pi and run ‘sudo apt-get update && sudo apt-get upgrade’ or ‘sudo reboot’.
the card number for a linux audio device can change after reboots and other events … and headless uses the card number to remember your selected audio device
one option to address is to disable all audio devices except the one you use for headless (i’ve seen other threads here that describe how to disable hdmi audio and the on-board headphone output on a Pi)
another option is to specify a preferred audio device as your default (this can be done, for example, in a ~/.asoundrc file … using your card name rather than the number), and then select the Default audio device using the headless browser interface
Thank you. I believe I have fixed my issue with the ~/.asoundrc solution. I looking at documentation, there is a lot that can be in this file. I tried to keep mine as simple as possible.