I have a DAC+ and hifiberryos running on a Raspi 4.
I would like to switch off TOSLINK output in case no music is playing (maybe with a delay timer). I need to switch off TOSLINK in order to use the "auto-power-off" feature of my connected speakers.
Actually the TOSLINK is always on and the speakers never power down.
I have seen a similar post from 2015 (I believe). But this was based on older os and I did not find the appropriate folders and files to config.