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

    lr-pcsx-rearmed unable to find suitable video mode

    Scheduled Pinned Locked Moved Help and Support
    lr-pcsx-rearmedresolution
    12 Posts 2 Posters 1.2k 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.
    • N
      Nevohteeb
      last edited by

      Hello everyone,

      I am trying to setup lr-pcsx-rearmed on my RPI4, which is installed in my arcade cabinet.
      The video is provided to the cabinet by GPIO using a homemade VGA 666 to JAMMA adapter.
      That works for about a year now and I usually use it for MAME, NES, Master System, SNES and MegaDrive games.

      Due to the RPI4 video mode switch limitations (unable to switch resolution on the fly) I usually set the proper resolution in the /boot/config.txt file and reboot the RPI4 whenever I wanna change the system I want to play.

      Now, it seems I can not do that using lr-pcsx-rearmed.
      As an example, I tried to launch Rayman (USA) and got a segmentation fault. (verbose log above).

      The problem is the following : Rayman is a 320x239 (not 240) game, so I set the RPI4 in 320x240 mode, but the emulator is looking for a 256x240 mode at start, does not find it and crashes.
      If I set the RPI4 in 256x240 mode, the game launches normally but in game one can easily see that it is not the proper resolution. I can set 320x239 setting x-width and y-width in reatroach, but of course the screen is cropped.

      When does concern me is that it only happens with lr-pcsx-rearmed. I can launch any other emulator in any resolution and it works.

      Is there a specific option to set in the retroarch-core-options file or something ?

      INFO] [Video]: Video @ 256x240
      [INFO] [Video]: Starting threaded video driver ...
      [INFO] [DRM]: Found 1 connectors.
      [INFO] [DRM]: Connector 0 connected: yes
      [INFO] [DRM]: Connector 0 has 1 modes.
      [INFO] [DRM]: Connector 0 assigned to monitor index: #1.
      [INFO] [DRM]: Mode 0: (FIXED_MODE) 320 x 240, 60 Hz
      [INFO] [GL]: Found GL context: kms
      [INFO] [GL]: Detecting screen resolution 320x240.
      [ERROR] [KMS/EGL]: Did not find suitable video mode for 256 x 240.
      /opt/retropie/supplementary/runcommand/runcommand.sh : ligne 1285 :  1867 Erreur de segmentation  /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-pcsx-rearmed/pcsx_rearmed_libretro.so --config /opt/retrop\
      ie/configs/psx/retroarch.cfg "/home/pi/RetroPie/roms/psx/Rayman (USA).cue" --verbose --appendconfig /dev/shm/retroarch.cfg
      
      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Looks like the 256x240 resolution might have been saved to the configuration file.
        Please add more info about your setup, as detailed in https://retropie.org.uk/forum/topic/3/read-this-first. Post the /opt/retropie/configs/psx/retroarch.cfg file on pastebin.com and provide the link.

        N 1 Reply Last reply Reply Quote 0
        • N
          Nevohteeb @mitu
          last edited by

          @mitu said in lr-pcsx-rearmed unable to find suitable video mode:

          https://retropie.org.uk/forum/topic/3/read-this-first

          You're right, I am so sorry I did not provide enough informations.
          Here they are.

          Pi Model or other hardware: RPI 4
          Power Supply used: official one
          RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): Linux retropie 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
          Built From: (Pre made SD Image on RetroPie website, updated via the retropie-setup script.
          USB Devices connected:
          Controller used: arcade cabinet (virtual keyboard) and Retro-bit SEGA MegaDrive 6 buttons pad
          Error messages received: [KMS/EGL]: Did not find suitable video mode for 256 x 240.
          Emulator: the emulator which is in concern is lr-pcsx-rearmed
          Attachment of config files:

          /opt/retropie/configs/psx/retroarch.cfg
          /opt/retropie/configs/all/retroarch.cfg
          /opt/retropie/configs/all/retroarch-core-options.cfg

          How to replicate the problem: juste by setting the resolution of RPI4 by any other than 256x240 one in the /bootconfig.txt file.

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

            Looking at the configuration files, I see that the video resolution is not set there, so that's ok. Do you have a per-game configuration or override that sets the video resolution to 256x240 for this game ?
            The system has only 1 resolution available (the one you've set via /boot/config.txt), but for some reason RetroArch tries to switch to 256 x 240.

            Btw, the lines about multitap added in /opt/retropie/configs/psx/retroarch.cfg have no effect, since they're actually core options - same options are already set in the core options file.

            N 1 Reply Last reply Reply Quote 0
            • N
              Nevohteeb @mitu
              last edited by

              @mitu said in lr-pcsx-rearmed unable to find suitable video mode:

              Looking at the configuration files, I see that the video resolution is not set there, so that's ok. Do you have a per-game configuration or override that sets the video resolution to 256x240 for this game ?

              I indeed checked that and did not found any resolution setting for the emulator anywhere.
              I do not have any per--game configuration file for this emulator. I tried with 3 different games and I always experience the same issue. Is there any chance the resolution is set in another file ?

              @mitu said in lr-pcsx-rearmed unable to find suitable video mode:

              The system has only 1 resolution available (the one you've set via /boot/config.txt), but for some reason RetroArch tries to switch to 256 x 240.

              RetroArch does that only with lr-pcsx-rearmed. All the other emulators automatically use the native (the one set in /boot/config.txt) resolution.

              It worth mentioning that I found that bug reported in some other threads (in 2016) and the solution was to reinstall the emulator from source. So I reinstalled the emulator twice, once from pre-compiled binary, once from sources, and the bug still remains.

              @mitu said in lr-pcsx-rearmed unable to find suitable video mode:

              Btw, the lines about multitap added in /opt/retropie/configs/psx/retroarch.cfg have no effect, since they're actually core options - same options are already set in the core options file.

              Yeah I saw that. I set that earlier to fix the "no controller recognized" bug. I'll delete those lines in the core file.

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

                @nevohteeb said in lr-pcsx-rearmed unable to find suitable video mode:

                It worth mentioning that I found that bug reported in some other threads (in 2016) and the solution was to reinstall the emulator from source. So I reinstalled the emulator twice, once from pre-compiled binary, once from sources, and the bug still remains.

                I don't know if it's not the same thing - the video backend for the Pi4 (DRM/KMS) is quite diffferent from the one available in earlier models.

                Can you upload a verbose log from the emulator to pastebin.com and post the link ?

                N 1 Reply Last reply Reply Quote 0
                • N
                  Nevohteeb @mitu
                  last edited by

                  @mitu

                  Sure, here are the 3 files that re generated in the/dev/shm/directory :

                  • runcommand.log
                  • runcommand.info
                  • retroarch.cfg

                  Thx a lot for the time you spend to help me.

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

                    @nevohteeb said in lr-pcsx-rearmed unable to find suitable video mode:

                    runcommand.log

                    You have a core override for lr-pcsx-rearmed:

                    [INFO] [Overrides] core-specific overrides found at /home/pi/.config/retroarch/config/PCSX-ReARMed/PCSX-ReARMed.cfg.
                    

                    Delete the file and see if the games will start.

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      Nevohteeb @mitu
                      last edited by

                      @mitu
                      Damn, you're right. I have no idea why this file existed.
                      Game started as soon as I deleted it. Thx a lot !

                      1 Reply Last reply Reply Quote 0
                      • N
                        Nevohteeb
                        last edited by

                        I still have a question tho : according to the RetroPie doc page :

                        • global configuration is set in /opt/retropie/configs/all/retroarch.cfg
                        • system specific configuration is set in /opt/retropie/configs/psx/retroarch.cfg
                        • rom specific configuration is set in /home/pi/RetroPie/roms/psx/Rayman.cfg

                        Attempting to set a specific resolution for Rayman, I figured out that the file /home/pi/RetroPie/roms/psx/Rayman.cfg is absolutely not read at game start whereas /opt/retropie/configs/psx/retroarch.cfg is.

                        Moreovoer, investigating the runcommand.log file I read that :

                        [INFO] [Overrides] no core-specific overrides found at /home/pi/.config/retroarch/config/PCSX-ReARMed/PCSX-ReARMed.cfg.
                        [INFO] [Overrides] no content-dir-specific overrides found at /home/pi/.config/retroarch/config/PCSX-ReARMed/psx.cfg.
                        [INFO] [Overrides] no game-specific overrides found at /home/pi/.config/retroarch/config/PCSX-ReARMed/Rayman.cfg.
                        

                        Then I moved the /home/pi/RetroPie/roms/psx/Rayman.cfg file to the/ome/pi/.config/retroarch/config/PCSX-ReARMed/ and figured out that in this case, modifications are taken into account...

                        So, is the doc page obsolete or is there something I missed ?

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

                          @nevohteeb said in lr-pcsx-rearmed unable to find suitable video mode:

                          So, is the doc page obsolete or is there something I missed ?

                          The .cfg must contain the full file name, including the extension. So it's Rayman.cue.cfg, not just Rayman.cfg.

                          N 1 Reply Last reply Reply Quote 0
                          • N
                            Nevohteeb @mitu
                            last edited by

                            @mitu said in lr-pcsx-rearmed unable to find suitable video mode:

                            @nevohteeb said in lr-pcsx-rearmed unable to find suitable video mode:

                            So, is the doc page obsolete or is there something I missed ?

                            The .cfg must contain the full file name, including the extension. So it's Rayman.cue.cfg, not just Rayman.cfg.

                            You' re right. Thanks a lot.

                            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.