power management board not working on 7.4 - officialsm - 09-29-2021
Hi,
i'm using a power management board with a button to power on/off (from Audiophonics: https://www.audiophonics.fr/en/raspberry-pi-and-other-sbc-accessories/audiophonics-pi-spc-v2-power-management-module-for-raspberry-pi-p-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/Raspberry-pwr-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
RE: power management board not working on 7.4 - Cardone - 09-30-2021
(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-pi-and-other-sbc-accessories/audiophonics-pi-spc-v2-power-management-module-for-raspberry-pi-p-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/Raspberry-pwr-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 &
RE: power management board not working on 7.4 - officialsm - 09-30-2021
(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-pi-and-other-sbc-accessories/audiophonics-pi-spc-v2-power-management-module-for-raspberry-pi-p-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/Raspberry-pwr-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
RE: power management board not working on 7.4 - Cardone - 09-30-2021
(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-pi-and-other-sbc-accessories/audiophonics-pi-spc-v2-power-management-module-for-raspberry-pi-p-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/Raspberry-pwr-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 &
RE: power management board not working on 7.4 - officialsm - 09-30-2021
(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-pi-and-other-sbc-accessories/audiophonics-pi-spc-v2-power-management-module-for-raspberry-pi-p-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/Raspberry-pwr-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!
RE: power management board not working on 7.4 - officialsm - 10-03-2021
pi@moode:/var/local/www/commandw $ sudo python /home/pi/spc_moode.py shutdown
Argument: shutdown
RaspberryPi shutdown
Setting pin GPIO4 High
Setting pin GPIO4 Low
Do you think power board could be defective?
RE: power management board not working on 7.4 - officialsm - 10-04-2021
upgraded to 7.4.1 but still have issue
RE: power management board not working on 7.4 - officialsm - 10-04-2021
Found i have some issues with gpio prima on Raspberry not working properly
|