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

    retroarch video settings not working

    Scheduled Pinned Locked Moved Help and Support
    retroarchvideoconfig
    19 Posts 3 Posters 3.4k 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.
    • benjaminjayB
      benjaminjay
      last edited by benjaminjay

      I followed this guide but it doesn't work for me. My GBA games are still stretched.
      https://github.com/RetroPie/RetroPie-Setup/wiki/Smaller-RetroArch-Screen

      is there another config file that is overriding this one?
      /opt/retropie/configs/gba/retroarch.cfg

      Pi Model or other hardware: 3B
      Power Supply used: 2.5A
      RetroPie Version Used: when I run retropie_setup.sh it says 4.4.14
      Built From: (Pre made SD Image on RetroPie website)
      USB Devices connected: NA
      Controller used: RetroFlag Controller
      Error messages received: NA
      Guide used: https://github.com/RetroPie/RetroPie-Setup/wiki/Smaller-RetroArch-Screen
      File: see guide
      Emulator: lr-mgba

      1 Reply Last reply Reply Quote 0
      • sirhenrythe5thS
        sirhenrythe5th
        last edited by

        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

        The way it is it is similar to the question "My car wont run - whats wrong?"

        -- Retro-Achievements Username: SirALX --
        RetroRatio: 1.88
        Started Games beaten: 2,47%
        Site Rank: 4382/93743 ranked users (TOP 4.76%)
        Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

        benjaminjayB 1 Reply Last reply Reply Quote 0
        • benjaminjayB
          benjaminjay @sirhenrythe5th
          last edited by

          @sirhenrythe5th added more info

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

            Can you post the retroarch.cfg you modified ? What's your resolution - if it's not 1080p, those settings might have to be tweaked.

            benjaminjayB 1 Reply Last reply Reply Quote 0
            • benjaminjayB
              benjaminjay @mitu
              last edited by

              @mitu I'm on a typical 1080 computer monitor. Here is the config file.

              # 19 = Config, 20 = 1:1 PAR, 21 = Core Provided, 22 = Custom Viewport
              aspect_ratio_index = "22"
              
              # these two define the pixel size of the emulated screen
              # keep this in the same ratio as the original console
              custom_viewport_width = "720"
              custom_viewport_height = "480"
              
              # the following two decide how far from the left and top we offset the above
              # use your resolution, minus the screen size, divided by two
              # these settings for 1080p screen (1920x1080)
              # (1920-720)/2 = 600
              custom_viewport_x = "600"
              # (1080-480)/2 = 300
              custom_viewport_y = "300"
              
              input_remapping_directory = "/opt/retropie/configs/gba/"
              
              #include "/opt/retropie/configs/all/retroarch.cfg"
              
              
              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @benjaminjay
                last edited by

                @benjaminjay Hm, looks like the index for the custom resolution has changed again.
                Try with aspect_ration_index = "23" added on the 2nd line

                # 19 = Config, 20 = 1:1 PAR, 21 = Core Provided, 22 = Custom Viewport
                aspect_ratio_index = "23"
                
                # these two define the pixel size of the emulated screen
                # keep this in the same ratio as the original console
                custom_viewport_width = "720"
                custom_viewport_height = "480"
                
                # the following two decide how far from the left and top we offset the above
                # use your resolution, minus the screen size, divided by two
                # these settings for 1080p screen (1920x1080)
                # (1920-720)/2 = 600
                custom_viewport_x = "600"
                # (1080-480)/2 = 300
                custom_viewport_y = "300"
                
                input_remapping_directory = "/opt/retropie/configs/gba/"
                
                #include "/opt/retropie/configs/all/retroarch.cfg"
                
                benjaminjayB 1 Reply Last reply Reply Quote 0
                • benjaminjayB
                  benjaminjay @mitu
                  last edited by

                  @mitu the game is still stretched to fill the screen vertically

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

                    @benjaminjay Do you have any sort of game options saved ? I tried the conf I posted and there's no stretch, the game screen appears in the middle of the screen - as described in the doc page.
                    What version of RetroArch are you using ?

                    benjaminjayB 1 Reply Last reply Reply Quote 0
                    • benjaminjayB
                      benjaminjay @mitu
                      last edited by

                      @mitu I don't know how to check if I have game options saved. When I hotkey into Retroarch in game the window says 1.7.6

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

                        @benjaminjay normally it appears at 5he bottom of the screen, after the controller messages. Or you can try with another/new gamean see if the screen area is the same.

                        benjaminjayB 1 Reply Last reply Reply Quote 0
                        • benjaminjayB
                          benjaminjay @mitu
                          last edited by

                          @mitu how would I go about deleting those options manually? Is there a file I can look for?

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

                            @benjaminjay there should be an opt file named after the rom name, somewhere under /home/pi/.config/retroarch/config/.

                            benjaminjayB 1 Reply Last reply Reply Quote 0
                            • benjaminjayB
                              benjaminjay @mitu
                              last edited by benjaminjay

                              @mitu What about editing /home/pi/.config/retroarch/config/mGBA/mGBA.cfg ??
                              When I load up a ROM in mGBA I get a message at the bottom saying "failed saving config to /opt/retropie/configs/gba/retroarch.cfg"

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

                                @benjaminjay did you edit the .cfg file - with the resolution settings- as root ? That's probably why the file cannot be written by Retro arch,if you try to save the settings.

                                benjaminjayB 1 Reply Last reply Reply Quote 0
                                • benjaminjayB
                                  benjaminjay @mitu
                                  last edited by benjaminjay

                                  @mitu I'm not sure... I have a very basic understanding of the permissions system but I do remember using sudo chown to be able to edit some files using WinSCP
                                  Can I work around this by editing /home/pi/.config/retroarch/config/mGBA/mGBA.cfg ??
                                  Or can you tell me how to properly set permissions for this stuff ?

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

                                    @benjaminjay I'mon mobile now, so can't give precise instructions, but you can remove the file, then reinstall mgba and the file will be created with the right settings. After the file is created, you can add back the configuration settings I posted yesterday.

                                    benjaminjayB 1 Reply Last reply Reply Quote 1
                                    • benjaminjayB
                                      benjaminjay @mitu
                                      last edited by benjaminjay

                                      @mitu ok so I installed mGBA from the retropie setup script. When I add those config settings back, the game is displayed down in the bottom right hand corner of the screen. When I try with aspect_ratio_index = "22" added on the 2nd line instead, it is back to being centered but stretched again.
                                      Also the file /home/pi/.config/retroarch/config/mGBA/mGBA.cfg wasn't replaced when I installed the emulator again

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

                                        @benjaminjay said in retroarch video settings not working:

                                        When I add those config settings back, the game is displayed down in the bottom right hand corner of the screen

                                        I don't get this behavior. Are you sure your display resolution is 1080p ? Use the RGUI, go into the Video settings part and check what your display settings are - including the ones you set in the .cfg file, they should be there.

                                        Also the file /home/pi/.config/retroarch/config/mGBA/mGBA.cfg wasn't replaced when I installed the emulator again

                                        I thought you were referring to the /opt/retropie/configs/gba/retroarch.cfg. The mCGBA.cfg must be a core override file, you can create it from the RGUI menu, by using the Ovrrides -> Save core override menu entry.

                                        benjaminjayB 1 Reply Last reply Reply Quote 0
                                        • benjaminjayB
                                          benjaminjay @mitu
                                          last edited by benjaminjay

                                          @mitu so far I've changed every setting I can find to fix this but it's either fully stretched or displays in the far right bottom corner with most of the screen cut off including the retroarch menu
                                          I gave up editing config files manually and just adjusted the screen from within retroarch gui, it ended up being an odd size resolution tho

                                          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.