RetroArch and weird display resolution
-
Pi Model or other hardware: 4B
Power Supply used: Labists
RetroPie Version Used: 4.8
Built From: Pre made SD Image on RetroPie website for Pi4
USB Devices connected: GamepadI have a HDMI display with a resolution of 1280x800. Raspi-config is set to use the displays default resolution. When I start a Core with no specified resolution, it crashes and I am back to Emulation Station. Here is a log with verbose logging:
Parameters: Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gambatte/gambatte_libretro.so --config /opt/retropie/configs/gbc/retroarch.cfg "/home/pi/RetroPie/roms/gbc/Metroid II - Return of Samus (World).zip" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] [Config]: Loading config from: "/opt/retropie/configs/gbc/retroarch.cfg". [INFO] [Config]: Appending config "/dev/shm/retroarch.cfg". [WARN] [GameMode]: GameMode cannot be enabled on this system ("dlopen failed - libgamemode.so: cannot open shared object file: No such file or directory.") https://github.com/FeralInteractive/gamemode needs to be installed. [WARN] [Config]: GameMode unsupported - disabling... [INFO] RetroArch 1.10.0 (Git e9e85f3) [INFO] === Build ======================================= [INFO] Capabilities: NEON VFPv3 VFPv4 [INFO] Built: Jan 30 2022 [INFO] Version: 1.10.0 [INFO] Git: e9e85f3 [INFO] ================================================= [INFO] [Input]: Found input driver: "x". [INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-gambatte/gambatte_libretro.so" [INFO] [Overrides]: No core-specific overrides found at "/home/pi/.config/retroarch/config/Gambatte/Gambatte.cfg". [INFO] [Overrides]: No content-dir-specific overrides found at "/home/pi/.config/retroarch/config/Gambatte/gbc.cfg". [INFO] [Overrides]: No game-specific overrides found at "/home/pi/.config/retroarch/config/Gambatte/Metroid II - Return of Samus (World).cfg". [INFO] [Environ]: GET_CORE_OPTIONS_VERSION. [INFO] [Environ]: GET_LANGUAGE: "0". [INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2_INTL. [INFO] [Environ]: GET_VFS_INTERFACE. Core requested version >= V1, providing V3. [INFO] [Remaps]: Remap directory: "/opt/retropie/configs/gbc/". [INFO] [Overrides]: Redirecting save file to "/home/pi/RetroPie/roms/gbc/Metroid II - Return of Samus (World).srm". [INFO] [Overrides]: Redirecting save state to "/home/pi/RetroPie/roms/gbc/Metroid II - Return of Samus (World).state". [INFO] [Environ]: GET_LOG_INTERFACE. [INFO] [Environ]: PERFORMANCE_LEVEL: 4. [INFO] [Environ]: GET_MESSAGE_INTERFACE_VERSION. [INFO] [Environ]: GET_LANGUAGE: "0". [INFO] [Content]: Loading content file: "/home/pi/RetroPie/roms/gbc/Metroid II - Return of Samus (World).zip#Metroid II - Return of Samus (World).gb". [INFO] [Content]: Did not find a valid content patch. [INFO] [Content]: CRC32: 0xdee05370. [INFO] [Environ]: GET_CAN_DUPE: true [INFO] [Environ]: GET_RUMBLE_INTERFACE. [libretro INFO] [Gambatte] Rumble environment supported. [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [libretro INFO] [Gambatte] MBC1 ROM+RAM+BATTERY loaded. [libretro INFO] [Gambatte] rambanks: 1 [libretro INFO] [Gambatte] rombanks: 16 [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [libretro INFO] [Gambatte] Got internal game name: METROID2. [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [libretro INFO] [Gambatte] Using custom palette: /home/pi/RetroPie/BIOS/palettes/default.pal [INFO] [Environ]: SET_MEMORY_MAPS. [INFO] [Environ]: SET_SUPPORT_ACHIEVEMENTS: yes. [INFO] [SRAM]: Skipping SRAM load. [INFO] [Core]: Version of libretro API: 1, Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 32917.50 Hz. [INFO] [Video]: Set video size to: 1280x800. [INFO] [Video]: Starting threaded video driver ... [WARN] [DRM]: Couldn't get device resources. [WARN] [DRM]: Couldn't get device resources. [INFO] [DRM]: Found 1 connectors. [INFO] [DRM]: Connector 0 connected: yes [INFO] [DRM]: Connector 0 has 28 modes. [INFO] [DRM]: Connector 0 assigned to monitor index: #1. [INFO] [DRM]: Mode 0: (1920x1080) 1920 x 1080, 60.000000 Hz [INFO] [DRM]: Mode 1: (1920x1080) 1920 x 1080, 59.940201 Hz [INFO] [DRM]: Mode 2: (1920x1080i) 1920 x 1080, 30.000000 Hz [INFO] [DRM]: Mode 3: (1920x1080i) 1920 x 1080, 29.970100 Hz [INFO] [DRM]: Mode 4: (1920x1080) 1920 x 1080, 50.000000 Hz [INFO] [DRM]: Mode 5: (1920x1080i) 1920 x 1080, 25.000000 Hz [INFO] [DRM]: Mode 6: (1280x768) 1280 x 768, 59.870228 Hz [INFO] [DRM]: Mode 7: (1280x720) 1280 x 720, 60.000000 Hz [INFO] [DRM]: Mode 8: (1280x720) 1280 x 720, 59.940201 Hz [INFO] [DRM]: Mode 9: (1280x720) 1280 x 720, 50.000000 Hz [INFO] [DRM]: Mode 10: (1024x768) 1024 x 768, 75.028580 Hz [INFO] [DRM]: Mode 11: (1024x768) 1024 x 768, 70.069359 Hz [INFO] [DRM]: Mode 12: (1024x768) 1024 x 768, 60.003841 Hz [INFO] [DRM]: Mode 13: (800x600) 800 x 600, 75.000000 Hz [INFO] [DRM]: Mode 14: (800x600) 800 x 600, 72.187569 Hz [INFO] [DRM]: Mode 15: (800x600) 800 x 600, 60.316540 Hz [INFO] [DRM]: Mode 16: (800x600) 800 x 600, 56.250000 Hz [INFO] [DRM]: Mode 17: (720x576) 720 x 576, 50.000000 Hz [INFO] [DRM]: Mode 18: (720x576i) 720 x 576, 25.000000 Hz [INFO] [DRM]: Mode 19: (720x480) 720 x 480, 60.000000 Hz [INFO] [DRM]: Mode 20: (720x480) 720 x 480, 59.940060 Hz [INFO] [DRM]: Mode 21: (720x480i) 720 x 480, 30.001110 Hz [INFO] [DRM]: Mode 22: (720x480i) 720 x 480, 29.970030 Hz [INFO] [DRM]: Mode 23: (640x480) 640 x 480, 75.000000 Hz [INFO] [DRM]: Mode 24: (640x480) 640 x 480, 72.808800 Hz [INFO] [DRM]: Mode 25: (640x480) 640 x 480, 60.000000 Hz [INFO] [DRM]: Mode 26: (640x480) 640 x 480, 59.940475 Hz [INFO] [DRM]: Mode 27: (720x400) 720 x 400, 70.081665 Hz [INFO] [GL]: Found GL context: "kms". [INFO] [GL]: Detecting screen resolution: 1280x800. [ERROR] [KMS/EGL]: Did not find suitable video mode for 1280 x 800. /opt/retropie/supplementary/runcommand/runcommand.sh: line 1304: 1319 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-gambatte/gambatte_libretro.so --config /opt/retropie/configs/gbc/retroarch.cfg "/home/pi/RetroPie/roms/gbc/Metroid II - Return of Samus (World).zip" --verbose --appendconfig /dev/shm/retroarch.cfg
As you can see, the resolutions are not compatible. Is there a way to enable RetroArch for more video modes? I think it was possible to use 1280x800 a few years ago ...
When I use one of the resolutions above for the core, the game starts normal, but I have a resolution which does not fit to the screen.
-
@MSP430 said in RetroArch and weird display resolution:
As you can see, the resolutions are not compatible. Is there a way to enable RetroArch for more video modes? I think it was possible to use 1280x800 a few years ago ...
Your display's EDID doesn't list
1280x800
as a supported resolution, hence RetroArch doesn't find it and refuses to start. You can tell to the GPU driver to ignore the video modes sent by your display by addinghdmi_ignore_edid=0xa5000080
to
/boot/config.txt
. -
Thanks, I will try this, but I doubt this will help. Raspberry PI OS and Emulation Station recognise the display correctly as they feed it with 1280x800 automaticaly. RetroArch seems to miss this information or ignores it.
Edit: With hdmi_ignore_edid=0xa5000080, resolution in raspi-config = 1280x800 and no resolution set in RetroArch everything works fine. I still do not realy get why, but thanks a lot @mitu!
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.