crcerror / es-generic-shutdown Goto Github PK
View Code? Open in Web Editor NEWA script that includes a few known standard power switches (MAUSBERRY, SHIM, POLOLU) and gots a default config for a safe shutdown
A script that includes a few known standard power switches (MAUSBERRY, SHIM, POLOLU) and gots a default config for a safe shutdown
This is a piece of simple shell script I wrote to automate the installation procedure. And it helps me to avoid mistake during the installation.
It is great if it can be added in the document somewhere, or shipped as an installation script.
apt-get install -y raspi-gpio
mkdir -p /home/pi/RetroPie/scripts
wget https://raw.githubusercontent.com/crcerror/ES-generic-shutdown/master/multi_switch.sh -O /home/pi/RetroPie/scripts/multi_switch.sh
chown -R pi:pi /home/pi/RetroPie/scripts
chmod 0755 /home/pi/RetroPie/scripts /home/pi/RetroPie/scripts/multi_switch.sh
sed -i -e '/\/home\/pi\/RetroPie\/scripts\/multi_switch.sh/ d' -e '1i /home/pi/RetroPie/scripts/multi_switch.sh --nespi+ &' /opt/retropie/configs/all/autostart.sh
wget https://raw.githubusercontent.com/crcerror/ES-generic-shutdown/master/shutdown_fan -O /lib/systemd/system-shutdown/shutdown_fan
chown -R root:root /lib/systemd/system-shutdown/shutdown_fan
chmod 0755 /lib/systemd/system-shutdown/shutdown_fan
Love the script but I now swiched to the latest nespi 4 (for raspberry pi 4). I used the nespi+ config and in-game the reset brings me back to te ES menu but shutdown makes it stuck where the shutdown sequence is run but the fan keeps active. Pressing power again the does nothing.
Would love it if you could make it compatible or give instructions on how to.
Cheers.
With the retroflag script when you press the power button the power is completely cut from the pi, so if you have a fan installed, it too shuts off. With your script the fan stays running. Is this because your script doesn't use the shutdown command?
Should be easy to just adapt the existing NESPi Plus logic, using the values from their recommended Recalbox shutdown script.
SRAM is not being saved when this script is run from in game. Itβs also affecting the reset button on retroflag cases.
Sometimes you need to close ES to scrape games and perform other functions. Is there a way to have the reset button perform a reboot or even start ES back up after performing these actions while sitting in the terminal?
BTW, I just got your latest script installed on my nespi+ and everything works perfect now, thanks for the hard work!
HI,
just got a nespicase - the one without the switch.
Installation works. I saw the SafeShutdown.py running after reboot.
However the switches are not working.
Resets - immediately triggers reset, no save shutdown is triggered. Would be nice to get emulatorstation restarted
Poweronoff - this switch is pressed in, when I release it I guess the save shutdown should be triggered. However, it's not, seems like poweroff.
Guess it has to do with the
"--nespicase" switch for the SafeShutdown.py script - how I can alter it to get the right behavior?
Thanks!
Joerg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.