I can live with the switch as it is now. I can turn it ON and OFF and is not blinking
But @hondagx35 any chance you can have a look into the OLED please?
http://forum.audiophonics.fr/viewtopic.php?f=4&t=1492
Any chance this can be done?
by rikardo1979 » 11 Apr 2016, 22:53
by rikardo1979 » 12 Apr 2016, 20:02
by hondagx35 » 12 Apr 2016, 21:24
As I am still not able shut it down properly by button.
while [ 1 ]; do
if [ "$(/home/pi/wiringPi/gpio/gpio -g read 17)" = "1" ]; then
echo "ShutDown order received, RaspBerry pi will now enter in standby mode..."
/var/www/command/rune_shutdown poweroff
systemctl poweroff
break
fi
while [ 1 ]; do
if [ "$(/usr/bin/gpio -g read 17)" = "1" ]; then
echo "ShutDown order received, RaspBerry pi will now enter in standby mode..."
/var/www/command/rune_shutdown poweroff
systemctl poweroff
break
fi
by rikardo1979 » 12 Apr 2016, 22:09
hondagx35 wrote:HiAs I am still not able shut it down properly by button.
Sorry, but without the hardware it is hard to help.
I think i have found one possible error, so please try to change
this
- Code: Select all
while [ 1 ]; do
if [ "$(/home/pi/wiringPi/gpio/gpio -g read 17)" = "1" ]; then
echo "ShutDown order received, RaspBerry pi will now enter in standby mode..."
/var/www/command/rune_shutdown poweroff
systemctl poweroff
break
fi
to
- Code: Select all
while [ 1 ]; do
if [ "$(/usr/bin/gpio -g read 17)" = "1" ]; then
echo "ShutDown order received, RaspBerry pi will now enter in standby mode..."
/var/www/command/rune_shutdown poweroff
systemctl poweroff
break
fi
Let us try to fix it step by step.
Frank
by rikardo1979 » 13 Apr 2016, 11:09
We realize there was a folder on this KIT.
It was initially made for DAC V2, and we modified it for new V3, forgetting that button and some parts was different.
This kit will be updated online asap, and we will send a new button to Rikardo ...
Apologies...
by thedman! » 13 Apr 2016, 12:20
by rikardo1979 » 13 Apr 2016, 12:33
thedman! wrote:Would these scripts work to shutdown and boot rune audio on a rpi, without any extra controllers e.g. mausberry? In other words a rpi and a momentary switch?
by thedman! » 13 Apr 2016, 12:43
by rikardo1979 » 13 Apr 2016, 15:07
thedman! wrote:Thank you! Now where is the postman?!?!?!?!
by nicko500 » 13 Apr 2016, 19:08
hondagx35 wrote:6) change /var/www/command/rune_shutdown
- Code: Select all
if [[ $1 == "poweroff" ]]
then
echo "power off RuneAudio"
gpio mode 7 out
gpio write 7 1
sleep 1
echo "Setting pin GPIO7 Low"
gpio write 7 0
else
echo "reboot RuneAudio"
# Reboot blink will stop after Boot OK return
echo "setting pin GPIO 4 High"
gpio -g mode 4 out
gpio -g write 4 1
fi
echo "Stop MPD and unmount shares..."
.....
Frank
support RuneAudio