As the title suggests, I tried employing a latching power switch on my DAC2 HD with script from:
git clone https://github.com/Howchoo/pi-power-button.git ./pi-power-button/script/install
The latching power switch used GPIO pins 2, 4, 6, & 39. I checked that they were not in use by the DAC2.
The power switch now works, but I don't get any sound from the DAC. I just tried a fresh install of HiFiBerry OS on a different memory card and the DAC2 is working just fine.
Can anyone help me understand what I've done wrong? I would guess it is in the script for the power switch. Is it possible to achieve what I set out to do?