Is it possible to have more than 1 config.txt?
-
Hi all
As the titles says really. I have Retropie set up on a Raspberry Pi 4 4gb.
Most of the time the Pi is powering my bartop cabinet. However, I'd like the freedom to take the Pi and plug it into a TV with controllers and play on the big screen as well.
My issue is that the cabinet has some weird monitor quirks... The only way I've got it to work properly is by having overscan settings to move the image to the correct part of the screen. This works great on the cabinet but means that screen is in the wrong place on any other screen I connect it to.
My thought was to have 2 config.txt files. 1 with overscan on and 1 with it switched off. However, I'd like some way of switching between them without have to remote in and edit the config.txt directly.
Does anyone know if either of the below options are possible:
-
Have 2 config.txt files that the Pi asks you which one to load on boot? (I'm guessing no as it wouldn't know what to boot without the config.txt)
-
A script or something in emulationstation/attractmode that will rename an unused config.txt from config1.txt or something. It would take a bit of fiddling as the active config.txt would need to be named something else, say config2.txt, the config1.txt renamed to config.txt, then config2.txt renamed to config1.txt. The script would then reboot.
This should mean that retropie boots with the alternate config.txt that will work on a TV. When I reconnect to the bartop I'd just run the script again to reboot with overscan back on.
Does anyone have any ideas? I'm sure I'm massively over complicating this so if anyone has a better idea that would be great as well.
Thanks
Jonathan
-
-
@Jonnieboyrevel You can use conditional arguments within the config.txt, so different configs for various scenarious are possible. For different monitor profiles, that would be the EDID-Filter.
-
@Ashpool Thanks for the reply. I'll have a look and see if I can get it to do what I want.
-
Just popping back on to say thanks again Ashpool. I've managed to get it doing exactly what I want using the EDID filters and in a much simpler way than I was proposing.
Thanks again for your help :)
-
@Jonnieboyrevel said in Is it possible to have more than 1 config.txt?:
I've managed to get it doing exactly what I want using the EDID filters
Glad to hear that, and thanks for the feedback :D
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.