adangert / JoustMania

Raspberry Pi Jousting at its finest
http://joustmania.com
Other
124 stars 34 forks source link

Safe Shutdown function #91

Open Nam-Ereh-Won opened 7 years ago

Nam-Ereh-Won commented 7 years ago

Since this is intended to be headless, you don't have many options for starting a safe shutdown outside of rigging up a button and setting up a trigger. Perhaps holding the Move and Trigger buttons on a controller in admin mode could initiate a safe shutdown and/or a button in the Web Interface.

adangert commented 7 years ago

Might be nice to have in the web interface, although I've had no problems at all with just pulling the power on the pi though, the whole system seems to be very resilient.

mbabinski-at-google commented 7 years ago

It might be more or less sufficient to just flip on the "sync" mount option on "/". It will make writing to disk slower, but JoustMania shouldn't be doing much writing.

CelestialQwert commented 7 years ago

My latest pull request has options to reboot or shutdown in web settings. I would like to add a button combination as well, but we gotta figure out the right combo that "drunk player randomly mashing buttons" has a minuscule chance of tripping.

adangert commented 7 years ago

Holding both triangle and select for a couple seconds probably would do the trick.

martinbogo commented 6 years ago

How about a two-stage combo for shutdown and/or reboot: