Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

PSX configuration "save on exit" or "save configuration" not working



  • Disclaimer: I know this has been posted multiple times, and yes I searched the forum; and no, those posts are not helpful as I want to "fix" it instead of manually modifying the retroarch.cfg, eventhough I know how to edit it manually (and apologize in advance for my poor English)

    Pi Model or other hardware: (B, B+, 2 B, 3, X86 PC etc..) Pi 3B+
    Power Supply used: (If using a Pi) 5V2.1A
    RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): 4.4
    Built From: (Pre made SD Image on RetroPie website, Berryboot, or on top of existing OS etc.. - please provide the filename of any image used) WDG Supreme Build v2
    USB Devices connected: 1 usb joypad, 1 keyboard/mouse wireless dongle, 1 500TB 2.5" USB HDD
    Controller used: USB Candy Rock controller, BT gamepad (generic)
    Error messages received:
    Log found in /dev/shm/runcommand.log (if relevant):
    Guide used: (Mention if you followed a guide)
    File: (File with issue - with FULL path)
    Emulator: (Name of emulator - if applicable) PSX lr-pcsx-rearmed
    Attachment of config files: (PLEASE USE PASTEBIN.COM FOR LARGE LOGS)
    How to replicate the problem:

    I tried a lot of thing and below are the best discoveries I had.
    First of all, as the image already is, the /psx/retroarch.cfg is already the "full" cfg file - i.e. no #include line but a massive files with all the possible config in there already - I know it is a nightmare but that also eliminate inheritance issue from the /all/retroarch.cfg
    checked /psx/emulator.cfg and confirm the right cfg file is being loaded through the command(i.e. /psx/retroarch.cfg)

    I invoked RGUI while in game in PSX emulator, tried to change some input configuration there, make sure 'save on exit' is on, quit the emulator, go back in game and found all the input configuration reverted back to as before. Obviously the /psx/retroarch.cfg is not overwritten. Did some modification manually on /psx/retroarch.cfg - including true for 'save on exit', back to game, every change is reflected and can be seen from RGUI - again, confirm it is loading the right file. Change the file permission to 777 for /psx/retroarch.cfg, could not fix it either.

    Here is something interesting: I deleted the psx/retroarch.cfg file, upon loading a game, yellow test show a new retroarch.cfg is created (sidenote: where does it get the default values from? because these are not the same as in the /all/retroarch.cfg). From here, I can do any changes, and have those changes saved correctly into psx/retroarch.cfg. Get into game again and change again and it is still saved.... until I reboot emulation station, then any change through RGUI in game won't be saved anymore.

    Either a) it is being saved but somehow to a different file in a different folder
    b) it tried to save to the right file but failed

    It is likely a, however, because --- when I tried 'save new configuration', a libretro.cfg file is created in all/retroarch/config, oppose to within the psx/ folders - but "save configuration" does not overwrite the libretro.cfg or any new file that was created though....

    I am out of idea how to troubleshoot this anymore and asking for help in here. My guess is some other middleware/package change where RGUI save the configuration file, which invoke only when emulationstation is started. Hence when the new cfg file is created automatically, somehow the path is renewed and set right, but that path got overwritten once emulationstation restarted.

    I only tried PSX as I only play this, any suggestions are welcome.


  • Global Moderator

    @playgamemy

    Built From: (Pre made SD Image on RetroPie website, Berryboot, or on top of existing OS etc.. - please provide the filename of any image used) WDG Supreme Build v2

    i'm afraid we don't support third party images. for example:

    First of all, as the image already is, the /psx/retroarch.cfg is already the "full" cfg file - i.e. no #include line but a massive files with all the possible config in there already

    this is already a large deviation from stock retropie.



  • @dankcushions I believe even for stock image, if you had save on exit enabled, it will write a “full” configuration file anyway.
    Are there configuration file for retroarch that specify where configuration files should be saved?


  • Global Moderator

    @playgamemy said in PSX configuration "save on exit" or "save configuration" not working:

    Are there configuration file for retroarch that specify where configuration files should be saved?

    RetroPie uses the 'stock' settings - ~/.config/retroarch for game overrides and control remaps. It's not advisable to save the settings directly since it will save them over the core's config file (see https://retropie.org.uk/docs/RetroArch-Configuration/#config-hierarchy). If you want to edit the 'global' RetroArch config file, then add your options to the /opt/retropie/configs/all/retroarch.cfg file.



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.