MME4CRT SR2(Switchres) - Huge Update. Most User Issues Resolved

Hello @hunterk

sudo apt-get install libx11-dev libxrandr-dev

Could this be included as a dependency in the installation of the PPA, Flatpak/Snap? I do not know how it would be on the Appimage. Without that the CRT does not work.

Or make the clarification in the docs.

I just added them to the snap, so whenever it finishes building (should be in about 30 mins), you could try to update to the “edge” channel and see if it worked. I’m not super-confident it will, due to snap’s sandboxing stuff, though. The AppImage might have more success there.

EDIT: you might also send a PR to include that bit in the docs, though. It’s good info to have, just for reference.

1 Like

You would need to re install you resolution so that they are dynamic. As you would following the guide for installing the normal way for GrooveyMame

I have updated the docs for this exception. Hopefully the PR will get merged quickly.

2 Likes

That is correct. It does say that currently. In all my test user, use cases this did not come up as a issue.

As I have mentioned in my previous post. The docs will be updated soon.

I need to investigate this more. It does seem like an SR2 issue. So i will need to bring this up with the other devs

1 Like

Thank you, I’m going to install the SNAP to test all versions that can be installed.

I did not know what I could do this, I think @Alphanu already shipped the report.

Seems to be working fine :slight_smile: I like how it correctly sets the refresh rate for the emulator. SNES runs at 60.08 and SMS/GEN run at 59.923, even though they’re both using the 2560x224/192 modelines generated.

2 Likes

I just added the runtime deps to the PPA recipes, as well, so whenever the testing PPA does another round of builds, you can try those, too.

I installed the PPA Testing, has not yet been updated, then I try again.

The Snap, when activating the option the program closes immediately.

Does the snap tell you anything useful in the log? It looks like the PPA just updated 5 mins ago: https://launchpad.net/~libretro/+archive/ubuntu/testing/+packages?field.name_filter=retroarch&field.status_filter=published&field.series_filter=

Upon updating the PPA, the missing libraries were installed. It works perfectly the switchres in the PPA. :+1:t3:

I am looking for how a log is generated with the snap and I can not get as. I found this but I do not understand. :sweat_smile:

Can you tell me how do you please?

1 Like

Just a regular RetroArch log is what we need. Settings > logs > logging verbosity to debug-0, log to file ON.

I followed the steps, it is saved inside a remote Snap folder (~/snap/retroarch/791/.config/retroarch/logs). It is this?

[INFO] RetroArch 1.9.9 (Git 36888612eb)
[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: Sep  5 2021
[INFO] Version: 1.9.9
[INFO] Git: 36888612eb
[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 1280x960.
[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.0.3.
[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] [udev]: Pad #0 (/dev/input/event9) supports force feedback.
[INFO] [udev]: Pad #0 (/dev/input/event9) supports 16 force feedback effects.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [DBus]: Suspended screensaver via DBus.
[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.
[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.
[ERROR] [MIDI]: snd_seq_open failed with error -2.
[ERROR] [MIDI]: Initialization failed.
[INFO] [SRAM]: SRAM will not be saved.
[INFO] [Playlist]: Loading history file: [/home/lex/snap/retroarch/791/.config/retroarch/content_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/snap/retroarch/791/.config/retroarch/content_music_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/snap/retroarch/791/.config/retroarch/content_video_history.lpl].
[INFO] [Playlist]: Loading history file: [/home/lex/snap/retroarch/791/.config/retroarch/content_image_history.lpl].
[INFO] [Playlist]: Loading favorites file: [/home/lex/snap/retroarch/791/.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: [email protected] 
[INFO] [CRT]: SR init 
[INFO] [CRT]: CRT Mode: 3 - pc_31_120 
[INFO] [CRT]: SR init_disp 
[INFO] [CRT]: RA Monitor Index Auto: auto
[ERROR] XRANDR: <1> (init) [ERROR] missing XRANDR_LIBRARY library
[INFO] [CRT]: SR Disp Monitor Index Auto: Auto  
[INFO] [CRT]: SR rtn 0 
[INFO] [CRT]: SR failed to init 
[ERROR] XRANDR: <1> (set_timing) [ERROR] no screen detected

ok, that’s the stable build. Try switching to the ‘edge’ channel by doing: sudo snap refresh retroarch --edge

1 Like

I already tried Snap. It works impeccable. :clap:t2:

I think even better than the PPA, because in the PPA sometimes (few) when retroarch is closed. It does not recover the resolution of the CRT monitor.

Now, to try the AppImage I need to unistall the PPA retroarch. Because if the library is installed from the repository the CRT in the Appimage works, it only does not serve.

I have the nightly installed.

[INFO] RetroArch 1.9.9 (Git ad4b51b)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
[INFO] Funcionalidades:  MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX
[INFO] Built: Sep 12 2021
[INFO] Version: 1.9.9
[INFO] Git: ad4b51b
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Versión de la API libretro: 1
[INFO] API usada en la compilación: 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 1280x960.
[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.0.3.
[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] [udev]: Pad #0 (/dev/input/event9) supports force feedback.
[INFO] [udev]: Pad #0 (/dev/input/event9) supports 16 force feedback effects.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[WARN] Could not suspend screen saver.
[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.
[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]: No se guardará la SRAM.
[INFO] [Playlist]: Cargando historial: [/home/lex/.appimage/RetroArch-Station/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/content_history.lpl].
[INFO] [Playlist]: Cargando historial: [/home/lex/.appimage/RetroArch-Station/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/content_music_history.lpl].
[INFO] [Playlist]: Cargando historial: [/home/lex/.appimage/RetroArch-Station/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/content_image_history.lpl].
[INFO] [Playlist]: Cargando favoritos: [/home/lex/.appimage/RetroArch-Station/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.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: [email protected] 
[INFO] [CRT]: SR init 
[INFO] [CRT]: CRT Mode: 3 - pc_31_120 
[INFO] [CRT]: SR init_disp 
[INFO] [CRT]: RA Monitor Index Auto: auto
[ERROR] XRANDR: <1> (xrandr_timing) [ERROR] missing X11_LIBRARY library
[INFO] [CRT]: SR Disp Monitor Index Auto: Auto  
[INFO] [CRT]: SR rtn 0 
[INFO] [CRT]: SR failed to init 
[INFO] [CRT]: Setting Aspect Ratio: 1.333333 
[INFO] [CRT]: Setting Video Screen Size to: 320x240 
[INFO] [Video]: Setting refresh rate to: 0.000 Hz.
[INFO] [PulseAudio]: Unpausing.
[INFO] [PulseAudio]: Pausing.
[INFO] [PulseAudio]: Unpausing.
[INFO] [Config]: Se ha guardado una nueva configuración en "/home/lex/.appimage/RetroArch-Station/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/retroarch.cfg".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [PulseAudio]: Pausing.
[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] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
2 Likes

Does this work on Lakka? I would like to use a Pi to auto switch scan rates between games for a Tri Sync arcade monitor (15Khz, 24KHz, 31Khz) Any input is appreciated!