CRT TV 100Hz Scanlines and 240p games

The 100 Hz shouldn’t matter, as you should be able to feed it any lower refresh rate just fine, and the switchres option should be doing just that, as long as you are using exclusive fullscreen.

How is your PC hooked up to the TV?

the PC is hooked up on the TV by scart but I used a “Kenzei Box” between PC and TV

PC VGA Output=>VGA Input Kenzei=>Scart Output Kenzei=>Scart Input TV

Ok, that looks good. It doesn’t sound like it actually processes the signal at all, just combines the sync, so if you can get your PC to put out the proper modeline, it should do 240p just fine.

So, with that in mind, I’m guessing that the res-switching isn’t working properly. Does a verbose log mention anything about it not finding correct modelines or not being able to switch, etc? When you go fullscreen, does it print any yellow text mentioning refresh rate changes?

Yes I have the yellow text,

With super resolution like 2560x240 it a little bit difficult to read, but with native resolution (I put “0” on crt switch menu in retroarh.cfg) I can read correctly and it said 60 but never 100.

When I press F1 for the menu I go to Video setting to see my refresh rate and it near 60hz never 100hz.

If I turn on Black Frame insertion the refresh rate drop to 30hz, I have beautiful scanlines and a very beautiful screen but unplayable because of flicker it gives me a headache in a few minutes.

Here my log file with CRT Switch On and crt_switch_resolution_super = “2560”

[    INFO] RetroArch 1.7.3 (Git a6d5931)
    [INFO] === Build =======================================
    Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 
    Built: Aug 25 2018
    [INFO] Version: 1.7.3
    [INFO] Git: a6d5931
    [INFO] =================================================
    [INFO] Environ SET_PIXEL_FORMAT: RGB565.
    [INFO] Version of libretro API: 1
    [INFO] Compiled against API: 1
    [INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
    [INFO] [Video]: Timings deviate too much. Will not adjust. (Display = 59.62 Hz, Game = 60.00 Hz)
    [INFO] [Video]: Game FPS > Monitor FPS. Cannot rely on VSync.
    [INFO] [Video]: Video @ 2560x480
    error: XDG_RUNTIME_DIR not set in the environment.
    [ERROR] [Wayland]: Failed to connect to Wayland server.
    [INFO] [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
    [INFO] [GL]: Found GL context: x
    [INFO] [GL]: Detecting screen resolution 704x480.
    [INFO] [GLX]: Window manager is Openbox.
    [INFO] [XINERAMA]: Xinerama version: 1.1.
    [INFO] [XINERAMA]: Xinerama screens: 1.
    [INFO] [GLX]: Using Xinerama on screen #0.
    [INFO] [GLX]: X = 0, Y = 0, W = 704, H = 480.
    [INFO] [GLX]: Using windowed fullscreen.
    [INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
    [INFO] [GLX]: glXSwapIntervalEXT(0)
    [INFO] [GL]: Vendor: X.Org, Renderer: AMD CEDAR (DRM 2.50.0 / 4.15.0-32-generic, LLVM 6.0.0).
    [INFO] [GL]: Version: 3.0 Mesa 18.0.5.
    [INFO] [GL]: Using ARB_sync to reduce latency.
    [INFO] [GL]: Using resolution 704x480
    [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] Resetting shader to defaults ... 
    [INFO] [GL]: Using 4 textures.
    [INFO] [GL]: Loaded 1 program(s).
    [INFO] [GL]: Using GL_RGB565 for texture uploads.
    [INFO] [Joypad]: Found joypad driver: "udev".
    [INFO] [Font]: Using font rendering backend: freetype.
    [INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
    [INFO] [Video]: Found display server: x11
    [INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
    [INFO] [LED]: LED driver = 'null' 0x55e3efbf3320
    [INFO] [MIDI]: Initializing ...
    [INFO] [MIDI]: Input disabled.
    [INFO] [MIDI]: Output disabled.
    [INFO] [MIDI]: Initialized "null" driver.
    [INFO] SRAM will not be saved.
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_history.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_favorites.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_music_history.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_video_history.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_image_history.lpl].
    [INFO] [GL]: VSync => off
    [INFO] [GLX]: glXSwapIntervalEXT(0)
    [INFO] [PulseAudio]: Unpausing.
    [INFO] [GL]: VSync => on
    [INFO] [GLX]: glXSwapIntervalEXT(1)
    [INFO] [PulseAudio]: Pausing.
    [INFO] Setting refresh rate to: 60.000 Hz.
    [INFO] Setting refresh rate to: 60.000 Hz.
    xrandr: cannot find output "DVI0"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "DVI1"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "DVI2"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "DVI-1"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "DVI-2"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "VGA0"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "VGA1"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "VGA2"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "VGA-1"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: cannot find output "VGA-2"
    xrandr: --delmode requires two arguments
    Try 'xrandr --help' for more information.
    xrandr: --rmmode requires an argument
    Try 'xrandr --help' for more information.
    sh: 1: xdotool: not found
    sh: 1: xdotool: not found
    sh: 1: xdotool: not found
    sh: 1: xdotool: not found
    [INFO] Using content: /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.zip.
    [INFO] arg #0: retroarch
    [INFO] arg #1: /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.zip
    [INFO] arg #2: -c
    [INFO] arg #3: /home/retro-gaming/.config/retroarch/retroarch.cfg
    [INFO] arg #4: -L
    [INFO] arg #5: /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/cores/fbalpha_libretro.so
    [INFO] Unloading game..
    [INFO] Unloading core..
    [INFO] 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] Set config file to : /home/retro-gaming/.config/retroarch/retroarch.cfg
    [INFO] RetroArch 1.7.3 (Git a6d5931)
    [INFO] Redirecting save file to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.srm".
    [INFO] Redirecting savestate to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.state".
    [INFO] === Build =======================================
    Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 
    Built: Aug 25 2018
    [INFO] Version: 1.7.3
    [INFO] Git: a6d5931
    [INFO] =================================================
    [INFO] Loading dynamic libretro core from: "/home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/cores/fbalpha_libretro.so"
    [INFO] [overrides] no core-specific overrides found at /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/configs/FB Alpha/FB Alpha.cfg.
    [INFO] [overrides] no content-dir-specific overrides found at /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/configs/FB Alpha/roms.cfg.
    [INFO] [overrides] no game-specific overrides found at /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/configs/FB Alpha/hsf2.cfg.
    [INFO] Environ SET_SUBSYSTEM_INFO.
    [INFO] Special game type: CBS ColecoVision
    [INFO]   Ident: cv
    [INFO]   ID: 1
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: MSX 1
    [INFO]   Ident: msx
    [INFO]   ID: 4
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Nec PC-Engine
    [INFO]   Ident: pce
    [INFO]   ID: 5
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Nec SuperGrafX
    [INFO]   Ident: sgx
    [INFO]   ID: 7
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Nec TurboGrafx-16
    [INFO]   Ident: tg16
    [INFO]   ID: 9
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Sega GameGear
    [INFO]   Ident: gg
    [INFO]   ID: 2
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Sega Master System
    [INFO]   Ident: sms
    [INFO]   ID: 8
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Sega Megadrive
    [INFO]   Ident: md
    [INFO]   ID: 3
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Sega SG-1000
    [INFO]   Ident: sg1k
    [INFO]   ID: 6
    [INFO]   Content:
    [INFO]     Rom (required)
    [INFO] Special game type: Neogeo CD
    [INFO]   Ident: neocd
    [INFO]   ID: 10
    [INFO]   Content:
    [INFO]     Iso (required)
    [INFO] Remaps: remap directory: /home/retro-gaming/.config/retroarch/config/remaps
    [INFO] Remaps: no game-specific remap found at /home/retro-gaming/.config/retroarch/config/remaps/FB Alpha/hsf2.rmp.
    [INFO] Remaps: no content-dir-specific remap found at /home/retro-gaming/.config/retroarch/config/remaps/FB Alpha/roms.rmp.
    [INFO] Remaps: no core-specific remap found at /home/retro-gaming/.config/retroarch/config/remaps/FB Alpha/FB Alpha.rmp.
    [INFO] Redirecting save file to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.srm".
    [INFO] Redirecting savestate to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.state".
    [INFO] Environ GET_LOG_INTERFACE.
    [INFO] Content loading skipped. Implementation will load it on its own.
    [libretro INFO] Setting save dir to /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/
    [INFO] Environ SYSTEM_DIRECTORY: "/home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/system".
    [libretro INFO] Setting system dir to /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/system
    [INFO] Environ SET_CONTROLLER_INFO.
    [INFO] Controller port: 1
    [INFO]    Classic (ID: 5)
    [INFO]    Modern (ID: 517)
    [INFO] Controller port: 2
    [INFO]    Classic (ID: 5)
    [INFO]    Modern (ID: 517)
    [INFO] Environ SET_VARIABLES.
    [INFO] Environ GET_VARIABLE fba-cpu-speed-adjust:
    [INFO] 	100
    [INFO] Environ GET_VARIABLE fba-aspect:
    [INFO] 	DAR
    [INFO] Environ GET_VARIABLE fba-hiscores:
    [INFO] 	enabled
    [INFO] Environ GET_VARIABLE fba-samplerate:
    [INFO] 	48000
    [INFO] Environ GET_VARIABLE fba-sample-interpolation:
    [INFO] 	4-point 3rd order
    [INFO] Environ GET_VARIABLE fba-fm-interpolation:
    [INFO] 	4-point 3rd order
    [libretro INFO] [FBA] Archive: hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2u.03 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2u.04 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.05 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.06 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.07 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.08 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.09 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.10 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.13m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.15m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.17m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.19m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.01 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.02 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hs2.11m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [libretro INFO] [FBA] Using ROM with good CRC and name hsf2.key from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
    [INFO] Environ SET_VARIABLES.
    [INFO] Saved core options file to "/home/retro-gaming/.config/retroarch/retroarch-core-options.cfg"
    [INFO] Environ GET_VARIABLE fba-cpu-speed-adjust:
    [INFO] 	100
    [INFO] Environ GET_VARIABLE fba-aspect:
    [INFO] 	DAR
    [INFO] Environ GET_VARIABLE fba-diagnostic-input:
    [INFO] 	None
    [INFO] Environ GET_VARIABLE fba-hiscores:
    [INFO] 	enabled
    [INFO] Environ GET_VARIABLE fba-samplerate:
    [INFO] 	48000
    [INFO] Environ GET_VARIABLE fba-sample-interpolation:
    [INFO] 	4-point 3rd order
    [INFO] Environ GET_VARIABLE fba-fm-interpolation:
    [INFO] 	4-point 3rd order
    [INFO] Environ GET_VARIABLE fba-macro-hsf2-P1_3x_Punch:
    [INFO] 	None
    [INFO] Environ GET_VARIABLE fba-macro-hsf2-P1_3x_Kick:
    [INFO] 	None
    [INFO] Environ GET_VARIABLE fba-macro-hsf2-P2_3x_Punch:
    [INFO] 	None
    [INFO] Environ GET_VARIABLE fba-macro-hsf2-P2_3x_Kick:
    [INFO] 	None
    [INFO] Environ SET_INPUT_DESCRIPTORS:
    [INFO] 	RetroPad, User 1, Button "B (bottom)" => "Weak Kick"
    [INFO] 	RetroPad, User 1, Button "Y (left)" => "Weak Punch"
    [INFO] 	RetroPad, User 1, Button "Select" => "Coin"
    [INFO] 	RetroPad, User 1, Button "Start" => "Start"
    [INFO] 	RetroPad, User 1, Button "D-Pad Up" => "Up"
    [INFO] 	RetroPad, User 1, Button "D-Pad Down" => "Down"
    [INFO] 	RetroPad, User 1, Button "D-Pad Left" => "Left"
    [INFO] 	RetroPad, User 1, Button "D-Pad Right" => "Right"
    [INFO] 	RetroPad, User 1, Button "A (right)" => "Medium Kick"
    [INFO] 	RetroPad, User 1, Button "X (up)" => "Medium Punch"
    [INFO] 	RetroPad, User 1, Button "L" => "Strong Punch"
    [INFO] 	RetroPad, User 1, Button "R" => "Strong Kick"
    [INFO] 	RetroPad, User 2, Button "B (bottom)" => "Weak Kick"
    [INFO] 	RetroPad, User 2, Button "Y (left)" => "Weak Punch"
    [INFO] 	RetroPad, User 2, Button "Select" => "Coin"
    [INFO] 	RetroPad, User 2, Button "Start" => "Start"
    [INFO] 	RetroPad, User 2, Button "D-Pad Up" => "Up"
    [INFO] 	RetroPad, User 2, Button "D-Pad Down" => "Down"
    [INFO] 	RetroPad, User 2, Button "D-Pad Left" => "Left"
    [INFO] 	RetroPad, User 2, Button "D-Pad Right" => "Right"
    [INFO] 	RetroPad, User 2, Button "A (right)" => "Medium Kick"
    [INFO] 	RetroPad, User 2, Button "X (up)" => "Medium Punch"
    [INFO] 	RetroPad, User 2, Button "L" => "Strong Punch"
    [INFO] 	RetroPad, User 2, Button "R" => "Strong Kick"
    [libretro INFO] Initialize DIP switches.
    [INFO] Environ SET_VARIABLES.
    [INFO] Saved core options file to "/home/retro-gaming/.config/retroarch/retroarch-core-options.cfg"
    [libretro INFO] [Cheevos] System RAM set to 0x55e3f19df8f0 65536
    [INFO] Environ SET_ROTATION: 0
    [INFO] Environ SET_PIXEL_FORMAT: RGB565.
    [libretro INFO] Driver hsf2 was successfully started
    [INFO] Skipping SRAM load..
    [INFO] Version of libretro API: 1
    [INFO] Compiled against API: 1
    [libretro INFO] retro_get_system_av_info: base_width: 384, base_height: 224, max_width: 384, max_height: 384, aspect_ratio: (4/3) = 1.333333 (core_aspect_par: 0)
    [INFO] [Audio]: Set audio input rate to: 47994.10 Hz.
    [INFO] [Video]: Timings deviate too much. Will not adjust. (Display = 60.00 Hz, Game = 59.62 Hz)
    [INFO] [Video]: Game FPS > Monitor FPS. Cannot rely on VSync.
    [INFO] [Video]: Video @ 2560x480
    error: XDG_RUNTIME_DIR not set in the environment.
    [ERROR] [Wayland]: Failed to connect to Wayland server.
    [INFO] [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
    [INFO] [GL]: Found GL context: x
    [INFO] [GL]: Detecting screen resolution 2560x240.
    [INFO] [GLX]: Window manager is Openbox.
    [INFO] [XINERAMA]: Xinerama version: 1.1.
    [INFO] [XINERAMA]: Xinerama screens: 1.
    [INFO] [GLX]: Using Xinerama on screen #0.
    [INFO] [GLX]: X = 0, Y = 0, W = 2560, H = 240.
    [INFO] [GLX]: Using windowed fullscreen.
    [INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
    [INFO] [GLX]: glXSwapIntervalEXT(0)
    [INFO] [GL]: Vendor: X.Org, Renderer: AMD CEDAR (DRM 2.50.0 / 4.15.0-32-generic, LLVM 6.0.0).
    [INFO] [GL]: Version: 3.0 Mesa 18.0.5.
    [INFO] [GL]: Using ARB_sync to reduce latency.
    [INFO] [GL]: Using resolution 2560x240
    [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] Resetting shader to defaults ... 
    [INFO] [GL]: Using 4 textures.
    [INFO] [GL]: Loaded 1 program(s).
    [INFO] [GL]: Using GL_RGB565 for texture uploads.
    [INFO] [Joypad]: Found joypad driver: "udev".
    [INFO] [Font]: Using font rendering backend: freetype.
    [INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
    [INFO] [Video]: Found display server: x11
    [INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
    [INFO] [LED]: LED driver = 'null' 0x55e3efbf3320
    [INFO] [MIDI]: Initializing ...
    [INFO] [MIDI]: Input disabled.
    [INFO] [MIDI]: Output disabled.
    [INFO] [MIDI]: Initialized "null" driver.
    [INFO] Environ SET_INPUT_DESCRIPTORS:
    [INFO] 	RetroPad, User 1, Button "B (bottom)" => "Weak Kick"
    [INFO] 	RetroPad, User 1, Button "Y (left)" => "Weak Punch"
    [INFO] 	RetroPad, User 1, Button "Select" => "Coin"
    [INFO] 	RetroPad, User 1, Button "Start" => "Start"
    [INFO] 	RetroPad, User 1, Button "D-Pad Up" => "Up"
    [INFO] 	RetroPad, User 1, Button "D-Pad Down" => "Down"
    [INFO] 	RetroPad, User 1, Button "D-Pad Left" => "Left"
    [INFO] 	RetroPad, User 1, Button "D-Pad Right" => "Right"
    [INFO] 	RetroPad, User 1, Button "A (right)" => "Medium Kick"
    [INFO] 	RetroPad, User 1, Button "X (up)" => "Medium Punch"
    [INFO] 	RetroPad, User 1, Button "L" => "Strong Punch"
    [INFO] 	RetroPad, User 1, Button "R" => "Strong Kick"
    [INFO] 	RetroPad, User 2, Button "B (bottom)" => "Weak Kick"
    [INFO] 	RetroPad, User 2, Button "Y (left)" => "Weak Punch"
    [INFO] 	RetroPad, User 2, Button "Select" => "Coin"
    [INFO] 	RetroPad, User 2, Button "Start" => "Start"
    [INFO] 	RetroPad, User 2, Button "D-Pad Up" => "Up"
    [INFO] 	RetroPad, User 2, Button "D-Pad Down" => "Down"
    [INFO] 	RetroPad, User 2, Button "D-Pad Left" => "Left"
    [INFO] 	RetroPad, User 2, Button "D-Pad Right" => "Right"
    [INFO] 	RetroPad, User 2, Button "A (right)" => "Medium Kick"
    [INFO] 	RetroPad, User 2, Button "X (up)" => "Medium Punch"
    [INFO] 	RetroPad, User 2, Button "L" => "Strong Punch"
    [INFO] 	RetroPad, User 2, Button "R" => "Strong Kick"
    [INFO] Environ SET_INPUT_DESCRIPTORS:
    [INFO] 	RetroPad, User 1, Button "B (bottom)" => "Weak Kick"
    [INFO] 	RetroPad, User 1, Button "Y (left)" => "Weak Punch"
    [INFO] 	RetroPad, User 1, Button "Select" => "Coin"
    [INFO] 	RetroPad, User 1, Button "Start" => "Start"
    [INFO] 	RetroPad, User 1, Button "D-Pad Up" => "Up"
    [INFO] 	RetroPad, User 1, Button "D-Pad Down" => "Down"
    [INFO] 	RetroPad, User 1, Button "D-Pad Left" => "Left"
    [INFO] 	RetroPad, User 1, Button "D-Pad Right" => "Right"
    [INFO] 	RetroPad, User 1, Button "A (right)" => "Medium Kick"
    [INFO] 	RetroPad, User 1, Button "X (up)" => "Medium Punch"
    [INFO] 	RetroPad, User 1, Button "L" => "Strong Punch"
    [INFO] 	RetroPad, User 1, Button "R" => "Strong Kick"
    [INFO] 	RetroPad, User 2, Button "B (bottom)" => "Weak Kick"
    [INFO] 	RetroPad, User 2, Button "Y (left)" => "Weak Punch"
    [INFO] 	RetroPad, User 2, Button "Select" => "Coin"
    [INFO] 	RetroPad, User 2, Button "Start" => "Start"
    [INFO] 	RetroPad, User 2, Button "D-Pad Up" => "Up"
    [INFO] 	RetroPad, User 2, Button "D-Pad Down" => "Down"
    [INFO] 	RetroPad, User 2, Button "D-Pad Left" => "Left"
    [INFO] 	RetroPad, User 2, Button "D-Pad Right" => "Right"
    [INFO] 	RetroPad, User 2, Button "A (right)" => "Medium Kick"
    [INFO] 	RetroPad, User 2, Button "X (up)" => "Medium Punch"
    [INFO] 	RetroPad, User 2, Button "L" => "Strong Punch"
    [INFO] 	RetroPad, User 2, Button "R" => "Strong Kick"
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_history.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_favorites.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_music_history.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_video_history.lpl].
    [INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_image_history.lpl].
    [INFO] [GL]: VSync => off
    [INFO] [GLX]: glXSwapIntervalEXT(0)
    [INFO] [PulseAudio]: Unpausing.
    [INFO] Setting refresh rate to: 60.000 Hz.
    [INFO] Setting refresh rate to: 59.620 Hz.
    X Error of failed request:  BadName (named color or font does not exist)
      Major opcode of failed request:  140 (RANDR)
      Minor opcode of failed request:  16 (RRCreateMode)
      Serial number of failed request:  33
      Current serial number in output stream:  33
    xrandr: cannot find output "DVI0"
    xrandr: cannot find output "DVI0"
    xrandr: cannot find output "DVI1"
    xrandr: cannot find output "DVI1"
    xrandr: cannot find output "DVI2"
    xrandr: cannot find output "DVI2"
    xrandr: cannot find output "DVI-1"
    xrandr: cannot find output "DVI-1"
    xrandr: cannot find output "DVI-2"
    xrandr: cannot find output "DVI-2"
    xrandr: cannot find output "VGA0"
    xrandr: cannot find output "VGA0"
    xrandr: cannot find output "VGA1"
    xrandr: cannot find output "VGA1"
    xrandr: cannot find output "VGA2"
    xrandr: cannot find output "VGA2"
    xrandr: cannot find output "VGA-1"
    xrandr: cannot find output "VGA-1"
    xrandr: cannot find output "VGA-2"
    xrandr: cannot find output "VGA-2"
    sh: 1: xdotool: not found
    sh: 1: xdotool: not found
    sh: 1: xdotool: not found
    sh: 1: xdotool: not found
    [INFO] [PulseAudio]: Unpausing.
    [INFO] [PulseAudio]: Unpausing.
    [INFO] [Config]: Saved new config to "/home/retro-gaming/.config/retroarch/retroarch.cfg".
    [INFO] Unloading game..
    [INFO] [PulseAudio]: Pausing.
    [INFO] Unloading core..
    [INFO] Unloading core symbols..
    [INFO] Saved core options file to "/home/retro-gaming/.config/retroarch/retroarch-core-options.cfg"
    [INFO] [XINERAMA]: Xinerama version: 1.1.
    [INFO] [XINERAMA]: Xinerama screens: 1.
    [INFO] [XINERAMA]: Saved monitor #0.
    [INFO] [Video]: Average monitor Hz: 59.623181 Hz. (30.395 % frame time deviation, based on 2048 last samples).
    [INFO] [Video]: Average monitor Hz: 59.623181 Hz. (30.395 % frame time deviation, based on 2048 last samples).

Here my Retroarch log with CRT Switch On and crt_switch_resolution_super = “0”

[INFO] RetroArch 1.7.3 (Git a6d5931)
[INFO] === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 
Built: Aug 25 2018
[INFO] Version: 1.7.3
[INFO] Git: a6d5931
[INFO] =================================================
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Timings deviate too much. Will not adjust. (Display = 59.62 Hz, Game = 60.00 Hz)
[INFO] [Video]: Game FPS > Monitor FPS. Cannot rely on VSync.
[INFO] [Video]: Video @ 2560x480
error: XDG_RUNTIME_DIR not set in the environment.
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 704x480.
[INFO] [GLX]: Window manager is Openbox.
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [GLX]: Using Xinerama on screen #0.
[INFO] [GLX]: X = 0, Y = 0, W = 704, H = 480.
[INFO] [GLX]: Using windowed fullscreen.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(0)
[INFO] [GL]: Vendor: X.Org, Renderer: AMD CEDAR (DRM 2.50.0 / 4.15.0-32-generic, LLVM 6.0.0).
[INFO] [GL]: Version: 3.0 Mesa 18.0.5.
[INFO] [GL]: Using ARB_sync to reduce latency.
[INFO] [GL]: Using resolution 704x480
[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] Resetting shader to defaults ... 
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[INFO] [Video]: Found display server: x11
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [LED]: LED driver = 'null' 0x55e3efbf3320
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "null" driver.
[INFO] SRAM will not be saved.
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_favorites.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_video_history.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_image_history.lpl].
[INFO] [GL]: VSync => off
[INFO] [GLX]: glXSwapIntervalEXT(0)
[INFO] [PulseAudio]: Unpausing.
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [PulseAudio]: Pausing.
[INFO] Setting refresh rate to: 60.000 Hz.
[INFO] Setting refresh rate to: 60.000 Hz.
xrandr: cannot find output "DVI0"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "DVI1"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "DVI2"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "DVI-1"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "DVI-2"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "VGA0"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "VGA1"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "VGA2"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "VGA-1"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: cannot find output "VGA-2"
xrandr: --delmode requires two arguments
Try 'xrandr --help' for more information.
xrandr: --rmmode requires an argument
Try 'xrandr --help' for more information.
sh: 1: xdotool: not found
sh: 1: xdotool: not found
sh: 1: xdotool: not found
sh: 1: xdotool: not found
[INFO] Using content: /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.zip.
[INFO] arg #0: retroarch
[INFO] arg #1: /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.zip
[INFO] arg #2: -c
[INFO] arg #3: /home/retro-gaming/.config/retroarch/retroarch.cfg
[INFO] arg #4: -L
[INFO] arg #5: /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/cores/fbalpha_libretro.so
[INFO] Unloading game..
[INFO] Unloading core..
[INFO] 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] Set config file to : /home/retro-gaming/.config/retroarch/retroarch.cfg
[INFO] RetroArch 1.7.3 (Git a6d5931)
[INFO] Redirecting save file to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.srm".
[INFO] Redirecting savestate to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.state".
[INFO] === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 
Built: Aug 25 2018
[INFO] Version: 1.7.3
[INFO] Git: a6d5931
[INFO] =================================================
[INFO] Loading dynamic libretro core from: "/home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/cores/fbalpha_libretro.so"
[INFO] [overrides] no core-specific overrides found at /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/configs/FB Alpha/FB Alpha.cfg.
[INFO] [overrides] no content-dir-specific overrides found at /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/configs/FB Alpha/roms.cfg.
[INFO] [overrides] no game-specific overrides found at /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/configs/FB Alpha/hsf2.cfg.
[INFO] Environ SET_SUBSYSTEM_INFO.
[INFO] Special game type: CBS ColecoVision
[INFO]   Ident: cv
[INFO]   ID: 1
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: MSX 1
[INFO]   Ident: msx
[INFO]   ID: 4
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Nec PC-Engine
[INFO]   Ident: pce
[INFO]   ID: 5
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Nec SuperGrafX
[INFO]   Ident: sgx
[INFO]   ID: 7
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Nec TurboGrafx-16
[INFO]   Ident: tg16
[INFO]   ID: 9
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Sega GameGear
[INFO]   Ident: gg
[INFO]   ID: 2
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Sega Master System
[INFO]   Ident: sms
[INFO]   ID: 8
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Sega Megadrive
[INFO]   Ident: md
[INFO]   ID: 3
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Sega SG-1000
[INFO]   Ident: sg1k
[INFO]   ID: 6
[INFO]   Content:
[INFO]     Rom (required)
[INFO] Special game type: Neogeo CD
[INFO]   Ident: neocd
[INFO]   ID: 10
[INFO]   Content:
[INFO]     Iso (required)
[INFO] Remaps: remap directory: /home/retro-gaming/.config/retroarch/config/remaps
[INFO] Remaps: no game-specific remap found at /home/retro-gaming/.config/retroarch/config/remaps/FB Alpha/hsf2.rmp.
[INFO] Remaps: no content-dir-specific remap found at /home/retro-gaming/.config/retroarch/config/remaps/FB Alpha/roms.rmp.
[INFO] Remaps: no core-specific remap found at /home/retro-gaming/.config/retroarch/config/remaps/FB Alpha/FB Alpha.rmp.
[INFO] Redirecting save file to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.srm".
[INFO] Redirecting savestate to "/home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2.state".
[INFO] Environ GET_LOG_INTERFACE.
[INFO] Content loading skipped. Implementation will load it on its own.
[libretro INFO] Setting save dir to /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/
[INFO] Environ SYSTEM_DIRECTORY: "/home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/system".
[libretro INFO] Setting system dir to /home/retro-gaming/Emulation/RetroFE/Emulateurs/retroarch/system
[INFO] Environ SET_CONTROLLER_INFO.
[INFO] Controller port: 1
[INFO]    Classic (ID: 5)
[INFO]    Modern (ID: 517)
[INFO] Controller port: 2
[INFO]    Classic (ID: 5)
[INFO]    Modern (ID: 517)
[INFO] Environ SET_VARIABLES.
[INFO] Environ GET_VARIABLE fba-cpu-speed-adjust:
[INFO] 	100
[INFO] Environ GET_VARIABLE fba-aspect:
[INFO] 	DAR
[INFO] Environ GET_VARIABLE fba-hiscores:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE fba-samplerate:
[INFO] 	48000
[INFO] Environ GET_VARIABLE fba-sample-interpolation:
[INFO] 	4-point 3rd order
[INFO] Environ GET_VARIABLE fba-fm-interpolation:
[INFO] 	4-point 3rd order
[libretro INFO] [FBA] Archive: hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2u.03 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2u.04 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.05 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.06 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.07 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.08 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.09 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.10 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.13m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.15m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.17m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.19m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.01 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.02 from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hs2.11m from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[libretro INFO] [FBA] Using ROM with good CRC and name hsf2.key from archive /home/retro-gaming/Emulation/RetroFE/collections/Capcom-Play-System-II/roms/hsf2
[INFO] Environ SET_VARIABLES.
[INFO] Saved core options file to "/home/retro-gaming/.config/retroarch/retroarch-core-options.cfg"
[INFO] Environ GET_VARIABLE fba-cpu-speed-adjust:
[INFO] 	100
[INFO] Environ GET_VARIABLE fba-aspect:
[INFO] 	DAR
[INFO] Environ GET_VARIABLE fba-diagnostic-input:
[INFO] 	None
[INFO] Environ GET_VARIABLE fba-hiscores:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE fba-samplerate:
[INFO] 	48000
[INFO] Environ GET_VARIABLE fba-sample-interpolation:
[INFO] 	4-point 3rd order
[INFO] Environ GET_VARIABLE fba-fm-interpolation:
[INFO] 	4-point 3rd order
[INFO] Environ GET_VARIABLE fba-macro-hsf2-P1_3x_Punch:
[INFO] 	None
[INFO] Environ GET_VARIABLE fba-macro-hsf2-P1_3x_Kick:
[INFO] 	None
[INFO] Environ GET_VARIABLE fba-macro-hsf2-P2_3x_Punch:
[INFO] 	None
[INFO] Environ GET_VARIABLE fba-macro-hsf2-P2_3x_Kick:
[INFO] 	None
[INFO] Environ SET_INPUT_DESCRIPTORS:
[INFO] 	RetroPad, User 1, Button "B (bottom)" => "Weak Kick"
[INFO] 	RetroPad, User 1, Button "Y (left)" => "Weak Punch"
[INFO] 	RetroPad, User 1, Button "Select" => "Coin"
[INFO] 	RetroPad, User 1, Button "Start" => "Start"
[INFO] 	RetroPad, User 1, Button "D-Pad Up" => "Up"
[INFO] 	RetroPad, User 1, Button "D-Pad Down" => "Down"
[INFO] 	RetroPad, User 1, Button "D-Pad Left" => "Left"
[INFO] 	RetroPad, User 1, Button "D-Pad Right" => "Right"
[INFO] 	RetroPad, User 1, Button "A (right)" => "Medium Kick"
[INFO] 	RetroPad, User 1, Button "X (up)" => "Medium Punch"
[INFO] 	RetroPad, User 1, Button "L" => "Strong Punch"
[INFO] 	RetroPad, User 1, Button "R" => "Strong Kick"
[INFO] 	RetroPad, User 2, Button "B (bottom)" => "Weak Kick"
[INFO] 	RetroPad, User 2, Button "Y (left)" => "Weak Punch"
[INFO] 	RetroPad, User 2, Button "Select" => "Coin"
[INFO] 	RetroPad, User 2, Button "Start" => "Start"
[INFO] 	RetroPad, User 2, Button "D-Pad Up" => "Up"
[INFO] 	RetroPad, User 2, Button "D-Pad Down" => "Down"
[INFO] 	RetroPad, User 2, Button "D-Pad Left" => "Left"
[INFO] 	RetroPad, User 2, Button "D-Pad Right" => "Right"
[INFO] 	RetroPad, User 2, Button "A (right)" => "Medium Kick"
[INFO] 	RetroPad, User 2, Button "X (up)" => "Medium Punch"
[INFO] 	RetroPad, User 2, Button "L" => "Strong Punch"
[INFO] 	RetroPad, User 2, Button "R" => "Strong Kick"
[libretro INFO] Initialize DIP switches.
[INFO] Environ SET_VARIABLES.
[INFO] Saved core options file to "/home/retro-gaming/.config/retroarch/retroarch-core-options.cfg"
[libretro INFO] [Cheevos] System RAM set to 0x55e3f19df8f0 65536
[INFO] Environ SET_ROTATION: 0
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[libretro INFO] Driver hsf2 was successfully started
[INFO] Skipping SRAM load..
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[libretro INFO] retro_get_system_av_info: base_width: 384, base_height: 224, max_width: 384, max_height: 384, aspect_ratio: (4/3) = 1.333333 (core_aspect_par: 0)
[INFO] [Audio]: Set audio input rate to: 47994.10 Hz.
[INFO] [Video]: Timings deviate too much. Will not adjust. (Display = 60.00 Hz, Game = 59.62 Hz)
[INFO] [Video]: Game FPS > Monitor FPS. Cannot rely on VSync.
[INFO] [Video]: Video @ 2560x480
error: XDG_RUNTIME_DIR not set in the environment.
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 2560x240.
[INFO] [GLX]: Window manager is Openbox.
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [GLX]: Using Xinerama on screen #0.
[INFO] [GLX]: X = 0, Y = 0, W = 2560, H = 240.
[INFO] [GLX]: Using windowed fullscreen.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(0)
[INFO] [GL]: Vendor: X.Org, Renderer: AMD CEDAR (DRM 2.50.0 / 4.15.0-32-generic, LLVM 6.0.0).
[INFO] [GL]: Version: 3.0 Mesa 18.0.5.
[INFO] [GL]: Using ARB_sync to reduce latency.
[INFO] [GL]: Using resolution 2560x240
[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] Resetting shader to defaults ... 
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[INFO] [Video]: Found display server: x11
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [LED]: LED driver = 'null' 0x55e3efbf3320
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "null" driver.
[INFO] Environ SET_INPUT_DESCRIPTORS:
[INFO] 	RetroPad, User 1, Button "B (bottom)" => "Weak Kick"
[INFO] 	RetroPad, User 1, Button "Y (left)" => "Weak Punch"
[INFO] 	RetroPad, User 1, Button "Select" => "Coin"
[INFO] 	RetroPad, User 1, Button "Start" => "Start"
[INFO] 	RetroPad, User 1, Button "D-Pad Up" => "Up"
[INFO] 	RetroPad, User 1, Button "D-Pad Down" => "Down"
[INFO] 	RetroPad, User 1, Button "D-Pad Left" => "Left"
[INFO] 	RetroPad, User 1, Button "D-Pad Right" => "Right"
[INFO] 	RetroPad, User 1, Button "A (right)" => "Medium Kick"
[INFO] 	RetroPad, User 1, Button "X (up)" => "Medium Punch"
[INFO] 	RetroPad, User 1, Button "L" => "Strong Punch"
[INFO] 	RetroPad, User 1, Button "R" => "Strong Kick"
[INFO] 	RetroPad, User 2, Button "B (bottom)" => "Weak Kick"
[INFO] 	RetroPad, User 2, Button "Y (left)" => "Weak Punch"
[INFO] 	RetroPad, User 2, Button "Select" => "Coin"
[INFO] 	RetroPad, User 2, Button "Start" => "Start"
[INFO] 	RetroPad, User 2, Button "D-Pad Up" => "Up"
[INFO] 	RetroPad, User 2, Button "D-Pad Down" => "Down"
[INFO] 	RetroPad, User 2, Button "D-Pad Left" => "Left"
[INFO] 	RetroPad, User 2, Button "D-Pad Right" => "Right"
[INFO] 	RetroPad, User 2, Button "A (right)" => "Medium Kick"
[INFO] 	RetroPad, User 2, Button "X (up)" => "Medium Punch"
[INFO] 	RetroPad, User 2, Button "L" => "Strong Punch"
[INFO] 	RetroPad, User 2, Button "R" => "Strong Kick"
[INFO] Environ SET_INPUT_DESCRIPTORS:
[INFO] 	RetroPad, User 1, Button "B (bottom)" => "Weak Kick"
[INFO] 	RetroPad, User 1, Button "Y (left)" => "Weak Punch"
[INFO] 	RetroPad, User 1, Button "Select" => "Coin"
[INFO] 	RetroPad, User 1, Button "Start" => "Start"
[INFO] 	RetroPad, User 1, Button "D-Pad Up" => "Up"
[INFO] 	RetroPad, User 1, Button "D-Pad Down" => "Down"
[INFO] 	RetroPad, User 1, Button "D-Pad Left" => "Left"
[INFO] 	RetroPad, User 1, Button "D-Pad Right" => "Right"
[INFO] 	RetroPad, User 1, Button "A (right)" => "Medium Kick"
[INFO] 	RetroPad, User 1, Button "X (up)" => "Medium Punch"
[INFO] 	RetroPad, User 1, Button "L" => "Strong Punch"
[INFO] 	RetroPad, User 1, Button "R" => "Strong Kick"
[INFO] 	RetroPad, User 2, Button "B (bottom)" => "Weak Kick"
[INFO] 	RetroPad, User 2, Button "Y (left)" => "Weak Punch"
[INFO] 	RetroPad, User 2, Button "Select" => "Coin"
[INFO] 	RetroPad, User 2, Button "Start" => "Start"
[INFO] 	RetroPad, User 2, Button "D-Pad Up" => "Up"
[INFO] 	RetroPad, User 2, Button "D-Pad Down" => "Down"
[INFO] 	RetroPad, User 2, Button "D-Pad Left" => "Left"
[INFO] 	RetroPad, User 2, Button "D-Pad Right" => "Right"
[INFO] 	RetroPad, User 2, Button "A (right)" => "Medium Kick"
[INFO] 	RetroPad, User 2, Button "X (up)" => "Medium Punch"
[INFO] 	RetroPad, User 2, Button "L" => "Strong Punch"
[INFO] 	RetroPad, User 2, Button "R" => "Strong Kick"
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_favorites.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_video_history.lpl].
[INFO] Loading history file: [/home/retro-gaming/.config/retroarch/content_image_history.lpl].
[INFO] [GL]: VSync => off
[INFO] [GLX]: glXSwapIntervalEXT(0)
[INFO] [PulseAudio]: Unpausing.
[INFO] Setting refresh rate to: 60.000 Hz.
[INFO] Setting refresh rate to: 59.620 Hz.
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  33
  Current serial number in output stream:  33
xrandr: cannot find output "DVI0"
xrandr: cannot find output "DVI0"
xrandr: cannot find output "DVI1"
xrandr: cannot find output "DVI1"
xrandr: cannot find output "DVI2"
xrandr: cannot find output "DVI2"
xrandr: cannot find output "DVI-1"
xrandr: cannot find output "DVI-1"
xrandr: cannot find output "DVI-2"
xrandr: cannot find output "DVI-2"
xrandr: cannot find output "VGA0"
xrandr: cannot find output "VGA0"
xrandr: cannot find output "VGA1"
xrandr: cannot find output "VGA1"
xrandr: cannot find output "VGA2"
xrandr: cannot find output "VGA2"
xrandr: cannot find output "VGA-1"
xrandr: cannot find output "VGA-1"
xrandr: cannot find output "VGA-2"
xrandr: cannot find output "VGA-2"
sh: 1: xdotool: not found
sh: 1: xdotool: not found
sh: 1: xdotool: not found
sh: 1: xdotool: not found
[INFO] [PulseAudio]: Unpausing.
[INFO] [PulseAudio]: Unpausing.
[INFO] [Config]: Saved new config to "/home/retro-gaming/.config/retroarch/retroarch.cfg".
[INFO] Unloading game..
[INFO] [PulseAudio]: Pausing.
[INFO] Unloading core..
[INFO] Unloading core symbols..
[INFO] Saved core options file to "/home/retro-gaming/.config/retroarch/retroarch-core-options.cfg"
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [XINERAMA]: Saved monitor #0.
[INFO] [Video]: Average monitor Hz: 59.623181 Hz. (30.395 % frame time deviation, based on 2048 last samples).
[INFO] [Video]: Average monitor Hz: 59.623181 Hz. (30.395 % frame time deviation, based on 2048 last samples).

Here my xrandr script to force 704x480 15khz at startup

#!/bin/bash
xrandr --newmode "704x480" 13.27 704 720 784 848 480 483 489 523 interlace -hsync -vsync
xrandr --addmode VGA-0 704x480
xrandr --output VGA-0 --mode 704x480

Here my xrandr log

Screen 0: minimum 320 x 200, current 704 x 480, maximum 8192 x 8192
HDMI-0 disconnected primary (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 704x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
   704x480       59.84*

I hope you can help me

Thanks

It shouldn’t ever say 100 Hz, which is just your monitor’s maximum. It should always say ~60, which is the native refresh for the content.

It looks like it’s never switching away from the 480i resolution, which is the same behavior I get on my laptop. I believe we’re both missing something (some setup step, perhaps) that will allow the res-switching to happen. Once the res-switching actually works, your scanline problem will solve itself.

@Alphanu Do you have any ideas as to what we might be missing to get the switching to happen?

Well I can say that 100hz processing does smooth out scanlines. Even with 2560 super resolution you get nice scanlines on a old 15hkz CRT without 100hz processing. So firstly, this will be your issue. However, if your screen is not actually switching resolution you have another issue.

I’ve tested this on Arch, ubuntu and fedora. However, fedora did not work correctly for me. Also ubuntu derivatives have different x11 configs which could make things work strangely. LXDE works great.

The only pre request is to have x11 video server. If you setup RetroArch and have it autostart you don’t even need a boot script for resolution change.

@scorpius.milo unfortunately you xrandr log is not accurate. CRTSwitres removes the installed resolutions evertime it sets up a new one. Can you run a game and then tab out of RetroArch to run terminal. This way you should see an installed resolution.

Also what video card are you using? Some are not capable of native resolution.

Finally, if your card does not support native resolution you can try 1920 super resolution instaed. This should make the yellow notification text clearer. I am thinking of adding 1280 as a super resolution as well, this does make the notification text readable.

@hunterk I could img a ready setup drive for people to download for the ones that are having issues. However a start up script to expand the drive space might be needed. I wouldn’t know where to start with that.

That would be great, but yeah, I don’t know how to do the expanding thing, either. I’ll look into it.

Hi,

@hunterk Thanks for your help

@Alphanu I give a try with my DVI port with DVI to VGA adapter with no success

Here my Xrandr with Retroarch running at native resolution

Screen 0: minimum 320 x 200, current 384 x 224, maximum 8192 x 8192
HDMI-0 disconnected primary (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
   384x224_59.62  59.62  
VGA-0 connected 384x224+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
   704x480       59.84  
   384x224_59.62  59.62*

Xrandr with Super Resolution 1920

Screen 0: minimum 320 x 200, current 1920 x 224, maximum 8192 x 8192
HDMI-0 disconnected primary (normal left inverted right x axis y axis)
DVI-0 connected 1920x224+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
   704x480       59.84  
   704x4802      30.00  
   1920x224_59.62  59.62*

At 1920 Super Resolution, I can see a little flicker and jumping screen (very little), never in native or 2560

My graphic card

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430] [1002:68e1]
	Subsystem: ASUSTeK Computer Inc. Caicos [Radeon HD 5450] [1043:3000]
	Kernel driver in use: radeon
	Kernel modules: radeon

It’s a Asus HD5450 PCI Express card on a Motherboard, not a Mobility I don’t know why it said this

I running Retroarch throw Lubuntu 18.04

The notification text is not stable it said 59.4, 59.7 or 59.9 but never stable

Thanks, and sorry for my bad English

Xrandr shows that the resolution has been added and changed to. So resolution wise that’s not a problem.

I have updated my porch algorithm which fixes little issue like you describe. However, it’s not merged yet as I’m waiting for the menu items and config variables to be added @hunterk any news on this yet?

The reason it says mobility is because it is a cut down IC this is because is a built in mobo version. This way it creates less heat and does not need a large heatsink.

I assume the notification numbers are the FPS. From reading though the code tgere is a small delay while detecting the FPS so when a core first boots it does take a small time to update to the correct FPS. @hunterk am I correct here?

Your issue is defiantly the 100hz processing. So unfortunately you’ll need to get a 15kz CRT that does not have it.

My new update will include 31khz native resolution support with nice scanlines. So you could get one of them instead.

I thought that it was not possible with a monitor 100hz

The only thing I do not understand is why when I activate the black frame insertion the scanlines appear.

31khz monitors are very expensive, especially in 27 or 29 inches.

My dream is a 29 inches sony PVM or an arcade monitor but it’s very difficult to find.

I was happy to have found a free Sony Trinitron with only 143 hours of operation.

Finally it less expansive to buy and plug a Frameister or an OSSC on my 1080P TV

Well currently there is a known bug with switching. The cycle to switch different adaptors causes issues with a adaptor that has already been switch. This is the reason for the new options. So it is best to use VGA! <- @hunterk This is another reason for the new menu options.

100hz processing! Now I’m going to be careful what I say here as I don’t want to make statements on something I’m not 100% sure on how it works. However, with my current knowledge with15khz @ 120hz I’m pretty sure I’m close to correct :wink: 100hz processing does add input delay due to the way it functions. It will take two frames and interpolate them to smooth the image. This is the reason for loosing scanlines. When adding black/blank frames Retroarch will use odd or even bob to replace 1 frame with a blank frame. So going back to how 100hz works it will use a full frame and interpolate it with a blank frame, hence having scanlines.

I know CRTs can get expensive. But a friend of mine managed to pick up 2 32inch 15khz Toshiba TVs for £20 each. The picture quality rivals PVMs.

There is one thing you could try. And that would be to disable CRT switch and setup a desktop res of 320x240@100hz. If you need help calculating this for the pixel clock give me a shout. And see if things are better.

I may need to send you a moodded RA with 100hz support for it to work though! This could be something to add as well. Ideally this would on my work smoothly will pal 50hz doubles. So test cores in pal mode. Disable VSNC and enable 1.0x max run speed.

oh yeah, this a good idea. testing it at 60/59.95 hz is a good idea, too, in case it only affects regular content.

Hi, and many thanks for your help

Yes I can try with a 340x240@100 modeline but actually like you said I don’t know calculating the pixel clock for the 100hz

If you can help me, I know there are a lot “modelines calculator” on the web but for 100hz it is difficult for me.

(In the same way the modeline in 704x480 proposed here modeline704x4480, and a little oversized on my TV I have to look for the modified one too)

Yes you can send me a modded RetroArch to give a try with my CRT TV

Thanks a lot

Hi,

I’am unable to get a 320x240@100 modeline to work

I started with a 320x340@60 modeline like that “320x240” 6.791040 320 358 380 432 240 242 245 262 -hsync -vsync

I try to modifiy the pixel clock to get a 320x240@100 “320x240@100” 11.31840 320 358 380 432 240 242 245 262 -hsync -vsync

I have a black screen I don’t think that my TV can receive 100hz input by scart and I have just scart input …

In a vnc viewer I can see this modeline to work, so that numbers are correct ? ( maybe? )

In my opinion it is an unsolved problem

Maybe you can help me

Thanks

In all fairness I was not sure whether it would work. The pixel clock has been calculated correctly. The algorithm is max-height X max-width X refresh. Where did you get the modeline for 320x240@60?

Your TV probably only support 50 -60hz input but has internal proseccing for 100hz. What model TV do you have? Have you looked to see if you can disable it in the service menu?

KV-29CS60B

It’s a Sony KV-29CS60B I can enter in Service Menu but I never see a way to disable it maybe it is possible I don’t know at the moment ( I don’t think so )

For the modelines I use a little soft call Harcade15Khz you can download it here :slight_smile: http://www.hardcade.net/download.php

I’ll look into that model and find out! for now you can try and test this.

“320x240@100” 11.118600 320 336 387 426 240 243 246 261 -hsync -vsync

Also try a combination of +hsync -vsync and so on. Also you have an ATI card so you could use - or + csync instead.

I found that a lot of 15khz genorators tend to have issues. So I came up with my own generator for RetroArch.

Thanks

I’ll watch this modeline tomorrow.

I’ll keep you informed

Hi,

I tried several combinations of your modeline unfortunately without success.

Now I’m sure this TV cannot accept 100hz input.

With your modeline I managed to change the pixel clock I could increase to 63hz maximum (the picture was not good little jumping) at 64hz I have a black screen so in my opinion 100hz input is impossible.

I don’t know why but with a 320x240 @ 60 modeline, crt switch turned-off, I have 60fps with the vsync on or off. I did a test with an another TV before the release of crt switch (a small 14 inches vhs samsung combo) I had only 30fps.

Another thing, I do not know what happened, when I had the 320x240@ 60 modeline activated, I only had a quarter of the screen when I started the game.

Retroarch was fully activated in full screen

I managed with a custom aspect ratio and the menu of retroarch put a resolution of 640x480 with an interlaced shader I saw the scanlines, against the flicker was still there (headache), retroarch crash soon after.

When I restarted it took the resolution of 320x240 and I had to change my aspect ratio to fit the TV screen

I wonder if this TV can accept 480p @ 60hz with 15khz input by scart.

I did not manage to calculate a pixel clock for a 480p @ 60 15khz input modeline.

If it’s possible, could a modified interlaced shader reduce flicker?

What do you mean by “double 50hz pal”

Thanks, and I wish you understand me

Edit:

From a 720x480p modeline

"720x480p" 35.496 720 782 949 1128 480 488 494 525 -hsync -vsync

I have this, maybe it can accept 480P ?