Power Button in 2022
-
Retropie 4.8
Raspberry Pi 4 2GB
Official power adaptor
PS3 controller
lr-Mame 2003 (0.78) and 2010Hi All,
What is the current recommendation for power buttons and script to run them?
I tried following old ETA Prime tutorials but they didn't work with Retropie 4.8Also on this forum the latest I could find was from 2 years ago.
Thanks so much -
@lindsay
Redirecting the output of rc.local to a log file yielded this error:- sudo python /home/pi/scripts/shutdown.py
Traceback (most recent call last):
File "/home/pi/scripts/shutdown.py", line 3, in <module>
import RPi.GPIO as GPIO
RuntimeError: This module can only be run on a Raspberry Pi!
Well, it definitely is being run on a Raspberry pi!
- sudo python /home/pi/scripts/shutdown.py
-
Save yourself the trouble and use @cyperghost's shutdown script - it's at https://github.com/crcerror/ES-generic-shutdown.
-
@mitu thanks, this is from 2018, does it still work in 2022?
And it seems it needs special case with a special power switch installed, or am I mistaken? -
@lindsay said in Power Button in 2022:
@mitu thanks, this is from 2018, does it still work in 2022?
Yes.
And it seems it needs special case with a special power switch installed, or am I mistaken?
No, it supports a number of special power switches, but it works also with a generic GPIO button.
-
@mitu Many thanks.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.