on off button

Raspberry Pi related support

on off button

Postby dannyrune » 22 May 2018, 17:53

Please forgive me, I believe this has been answered over and over again. The problem is that I can't find a step by step tutorial. It seems to be spread out between many posts. I have been trying to follow multiple posts over multiple threads, but not having success with getting the power button working. I did have an on off button working following this guide when I was using retropie; https://www.youtube.com/watch?v=4nTuzIY0i3k&t=402s. Can anyone create a step by step tutorial on how to get an on off button with RuneAudio?

Danny
dannyrune
 
Posts: 1
Joined: 22 May 2018, 17:44

Re: on off button

Postby rudy trubitt » 12 Jun 2018, 15:40

I am interested in this as well. I just built up my first system a few days ago and initially connected the Raspberry and USB hub power supplies to a switched outlet on the back of my receiver. But I am thinking this might be risky because if another user simply turns off the receiver, Rune might be in the middle of a write-operation.

As I am searching other threads on this topic, I see this from Frank:

>You should call "/svr/http/command/rune_shutdown poweroff" before this to stop mpd and unmount your shares.

Seems like I should revise my switched power outlet scheme and ensure an orderly shutdown.
rudy trubitt
 
Posts: 1
Joined: 12 Jun 2018, 15:34

Re: on off button

Postby PierreG64 » 26 Jun 2018, 18:40

I don't know if it can help someone, but i use this solution:

https://www.audiophonics.fr/fr/accessoires-pour-raspberry-pi-et-autres-sbc/audiophonics-pi-spc-ii-module-de-controle-alimentation-lineaire-pour-raspberry-pi-p-11504.html

with a monostable push button
and i use this code:
http://forum.audiophonics.fr/viewtopic.php?f=4&t=1620&sid=619fd50c689d22e5f93b906a16961c81

begin at : "Tutoriel sur RuneAudio 0.4 : "

skip the step or is written
Editer le fichier /var/www/command/rune_SY_wrk
Remplacer ligne 608 :
Code :
sysCmd('/var/www/command/rune_shutdown');
sysCmdAsync('poweroff');

par
Code :
sysCmd('/var/www/command/rune_shutdown poweroff');
sysCmdAsync('poweroff');


the file is correct at line 714. maybe an update?
and all is ok for me, i hope it will be the same way for you.
PierreG64
 
Posts: 15
Joined: 11 Jun 2015, 20:46

Re: on off button

Postby rern » 29 Jun 2018, 13:17

Raspberry Pi 3 > SMSL M8 DAC
GitHub
rern
 
Posts: 209
Joined: 14 Jul 2016, 08:15

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests