flathub / org.libretro.RetroArch

https://flathub.org/apps/details/org.libretro.RetroArch
Creative Commons Zero v1.0 Universal
18 stars 16 forks source link

CRT Switches not working - Add xrandr_timing X11_LIBRARY #183

Closed alexb3d closed 2 years ago

alexb3d commented 3 years ago

I recently mistakenly reported that bug in the main repository. The bug is still in this version...

Activating the option does nothing. When starting the game it maintains the same resolution and displays a message: [Video]: Setting refresh rate to: 0.000 Hz This option works in the PPA and the Appimage.

Tested on an Intel HD Graphics 4000 with Ubuntu 20.04.2

~$ flatpak run org.libretro.RetroArch --menu --verbose --log-file /home/lex/log.txt
[INFO] RetroArch 1.9.6 (Git 0a5fd83)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
[INFO] Capabilities:  MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX
[INFO] Built: Jun 27 2021
[INFO] Version: 1.9.6
[INFO] Git: 0a5fd83
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Video @ 960x720
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 1600x1200.
[INFO] [GLX]: Window manager is GNOME Shell.
[INFO] [GLX]: X = 0, Y = 0, W = 960, H = 720.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2).
[INFO] [GL]: Version: 3.0 Mesa 21.1.1 (git-abac12bc75).
[INFO] [GL]: Using resolution 960x720
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] [GLSL]: Checking GLSL shader support ...
[WARN] [GL]: Stock GLSL shaders will be used.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [Joypad]: Found joypad driver: "sdl2".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Video]: Found display server: x11
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Display]: Found display driver: "gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[ERROR] [Core Info] Failed to write to core info cache file: /app/share/libretro/info/core_info.cache
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [SRAM]: SRAM will not be saved.
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_music_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_video_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_image_history.lpl].
[INFO] [Playlist]: Loading favorites file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_favorites.lpl].
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [PulseAudio]: Pausing.
[INFO] [CRT]: Requested Reolution: 640x480@60.000000 
[INFO] [CRT]: SR init 
[INFO] [CRT]: CRT Mode: 3 - pc_31_120 
[INFO] [CRT]: SR init_disp 
[INFO] SRobj: RA Monitor Index: (null)
[ERROR] XRANDR: <1> (xrandr_timing) [ERROR] missing X11_LIBRARY library
[INFO] [CRT]: SR Disp Monitor Index: Auto  
[INFO] [CRT]: SR rtn 0 
[INFO] [CRT]: SR failed to init 
[INFO] [CRT]: Setting Video Screen Size to: 640x480 
[INFO] [CRT]: Setting Aspect Ratio: 1.333333 
[INFO] [Video]: Setting refresh rate to: 0.000 Hz.
[INFO] [CORE]: Using content: /home/lex/Games/tmp/sega genesis/Sonic The Hedgehog (Japan, Europe, Korea).zip.
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [XINERAMA]: Saved monitor #0.
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] RetroArch 1.9.6 (Git 0a5fd83)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
[INFO] Capabilities:  MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX
[INFO] Built: Jun 27 2021
[INFO] Version: 1.9.6
[INFO] Git: 0a5fd83
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Core]: Loading dynamic libretro core from: "/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/cores/genesis_plus_gx_libretro.so"
[INFO] [Overrides]: No core-specific overrides found at "/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/config/Genesis Plus GX/Genesis Plus GX.cfg".
[INFO] [Overrides]: No content-dir-specific overrides found at "/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/config/Genesis Plus GX/sega genesis.cfg".
[INFO] [Overrides]: No game-specific overrides found at "/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/config/Genesis Plus GX/Sonic The Hedgehog (Japan, Europe, Korea).cfg".
[INFO] [Environ]: GET_CORE_OPTIONS_VERSION.
[INFO] [Environ]: GET_LANGUAGE: "0".
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_INTL.
[INFO] [Environ]: SET_CONTROLLER_INFO.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_CONTENT_INFO_OVERRIDE.
[INFO] [CONTENT OVERRIDE]: File Extension: 'mdx' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] [CONTENT OVERRIDE]: File Extension: 'md' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] [CONTENT OVERRIDE]: File Extension: 'smd' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] [CONTENT OVERRIDE]: File Extension: 'gen' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] [CONTENT OVERRIDE]: File Extension: 'bms' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] [CONTENT OVERRIDE]: File Extension: 'sms' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] [CONTENT OVERRIDE]: File Extension: 'gg' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] [CONTENT OVERRIDE]: File Extension: 'sg' - need_fullpath: FALSE, persistent_data: FALSE
[INFO] Core requested VFS version >= v1, providing v3
[INFO] [Remaps]: Remap directory: "/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/config/remaps".
[INFO] [Overrides]: Redirecting save file to "/home/lex/Games/x.data/RetroArch/config/saves/Sonic The Hedgehog (Japan, Europe, Korea).srm".
[INFO] [Overrides]: Redirecting save state to "/home/lex/Games/x.data/RetroArch/config/states/Sonic The Hedgehog (Japan, Europe, Korea).state".
[INFO] [Environ]: PERFORMANCE_LEVEL: 1.
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Environ]: PERFORMANCE_LEVEL: 7.
[INFO] [Environ]: SET_SERIALIZATION_QUIRKS.
[INFO] [Environ]: SET_DISK_CONTROL_INTERFACE.
[INFO] [CONTENT LOAD]: Loading content file: /home/lex/Games/tmp/sega genesis/Sonic The Hedgehog (Japan, Europe, Korea).zip#Sonic The Hedgehog (Japan, Europe, Korea).md
[INFO] Did not find a valid content patch.
[INFO] [CONTENT LOAD]: CRC32: 0xafe05eee
[INFO] [Environ]: RETRO_ENVIRONMENT_GET_GAME_INFO_EXT.
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[libretro INFO] Frontend supports RGB565 - will use that instead of XRGB1555.
[INFO] [Environ]: SYSTEM_DIRECTORY: "/home/lex/Games/x.data/RetroArch/config/bios".
[INFO] [Environ]: GET_SAVE_DIRECTORY.
[libretro INFO] Game Genie ROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/ggenie.bin
[libretro INFO] Action Replay (Pro) ROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/areplay.bin
[libretro INFO] Sonic & Knuckles (2 MB) ROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/sk.bin
[libretro INFO] Sonic & Knuckles UPMEM (256 KB) ROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/sk2chip.bin
[libretro INFO] Mega Drive TMSS BOOTROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios_MD.bin
[libretro INFO] Game Gear TMSS BOOTROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios.gg
[libretro INFO] Master System (PAL) BOOTROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios_E.sms
[libretro INFO] Master System (NTSC-U) BOOTROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios_U.sms
[libretro INFO] Master System (NTSC-J) BOOTROM should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios_J.sms
[libretro INFO] Mega CD (PAL) BIOS should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios_CD_E.bin
[libretro INFO] Sega CD (NTSC-U) BIOS should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios_CD_U.bin
[libretro INFO] Mega CD (NTSC-J) BIOS should be located at: /home/lex/Games/x.data/RetroArch/config/bios/bios_CD_J.bin
[libretro INFO] Mega CD (PAL) BRAM is located at: /home/lex/Games/x.data/RetroArch/config/saves/scd_E.brm
[libretro INFO] Sega CD (NTSC-U) BRAM is located at: /home/lex/Games/x.data/RetroArch/config/saves/scd_U.brm
[libretro INFO] Mega CD (NTSC-J) BRAM is located at: /home/lex/Games/x.data/RetroArch/config/saves/scd_J.brm
[libretro INFO] Sega/Mega CD RAM CART is located at: /home/lex/Games/x.data/RetroArch/config/saves/cart.brm
[INFO] [Environ]: SET_AUDIO_BUFFER_STATUS_CALLBACK.
[INFO] [SRAM]: Skipping SRAM load..
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 44100.00 Hz.
[INFO] [Video]: Video @ 879x576
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 1600x1200.
[INFO] [GLX]: Window manager is GNOME Shell.
[INFO] [GLX]: X = 0, Y = 0, W = 879, H = 576.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2).
[INFO] [GL]: Version: 3.0 Mesa 21.1.1 (git-abac12bc75).
[INFO] [GL]: Using resolution 879x576
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] [GLSL]: Checking GLSL shader support ...
[WARN] [GL]: Stock GLSL shaders will be used.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [Joypad]: Found joypad driver: "sdl2".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Video]: Found display server: x11
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Display]: Found display driver: "gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[ERROR] [Core Info] Failed to write to core info cache file: /app/share/libretro/info/core_info.cache
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_music_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_video_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_image_history.lpl].
[INFO] [Playlist]: Loading favorites file: [/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/content_favorites.lpl].
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_MINIMUM_AUDIO_LATENCY.
[INFO] [CRT]: Requested Reolution: 256x192@59.922745 
[INFO] [CRT]: SR init 
[INFO] [CRT]: CRT Mode: 3 - pc_31_120 
[INFO] [CRT]: SR init_disp 
[INFO] SRobj: RA Monitor Index: (null)
[ERROR] XRANDR: <2> (xrandr_timing) [ERROR] missing X11_LIBRARY library
[INFO] [CRT]: SR Disp Monitor Index: Auto  
[INFO] [CRT]: SR rtn 0 
[INFO] [CRT]: SR failed to init 
[INFO] [CRT]: Setting Video Screen Size to: 2560x192 
[INFO] [CRT]: Setting Aspect Ratio: 13.333333 
[INFO] [Video]: Setting refresh rate to: 0.000 Hz.
[INFO] [Environ]: SET_GEOMETRY: 320x224, aspect: 1.306.
[INFO] [CRT]: Requested Reolution: 320x224@59.922745 
[INFO] [CRT]: SR init 
[INFO] [CRT]: CRT Mode: 3 - pc_31_120 
[INFO] [CRT]: SR init_disp 
[INFO] SRobj: RA Monitor Index: (null)
[ERROR] XRANDR: <3> (xrandr_timing) [ERROR] missing X11_LIBRARY library
[INFO] [CRT]: SR Disp Monitor Index: Auto  
[INFO] [CRT]: SR rtn 0 
[INFO] [CRT]: SR failed to init 
[INFO] [CRT]: Setting Video Screen Size to: 2560x224 
[INFO] [CRT]: Setting Aspect Ratio: 11.428572 
[INFO] [Video]: Setting refresh rate to: 0.000 Hz.
[INFO] [Config]: Saved new config to "/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/retroarch.cfg".
[INFO] [SRAM]: Saving RAM type #0 to "/home/lex/Games/x.data/RetroArch/config/saves/Sonic The Hedgehog (Japan, Europe, Korea).srm".
[INFO] [SRAM]: Saved successfully to "/home/lex/Games/x.data/RetroArch/config/saves/Sonic The Hedgehog (Japan, Europe, Korea).srm".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 10 seconds.
[INFO] Saving runtime log file: /home/lex/.var/app/org.libretro.RetroArch/config/retroarch/playlists/logs/Genesis Plus GX/Sonic The Hedgehog (Japan, Europe, Korea).lrtl
[INFO] [Core]: Unloading game..
[INFO] [PulseAudio]: Pausing.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] [Core Options]: Saved core options file to "/home/lex/.var/app/org.libretro.RetroArch/config/retroarch/config/Genesis Plus GX/Genesis Plus GX.opt"
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [XINERAMA]: Saved monitor #0.
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
alexb3d commented 3 years ago

