Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| method_to_not_lose_srm_states_and_other_meta-_data [2020/01/28 19:46] – genetik57 | method_to_not_lose_srm_states_and_other_meta-_data [2021/12/26 01:16] (current) – removed atari | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~NOTOC~~ | ||
| - | ===== Method to not lose SRM states and other (meta-)data ===== | ||
| - | You should never “yank” the power cord out of your Pi as this can lead to severe data corruption (and in some cases, physically damage your SD card). Even if BATOCERA is best prepared against file corruption it is recommended to safely shut down your Pi via BATOCERAs Quit Menu or even better, use a power button or switch. | ||
| - | |||
| - | This method gives the best user experience if you use the GPi-case from Retroflag for example. This nice housing only gots one button switch to simply turn on/off the Raspberry. Since BATOCERA 5.25 the OS is best prepared for all kinds of power devices connected to the Raspberry. But you will lose your game SRM state (Battery save) if you just trigger the power button **INSIDE** a game session. | ||
| - | |||
| - | ==== How to ==== | ||
| - | |||
| - | - Prepare the script down under | ||
| - | - Save this to `/ | ||
| - | - Set executable bit with `chmod +x / | ||
| - | - Setup your power device according to [[en: | ||
| - | |||
| - | <code bash| custom.sh> | ||
| - | #!/bin/bash | ||
| - | # custom.sh - place to / | ||
| - | # by cyperghost 23/11/19 | ||
| - | # | ||
| - | |||
| - | if [[ $1 == stop ]]; then | ||
| - | batocera-es-swissknife --emukill | ||
| - | fi | ||
| - | </ | ||
| - | |||
| - | ==== Things to know ==== | ||
| - | |||
| - | * [[add_powerdevices_rpi_only|Add a powerdevice to your Raspberry]] | ||
| - | * [[retroflag_gpicase|Raspberry GPi case]] | ||
| - | * [[access_the_batocera_via_ssh|Use SSH connection]] | ||
| - | * [[http:// | ||
- method_to_not_lose_srm_states_and_other_meta-_data.1580240762.txt.gz
- Last modified: 6 years ago
- by genetik57