Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Solved PiSNES fullscreen since last update 6.1.1-Dragonblaze

    Emulator Arcade/PC/Console
    pisnes fullscreen since last update
    3
    10
    1725
    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.
    • bmjob
      bmjob last edited by bmjob

      Hi,
      i recently updated Recalbox to last version (6.1.1), and SNES emulator is now running full screen on my TV so it is deformed to 16/9 format.
      Is there a way to have a classic 4/3 native format on PiSNES like before ?

      i added snes.ratio=4/3 to recalbox.conf, but it's not working

      any ideas ?

      Running Recalbox on Raspberry Pi 1

      1 Reply Last reply Reply Quote 0
      • acris
        acris last edited by acris

        Hello @bmjob
        check my post on https://forum.recalbox.com/topic/18795/gpi-case-pisnes/9

        recalbox on PI0W on TV ?

        bmjob 1 Reply Last reply Reply Quote 0
        • bmjob
          bmjob @acris last edited by

          Hello @acris

          i modified "MaintainAspectRatio" inside /recalbox/share/system/configs/pisnes/snes9x.cfg like this:

          [Graphics]
          MaintainAspectRatio=1
          (it was =0 at the beginning)

          but when i run the snes emulator, MaintainAspectRatio is restored to MaintainAspectRatio=0, and emulation stays full screen at 16/9 format

          i also tried to delete the line MaintainAspectRatio=X
          and it is also restored to MaintainAspectRatio=0 just after snes emulator is started

          PS: i use recalbox on Raspberry pi 1 B, on TV through it's HDMI port, it works well thanks to the overclocking

          Running Recalbox on Raspberry Pi 1

          1 Reply Last reply Reply Quote 0
          • acris
            acris last edited by

            @bmjob
            modify to /share_int/system/configs/pisnes/snes9x.cfg and mount partition as write

            bmjob 1 Reply Last reply Reply Quote 0
            • bmjob
              bmjob @acris last edited by

              @acris do you mean: /recalbox/share_init/system/configs/pisnes/snes9x.cfg ?

              Running Recalbox on Raspberry Pi 1

              1 Reply Last reply Reply Quote 0
              • acris
                acris last edited by

                Yes indeed

                bmjob 1 Reply Last reply Reply Quote 0
                • bmjob
                  bmjob @acris last edited by

                  Hi @acris

                  i created a file snes9x.cfg inside /recalbox/share_init/system/configs/pisnes/ like this:

                  [Graphics]
                  MaintainAspectRatio=1

                  [Joystick]
                  A_1=0
                  B_1=1
                  L_1=4
                  R_1=5
                  SELECT_1=6
                  START_1=7
                  X_1=2
                  Y_1=3

                  [Path]
                  RomFolder=/recalbox/share/roms/snes
                  SaveStateFolder=/recalbox/share/saves/snes

                  but it's still not working, snes emulator stays full screen 16/9

                  Instead, i looked for what was forcing MaintainAspectRatio to 0 inside /recalbox/share/system/configs/pisnes/snes9x.cfg
                  and i found this script /usr/lib/python2.7/site-packages/configgen/generators/pisnes/pisnesGenerator.py containing:

                      # Full screen settings
                      key = "integerscale"
                      intScale = key in system.config and system.config[key] in ('1', 'true')
                      config.setOption(self.SECTION_GFX, "MaintainAspectRatio", '1' if intScale else '0')
                  

                  i changed the last line to this: config.setOption(self.SECTION_GFX, "MaintainAspectRatio", '1')
                  so it forces MaintainAspectRatio=1 in the /recalbox/share/system/configs/pisnes/snes9x.cfg config file

                  it works perfectly, snes emulator is now at 4/3 format

                  i hope this will help

                  Running Recalbox on Raspberry Pi 1

                  1 Reply Last reply Reply Quote 0
                  • loak
                    loak last edited by loak

                    @bmjob , Hi

                    Your workaround is good but will be erased with each update.

                    A safer way could be to use "surcharges" (in french). You can find explanations here : https://forum.recalbox.com/topic/18803/tuto-les-surcharges-mais-avec-vous (in french but google translate can help you)

                    Shortly :
                    First : Create a text file called .recalbox.conf (with the point at start of the name) into your /roms/snes directory. Inside this file create a line like pisnes.configfile=/recalbox/share/system/configs/pisnes/my_own_snes9x.cfg
                    I have a doubt : pisnes.configfile=... or snes9x.configfile=... @Fishou , @Bkg2k or @acris could confirm.
                    Next and last : Create the file my_own_snes9x.cfg where indicated in the previous file with, inside, the same stuff as the original file except your modded MaintainAspectRatio.

                    This file will takeover in place of the generated one.

                    As both files are into your share directory, they will stay after updates.

                    You could even put the file my_own_snes9x.cfg into your /roms/snes directory (and change the path in the first file). In such a way, if you do a copy of your /bios /roms and /saves folders, for security or for a fresh install, your mod will follow.

                    I've done it for piFBA in my GPI-case for the same problem of aspect ratio and it works well.

                    Rpi 3B, Shanwan PS3 controllers x2 with external BT dongle, Sandisk Extreme microSD 16Go, Sandisk Ultrafit 128Go exFat USB 3 key
                    GPI Case, PI0w, Sandisk Extreme microSD 64 Go
                    Recalbox last update

                    1 Reply Last reply Reply Quote 0
                    • loak
                      loak last edited by loak

                      I think it's snes.configfile=/path/to/your/modded/file

                      Rpi 3B, Shanwan PS3 controllers x2 with external BT dongle, Sandisk Extreme microSD 16Go, Sandisk Ultrafit 128Go exFat USB 3 key
                      GPI Case, PI0w, Sandisk Extreme microSD 64 Go
                      Recalbox last update

                      bmjob 1 Reply Last reply Reply Quote 0
                      • bmjob
                        bmjob @loak last edited by

                        Hi @loak

                        true, i didn't think about the updates...
                        i will try your method as it looks to be more clean

                        thanks

                        Running Recalbox on Raspberry Pi 1

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

                        Want to support us ?

                        66
                        Online

                        99.7k
                        Users

                        28.1k
                        Topics

                        187.1k
                        Posts

                        Copyright © 2021 recalbox.com