Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: power management board not working on 7.4
#5
(09-30-2021, 10:01 AM)Cardone Wrote:
(09-30-2021, 08:45 AM)officialsm Wrote:
(09-30-2021, 08:00 AM)Cardone Wrote:
(09-29-2021, 06:20 PM)officialsm Wrote: Hi,
i'm using a power management board with a button to power on/off (from Audiophonics: https://www.audiophonics.fr/en/raspberry...10912.html).
It works until 7.3 version, with 7.4 work to power-on but not to power-off.
To work i use a custom script (as described here: https://github.com/audiophonics/Raspberr...management).

The poweroff script is called from /var/local/www/commandw/restart.sh and from /etc/rc.local

With 7.4 versione seems restart.sh or rc.local are not in use. If if try from command sheel the shutdown script it works fine.
Could you help me to understandt if something changed form 7.3 about shutdown and where i can put custom script?

At the moment if i press the button it not works,no shutdown.
Thank you

Hello,
did you check the entry in /etc/rc.local?

Code:
sudo nano /etc/rc.local
    
    Add before exit :
    python /home/pi/spc_moode.py &

Yes, done:

pi@moode:~ $ tail -6 /etc/rc.local


# moOde startup and job processor daemon
/var/www/command/worker.php > /dev/null 2>&1

python /home/pi/spc_moode.py &
exit 0

Test times with -> sudo python /home/pi/spc_moode.py &

Command works!
Reply


Messages In This Thread
RE: power management board not working on 7.4 - by officialsm - 09-30-2021, 10:19 AM

Forum Jump: