Dear all,
Having this DAC and a RPI 3 (they work fine together), I have tried to enable the power management feature of the board.
Starting from the
audiophonics scripts, I managed to monitor the hardware power switch through a systemd service, as described
here. Power Down from the GUI was properly taken into account by adding the GPIO shutdown sequence at the the RuneAudio shutdown script,
as suggested by Frank. Consequently I am now able to drive a clean power off from both the hardware switch and the GUI.
However it seems that /var/www/command/rune_shutdown is also called when "Reboot" is selected from the GUI. As a result, the power is switched off by the DAC board during the rebooting process since the GPIO pins have been improperly set as for a power down.
I wonder if there would be a way to discriminate between GUI-selected "Power Off" and "Reboot", either within the rune_shutdown script or by adding a new script that would be solely reboot-trigerred. Any suggestion would be more than welcome.
Best regard,
Lionel