How to save controller configurations to IMG backup?
-
I'm using a Pi 400 with 128GB SD card and 1TB USB HD. I got my machine setup, made a backup of the USB HD on my PC and an IMG image file of the SD card using Win 32 Disk Imager.
Yesterday, I added some BIOS files and roms to the USB drive, and made an edit to the config.txt file to attempt to add a power button.
Then controls stopped working in games.
I restored the IMG file to the SD card thinking it would revert back to how it was before, but the controls are still not working in games. They work fine in the ES menu, and in retropie menus. I configured controllers in ES, and they still don't work in emulators.While I am trying to troubleshoot the problem at hand, my bigger concern is that restoring the previously working IMG file didn't fix the issue. How can I ensure that the controller settings are restored from a backup?
-
Saving the entire sdcard to an IMG file should preserve the configuration for the gamepads.
Please give more details, as detailed in https://retropie.org.uk/forum/topic/3/read-this-first - what version of RetroPie, which emulator(s) doesn't work with the controls, what controllers you use, etc.
-
@mitu Thank you for the quick response.
Pi Model or other hardware: Pi 400
Power Supply used: Pi 400 stock power supply
RetroPie Version Used: 4.8
Built From: "retropie-buster-4.8-rpi4_400.img.gz"
USB Devices connected: WD 1TB USB HD
Controller used: QuasiCade Quasi Con 2 (2x USB controllers)
Error messages received: N/A
Verbose log (if relevant): N/A
Guide used: RetroPie USB mount guide
File: boot\config.txt
Emulator: fbneo, lr-genesis-plus-gx, etc.
Attachment of config files: I'm not sure how to provide these, do you just need to txt files from the boot folder of the SD?
How to replicate the problem:When I boot up the Piu 400, it loads into Emulation Station, it does not ask me to set up controller configuration. ES Menus and Retropiue menu work fine, but I get no input from the controllers in emulators. I cannot use hotkeys to exit games or open the retroarch menu. When loading games, popups appoear that say "Honey Bee Quasi Con controller is configured in port 1" and for port 2. These popups are nothing new, although the appearance of the popups has changed.
One thing worth mentioniing is that whenever I would configure the gamepad in ES (back when it was working), the gamepad would always have some random number. "GAMEPAD 20" or "GAMEPAD 5". I thought it was strange that it didn't always say 1 or 2 since I only have 2 controllers connected, and if it's creating profiles it appears to be numbering them randomly.
Just before this happened, I was trying to add games and BIOS files for sega cd and PC Engine CD. I had also modified the config.txt file, I appended it to include a line of code for a power button as per the tutorial
Thanks again for your help!
-
@nixzero said in How to save controller configurations to IMG backup?:
One thing worth mentioniing is that whenever I would configure the gamepad in ES (back when it was working), the gamepad would always have some random number. "GAMEPAD 20" or "GAMEPAD 5". I thought it was strange that it didn't always say 1 or 2 since I only have 2 controllers connected, and if it's creating profiles it appears to be numbering them randomly.
The numbering is not random and it starts from 1, but if the controller disconnects and re-connects the number is increased. This means that the controller(s) are disconnecting from your Pi for some reason and this might explain why they're not working correctly.
The fact that RetroArch finds the configuration (the messages "Honey Bee Quasi Con controller is configured in port 1/2" indicates that) means the configuration files are ok.
You should check by running
dmesg -w
from a SSH session, while the emulators are loading/runing, if the gamepads are disconnecting from the USB port when you start the emulator and/or when working in EmulationStation.
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.