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

    Permission denied /opt/retropie/configs/gba/retroarch.cfg

    Scheduled Pinned Locked Moved Help and Support
    permission denihelp
    4 Posts 3 Posters 1.3k 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.
    • M
      Mikey123
      last edited by

      Hi all, not sure if someone could give some advice, I am attempting to make screen smaller for gba, however when entering the command;

      /opt/retropie/configs/gba/retroarch.cfg

      it states permission denied, so I cannot progress any further. I apologise if my terminology is incorrect, I'm just starting out.

      mediamogulM 1 Reply Last reply Reply Quote 0
      • mediamogulM
        mediamogul Global Moderator @Mikey123
        last edited by

        @Mikey123

        As a new user, your best bet for altering those config files is through the Configuration Editor. However, if you're comfortable with the command line, you can edit the file with something like nano by entering:

        nano opt/retropie/configs/gba/retroarch.cfg
        

        Also, depending on what you're wanting to do with the screen, you may actually need to be using the Runcommand menu.

        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

        1 Reply Last reply Reply Quote 0
        • M
          Mikey123
          last edited by

          Firstly thank you for the support, it's amazing the work all you guys do to support with this.

          I'm attempting to do the following:

          Edit Configuration File
          Look at the console-specific page in the sidebar of this wiki and note where the system's configuration file.

          For example, the GBA config file is /opt/retropie/configs/gba/retroarch.cfg so any changes made in there will apply only to GBA games, not to other systems.

          Now add the following above the #include line in that file:

          20 = Config, 21 = 1:1 PAR, 22 = Core Provided, 23 = 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

          eg: GBA 240x160 * 3 = 720 x 480

          custom_viewport_width = "720"
          custom_viewport_height = "480"

          the following two decide how far from the left and top the game screen is shown

          to centre the game display use your original resolution, minus the screen size, divided by two

          this example for 1080p screen (1920x1080)

          (1920 - 720) / 2 = 600

          custom_viewport_x = "600"

          (1080 - 480) / 2 = 300

          custom_viewport_y = "300"

          1 Reply Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator
            last edited by

            just FYI, aspect_ratio_index = "23" isn't 'custom viewport' anymore. i think it's 24 now.

            it seems like this config change would be the same as just setting 'integer scaling' for GBA to on via https://github.com/RetroPie/RetroPie-Setup/wiki/Configuration-Editor

            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.