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 ?