RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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

    Is it possible to have more than 1 config.txt?

    Scheduled Pinned Locked Moved Help and Support
    config.txt
    5 Posts 2 Posters 335 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jonnieboyrevel
      last edited by

      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:

      1. 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)

      2. 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

      AshpoolA 1 Reply Last reply Reply Quote 0
      • AshpoolA
        Ashpool @Jonnieboyrevel
        last edited by Ashpool

        @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.

        J 2 Replies Last reply Reply Quote 1
        • J
          Jonnieboyrevel @Ashpool
          last edited by

          @Ashpool Thanks for the reply. I'll have a look and see if I can get it to do what I want.

          1 Reply Last reply Reply Quote 0
          • J
            Jonnieboyrevel @Ashpool
            last edited by

            @Ashpool

            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 :)

            AshpoolA 1 Reply Last reply Reply Quote 1
            • AshpoolA
              Ashpool @Jonnieboyrevel
              last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              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.