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 configure overscan settings for runcommand video mode switching?

    Scheduled Pinned Locked Moved Help and Support
    overscanruncommandcrt
    8 Posts 3 Posters 797 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.
    • S
      sockscap
      last edited by

      It's latest Retropie v4.7.1 running on Pi3B, output to CRT in PAL mode. I've edited config.txt to add overscan settings, and everything is working fine.

      However, there are some games that I want to run in NTSC 4:3 mode, so I set the video mode for these games via runcommand. The problem is, the overscan settings for NTSC mode is wrong.

      Is it possible to define the overscan settings when runcommand switches video mode to NTSC 4:3 mode?

      BuZzB 1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators @sockscap
        last edited by

        @sockscap it's not sorry.

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        S 1 Reply Last reply Reply Quote 0
        • S
          sockscap @BuZz
          last edited by

          @buzz
          Just to double check, is it technically possible to manually edit the script, to pass the overscan settings when it switch the video mode?

          I'm asking this because if I edit config.txt to put it in NTSC mode with a different set of overscan settings, it also works fine. I just hope that I can use PAL by default, and only switch to NTSC for specific games. It looks a bit strange to me that this is not possible.

          I fully understand the customization is for my specific needs, and if I manually edit the script, it won't be officially supported. Any hints of the script or the method for video mode switch would be appreciated. The runcommand.sh looks complex, as I'm not an expert of linux script.

          BuZzB 1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators @sockscap
            last edited by BuZz

            @sockscap You could maybe script it if this still works (or something like it).

            https://github.com/ukscone/set_overscan

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            S 2 Replies Last reply Reply Quote 0
            • S
              sockscap @BuZz
              last edited by

              @buzz
              Thanks! I will take a look and do some research.

              1 Reply Last reply Reply Quote 0
              • S
                sockscap @BuZz
                last edited by

                @buzz
                I have a quick look of the link. I'm afraid it's not what I'm looking for. The tool writes the overscan_left/right/top/buttom values to /boot/config.txt, which should not be changed in my scenario.

                To my understanding, on system startup there's a mechanism to read the overscan_left/right/top/buttom values from /boot/config.txt and set video output (PAL mode in my case).

                When I use runcommand to set NTSC for a specifc game, a similar mechanism changes the video mode to NTSC, the difference is, it reads the target video mode from videomodes.cfg instead of config.txt. Because videomodes.cfg doesn't contain overscan settings, of course the video output would be incorrect.

                I just don't know exactly how this mechnism is implemented. Is this something that can be achieved via command line? Is it easier to simply put it in runcommand-onlaunch.sh?

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @sockscap
                  last edited by

                  @sockscap said in Is it possible to configure overscan settings for runcommand video mode switching?:

                  I have a quick look of the link. I'm afraid it's not what I'm looking for. The tool writes the overscan_left/right/top/buttom values to /boot/config.txt, which should not be changed in my scenario.

                  The shell script does write the values to config.txt, but the overscan.c file can change the overscan values at runtime.

                  I just don't know exactly how this mechnism is implemented. Is this something that can be achieved via command line?

                  The resolution change is done via tvservice , which doesn't set any overscan values, as @BuZz mentioned. You can however change the overscan with the utility mentioned by @BuZz in the runcommand-onlauch.sh, since at that point the video mode has been changed and you only need to apply the overscan values.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sockscap @mitu
                    last edited by

                    @mitu
                    Ok. All clear now. Thanks for the clarification.
                    I'm not a dev guy, so it's beyond my knowledge to modify the source code. I guess I have to prepare two set of config.txt, and reboot into the proper video mode when needed.

                    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.