Until last week I had a perfectly working setup with Volumio 1.55, where the rc.local included the following lines:
[code]/var/www/command/player_wdog.sh startup & > /dev/null 2>&1
echo “23” > /sys/class/gpio/export
echo “out” > /sys/class/gpio/gpio23/direction
echo “0” > /sys/class/gpio/gpio23/value
/usr/local/bin/gpio/handle_speakers.sh > /dev/null 2>&1 < /dev/null &
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor’
echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
The first group enables GPIO23 that I’m using to turn on and off external speakers whenever sound is playing/stopped.
The second group turn off the ethernet LEDs, because they attract insects and because they affect the stability of the USB voltage.
Then I turn off HDMI and I enable frequency scaling.
Two days ago I installed HiFiBerry DAC (not DAC+ because I have R-Pi B) and sound seems to be working, but:
- GPIO is not set anymore (the GPIO23 is not enabled after boot), but if I run again the same three lines as root afterwards (from SSH) it works fine. HiFiBerry does NOT use GPIO23, it is also provided on the expansion port on the top.
- the ethernet LEDs are clearly turned off during boot (I see them going off) but then they are enabled again. This one too, if I disable them manually via SSH, then they stay off forever.
The only change seems to be HiFiBerry DAC.
Do you have any idea what could be causing the issues? I already tried changing the sequence of the groups in rc.local.