Hi,
I've got a RPI4 with LibreELEC 12 installed on it.
I've got a remotePi board attached to the pi in order to command it with a remote.
Since the LibreELEC 12, when I shutdown, the led stays on.
The red one on the board and another green one on the remotePi.
And I need to unplug the power to be sure the RPI4 is off.
I've got an autostart.sh script and a shutdown.sh script configure. I can show you the content of the scripts if needed.
Can you help me solve this problem please ?
There some logs :
https://paste.libreelec.tv/selected-akita.log
https://paste.libreelec.tv/helpful-ray.log
Found this error :
Code
May 16 19:12:53.445949 LibreELEC sh[827]: /storage/.config/irswitch.sh: line 5: can't create /sys/class/gpio/gpio14/direction: nonexistent directory
I've got an irswitch.sh script as well that I forgot to mention.
Here is the content :
Bash
#!/bin/bash
# this is the GPIO pin receiving the shut-down signal
GPIOpin1=14
echo "$GPIOpin1" > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio$GPIOpin1/direction
while true; do
sleep 1
power=$(cat /sys/class/gpio/gpio$GPIOpin1/value)
if [ $power != 0 ]; then
echo "out" > /sys/class/gpio/gpio$GPIOpin1/direction
echo "1" > /sys/class/gpio/gpio$GPIOpin1/value
sleep 3
poweroff
fi
done
Display More