es_settings.cfg file keeps resetting to default if Raspberry PI loses power.
-
Basically I have added the following bool name to my config so it disables the emulation station loading screen but if my Raspberry PI gets unplugged or isn't shutdown correctly, it resets the config. Can anyone help me?
<bool name="SplashScreen" value="false" />
Also I am pretty new to RetroPie as I installed it yesterday.
-
Try making any other change and seeing if it sticks after a reboot. Try, for instance, adding another ROM. If that change doesn't stay either, your SD card is about to die and when that happens, it goes into a read-only mode to allow you to get your data off of the card and back it up.
-
No it is just the config, I have been able to add / change everything else expect this file. But if I was to just power it off by pressing start and then quit, it would still keep the changes but if the Raspberry PI gets unplugged, then it resets back to the original config.
-
@train21 said in es_settings.cfg file keeps resetting to default if Raspberry PI loses power.:
No it is just the config, I have been able to add / change everything else expect this file. But if I was to just power it off by pressing start and then quit, it would still keep the changes but if the Raspberry PI gets unplugged, then it resets back to the original config.
This is normal behavior. The file is only written out when you quit or reboot normally.
-
@zerojay is there any solutions to make it not overwrite the file?
-
@train21 There's not. You need to carry out a clean shutdown if you want the changes to save. The changes are stored when you exit properly. If you just pull the power then they won't.
Is there something peculiar about your setup that you can't just exit ES properly and then kill the power? -
@jonnykesh Well there isn't a problem with that, I can shutdown regularly. It's just sometimes the power cable gets lose and disconnects completely and kills the power.
-
@train21 I think you may be on to something. Looking at the source (https://github.com/RetroPie/EmulationStation/blob/master/es-core/src/Settings.cpp#L14) this particular setting is actually not saved and it's ignored.
If you want to disable the splash, you need to do it in/opt/retropie/configs/all/autostart.sh
. Replace the lineemulationstation #auto
with
emulationstation --no-splash #auto
and the splash should be disabled.
-
Thanks so much @mitu. It now will remember the save and won't show the ES loading screen even if it gets unplugged. Thanks so much for the reply.
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.