Page 3 of 14

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 11 Apr 2016, 22:53
by rikardo1979
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?

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 12 Apr 2016, 20:02
by rikardo1979
so as I was playing with the button I realised it operates in another way. If I press just a little the button clicks but dont latch. So the RPi boots.
So this is new to me and now I know how to turn it ON :) but as far this is all. As I am still not able shut it down properly by button.
Another finding is that when I try shut it down from within RuneAudio web GUI it powers down but button starts flashing rapidly and keeps doing it unless I press it or pull out the power cord?!?

I start pulling my hair here :evil: :|

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 12 Apr 2016, 21:24
by hondagx35
Hi

As 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

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 12 Apr 2016, 22:09
by rikardo1979
hondagx35 wrote:Hi

As 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

Frank,
You are an genius :)
Bloody button works now. Amazing.
To turn it ON it needs a light push so it clicks but not latch.
To turn it OFF its same, light push so it not latch. Than the shutdown script is called and system goes down.

Happy days.
Audiophonics guys have not responded for days. well more like week and you did it over two days in few replies here.

Well done. You deserve drink. Come to ours as I owe you one


If you feel up to maybe we can try make that OLED screen ?

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 13 Apr 2016, 11:09
by rikardo1979
So, some latest information from Audiophonics

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... :roll:

Source

So they sent me a wrong button ... :roll:

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 13 Apr 2016, 12:20
by thedman!
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?

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 13 Apr 2016, 12:33
by rikardo1979
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?

yes, that kind of the button should be used and not latching type they sent me by mistake :D

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 13 Apr 2016, 12:43
by thedman!
Thank you! Now where is the postman?!?!?!?!

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 13 Apr 2016, 15:07
by rikardo1979
thedman! wrote:Thank you! Now where is the postman?!?!?!?!

Image

Re: [HELP] AUDIOPHONICS I-Sabre V3 DAC ES9023 TCXO

PostPosted: 13 Apr 2016, 19:08
by nicko500
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


Hi Frank,

Thanks you much for your help.

I seen that you joined our 2 scripts about softreboot and softshutdown.
But it seem that "rune_shutdown poweroff" command is not executed properly as our controller act like a reboot, even when shutdown.

If I execute "/var/www/command/rune_shutdown poweroff" and "systemctl poweroff" from putty it's works.