I can confirm switchres does not switch the resolution in 1.9.6 on Win10/64

Dude, this repository is for the Flatpak version on Linux :)

ArcadeTV commented 3 years ago

I can confirm switchres does not switch the resolution in 1.9.6 on Win10/64

Dude, this repository is for the Flatpak version on Linux :)

I'm sorry, of course. Post deleted.

RobLoach commented 3 years ago

Is likely related to the Flatpak build......

[ERROR] XRANDR: <2> (xrandr_timing) [ERROR] missing X11_LIBRARY library

alphanu1 commented 3 years ago

@RobLoach should probably make this title a little more descriptive "CRT Switches not working with Flatpack - Add xrandr_timing X11_LIBRARY" as CRT Switches is working in general.

RobLoach commented 3 years ago

It's part of the Flathub repository, I'd assume that would be enough? :shrug:

alphanu1 commented 3 years ago

OH, opps I missed that, sorry. Following lots of these CRT issues ATM

alexb3d commented 3 years ago

I closed it by mistake. Follow the same problem in 1.9.7.

I think I'm pretty confused >_< I was testing 1.9.6. The FlatPak version has not yet been updated.

alexb3d commented 3 years ago

If these libraries are installed, the CTR Switch works with ppa and AppImage. In Flatpaak it does not do anything. sudo apt-get install libx11-dev libxrandr-dev

alphanu1 commented 3 years ago

There is an open issue on the flatpak version to see include missing libraries

alexb3d commented 3 years ago

I think I did not understand that message. So, can I close this post? so as not to have repeated. ( In the PPA and Snap are already working excellent. )