Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems  (Read 3977 times)

0 Members and 1 Guest are viewing this topic.

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
[Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« on: December 08, 2018, 01:50:06 pm »
Hi,

Today i played a little with GroovyArcade 0.204 and a 15" IIyama SVGA crt monitor using the `arcade_31` monitor setting. I'm on linux using a Nvidia card.
Its works well on most systems when unsetting `doublescan`. If i set doublescan, pixels are not square, the resolution seems just wrong.
So, in this configuration, while most of the systems i tried work well, there is geometry issues in some of them. For example:

Genesis (genesis):
Resolution is good (doubled), but mame screen itself does not seems to be doubled.




Super Nintendo (snes):
Width is wrong:




C64 (c64): same as snes:




An exemple of working system (nes):



Some others systems tested with success: lresort (neogeo), punisher, sms, rtype

Here is my mame.ini:

Code: [Select]

#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               0

#
# CORE SEARCH PATH OPTIONS
#
homepath                  .
rompath                   /tmp;/home/share/pkg/mame-roms/mame-roms
hashpath                  hash
samplepath                samples
artpath                   artwork
ctrlrpath                 ctrlr
inipath                   $HOME/.mame;.;ini
fontpath                  .
cheatpath                 cheat
crosshairpath             crosshair
pluginspath               plugins
languagepath              language
swpath                    software

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             $HOME/.mame/cfg
nvram_directory           $HOME/.mame/nvram
input_directory           $HOME/.mame/inp
state_directory           $HOME/.mame/sta
snapshot_directory        $HOME/.mame/snap
diff_directory            $HOME/.mame/diff
comment_directory         $HOME/.mame/comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state                     
autosave                  0
rewind                    0
rewind_capacity           100
playback                 
record                   
record_timecode           0
exit_after_playback       0
mngwrite                 
aviwrite                 
wavwrite                 
snapname                  %g/%i
snapsize                  auto
snapview                  internal
snapbilinear              1
statename                 %g
burnin                    0

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip             0
frameskip                 0
seconds_to_run            0
throttle                  1
syncrefresh               0
autosync                  1
sleep                     1
speed                     1.0
refreshspeed              0

#
# CORE RENDER OPTIONS
#
keepaspect                1
unevenstretch             1
unevenstretchx            0
unevenstretchy            0
autostretchxy             0
intoverscan               0
intscalex                 0
intscaley                 0

#
# CORE ROTATION OPTIONS
#
rotate                    1
ror                       0
rol                       0
autoror                   0
autorol                   0
flipx                     0
flipy                     0

#
# CORE ARTWORK OPTIONS
#
artwork_crop              1
use_backdrops             0
use_overlays              0
use_bezels                0
use_cpanels               0
use_marquees              0
fallback_artwork         
override_artwork         

#
# CORE SCREEN OPTIONS
#
brightness                1.0
contrast                  1.0
gamma                     1.0
pause_brightness          0.65
effect                    none

#
# CORE VECTOR OPTIONS
#
beam_width_min            1.0
beam_width_max            1.0
beam_intensity_weight     0
flicker                   0

#
# CORE SOUND OPTIONS
#
samplerate                48000
samples                   1
volume                    0

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     0
joystick                  1
lightgun                  0
multikeyboard             0
multimouse                0
steadykey                 0
ui_active                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85
natural                   0
joystick_contradictory    0
coin_impulse              0

#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             keyboard
adstick_device            keyboard
pedal_device              keyboard
dial_device               keyboard
trackball_device          keyboard
lightgun_device           keyboard
positional_device         keyboard
mouse_device              mouse

#
# CORE DEBUGGING OPTIONS
#
verbose                   0
log                       0
oslog                     0
debug                     0
update_in_pause           0
debugscript               

#
# CORE COMM OPTIONS
#
comm_localhost            0.0.0.0
comm_localport            15112
comm_remotehost           127.0.0.1
comm_remoteport           15112
comm_framesync            0

#
# CORE MISC OPTIONS
#
drc                       1
drc_use_c                 0
drc_log_uml               0
drc_log_native            0
bios                     
cheat                     0
skip_gameinfo             0
uifont                    default
ui                        cabinet
ramsize                   
confirm_quit              0
ui_mouse                  1
language                  English
nvram_save                1

#
# SCRIPTING OPTIONS
#
autoboot_command         
autoboot_delay            0
autoboot_script           
console                   0
plugins                   1
plugin                   
noplugin                 

#
# HTTP SERVER OPTIONS
#
http                      0
http_port                 8080
http_root                 web

#
# CORE SWITCHRES OPTIONS
#
modeline_generation       1
#monitor                   generic_15
monitor                   arcade_31
orientation               horizontal
connector                 auto
interlace                 0
doublescan                0
super_width               2560
changeres                 1
powerstrip                0
lock_system_modes         1
lock_unsupported_modes    1
refresh_dont_care         0
dotclock_min              0
sync_refresh_tolerance    2.0
frame_delay               0
vsync_offset              0
black_frame_insertion     0
modeline                  auto
ps_timing                 auto
lcd_range                 auto
crt_range0                auto
crt_range1                auto
crt_range2                auto
crt_range3                auto
crt_range4                auto
crt_range5                auto
crt_range6                auto
crt_range7                auto
crt_range8                auto
crt_range9                auto

#
# OSD KEYBOARD MAPPING OPTIONS
#
uimodekey                 SCRLOCK

#
# OSD FONT OPTIONS
#
uifontprovider            auto

#
# OSD OUTPUT OPTIONS
#
output                    auto

#
# OSD INPUT OPTIONS
#
keyboardprovider          auto
mouseprovider             auto
lightgunprovider          auto
joystickprovider          auto

#
# OSD DEBUGGING OPTIONS
#
debugger                  auto
debugger_font             auto
debugger_font_size        0
watchdog                  0

#
# OSD PERFORMANCE OPTIONS
#
numprocessors             auto
bench                     0

#
# OSD VIDEO OPTIONS
#
video                     auto
numscreens                1
window                    0
maximize                  1
waitvsync                 0
monitorprovider           auto

#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen                    auto
aspect                    auto
resolution                auto
view                      auto
screen0                   auto
aspect0                   auto
resolution0               auto
view0                     auto
screen1                   auto
aspect1                   auto
resolution1               auto
view1                     auto
screen2                   auto
aspect2                   auto
resolution2               auto
view2                     auto
screen3                   auto
aspect3                   auto
resolution3               auto
view3                     auto

#
# OSD FULL SCREEN OPTIONS
#
switchres                 1

#
# OSD ACCELERATED VIDEO OPTIONS
#
filter                    0
prescale                  1

#
# OpenGL-SPECIFIC OPTIONS
#
gl_forcepow2texture       0
gl_notexturerect          0
gl_vbo                    1
gl_pbo                    1
gl_glsl                   0
gl_glsl_filter            1
glsl_shader_mame0         none
glsl_shader_mame1         none
glsl_shader_mame2         none
glsl_shader_mame3         none
glsl_shader_mame4         none
glsl_shader_mame5         none
glsl_shader_mame6         none
glsl_shader_mame7         none
glsl_shader_mame8         none
glsl_shader_mame9         none
glsl_shader_screen0       none
glsl_shader_screen1       none
glsl_shader_screen2       none
glsl_shader_screen3       none
glsl_shader_screen4       none
glsl_shader_screen5       none
glsl_shader_screen6       none
glsl_shader_screen7       none
glsl_shader_screen8       none
glsl_shader_screen9       none

#
# OSD SOUND OPTIONS
#
sound                     auto
audio_latency             2.0

#
# PORTAUDIO OPTIONS
#
pa_api                    none
pa_device                 none
pa_latency                0

#
# BGFX POST-PROCESSING OPTIONS
#
bgfx_path                 bgfx
bgfx_backend              auto
bgfx_debug                0
bgfx_screen_chains        default
bgfx_shadow_mask          slot-mask.png
bgfx_lut                 
bgfx_avi_name             auto

#
# SDL PERFORMANCE OPTIONS
#
sdlvideofps               0

#
# SDL VIDEO OPTIONS
#
centerh                   1
centerv                   1
scalemode                 none

#
# SDL FULL SCREEN OPTIONS
#
useallheads               0

#
# SDL KEYBOARD MAPPING
#
keymap                    0
keymap_file               keymap.dat

#
# SDL JOYSTICK MAPPING
#
joy_idx1                  auto
joy_idx2                  auto
joy_idx3                  auto
joy_idx4                  auto
joy_idx5                  auto
joy_idx6                  auto
joy_idx7                  auto
joy_idx8                  auto
sixaxis                   0

#
# SDL MOUSE MAPPING
#
mouse_index1              auto
mouse_index2              auto
mouse_index3              auto
mouse_index4              auto
mouse_index5              auto
mouse_index6              auto
mouse_index7              auto
mouse_index8              auto

#
# SDL KEYBOARD MAPPING
#
keyb_idx1                 auto
keyb_idx2                 auto
keyb_idx3                 auto
keyb_idx4                 auto
keyb_idx5                 auto
keyb_idx6                 auto
keyb_idx7                 auto
keyb_idx8                 auto

#
# SDL LOWLEVEL DRIVER OPTIONS
#
videodriver               auto
renderdriver              auto
audiodriver               auto
gl_lib                    auto

#
# FRONTEND COMMAND OPTIONS
#
dtd                       1


Same results using "nouveau" or proprietary binary drivers.
What could be the problem ? I configured something wrong ?
By the way, what is the purpose of `doublescan` option which is set by default ? The geometry issues does not seems to occurs with it but resolutions are just wrong.
« Last Edit: December 08, 2018, 01:52:16 pm by tiben »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #1 on: December 08, 2018, 01:58:23 pm »
Try setting aspect 4:3 in mame.ini
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #2 on: December 08, 2018, 02:24:16 pm »
Hi Calamity,

Thanks for the help.

aspect 4:3 fixes c64 and snes but not genesis:





Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #3 on: December 08, 2018, 02:52:40 pm »
Insert log.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #4 on: December 08, 2018, 03:01:57 pm »
Logs for "genesis sonic" bellow:

Quote
SwitchRes: v0.017l, Monitor: arcade_31, Orientation: horizontal, Modeline generation: enabled
SwitchRes: Monitor range 31400.00-31500.00,49.50-65.00,0.940,3.770,1.890,0.349,0.064,1.017,0,0,400,512,0,0
SwitchRes: xrandr version 1.6
SwitchRes: Found output connector 'VGA-0'

SwitchRes: Entering switchres_modeline_setup
SwitchRes: v0.017l:[genesis] Calculating best video mode for 256x224@60.000000 orientation: normal

SwitchRes: (   1)x(   1)_(60=60.000000Hz)
   rng(0):  512 x 448_60.000000p 31.440000 [integ] scale(2, 2, 1) diff(0.00, 0.00, 0.0000) ratio(2.000, 2.000)

SwitchRes: [genesis] (1) horizontal (256x224@60.000000)->(512x448@60.000000)
   rng(0):  512 x 448_60.000000p 31.440000 [integ] scale(2, 2, 1) diff(0.00, 0.00, 0.0000) ratio(2.000, 2.000)
SwitchRes: Modeline "512x448_60 31.440000KHz 60.000000Hz" 20.624640 512 536 616 656 448 475 477 524   -hsync -vsync
Switchres: CRTC 0: mode 0x27f, 1280x1024+0+0.
Switchres: xrandr mode (GM-512x448_60.000000) (0x32e) 20.624640MHz
SwitchRes: Setting option -rotate
SwitchRes: Setting option -noror
SwitchRes: Setting option -autoror
SwitchRes: Setting option -norol
SwitchRes: Setting option -noautorol
SwitchRes: Setting option -keepaspect
SwitchRes: Setting option -nounevenstretch
SwitchRes: Setting option -nounevenstretchx
SwitchRes: Setting option -noblack_frame_insertion
SwitchRes: Setting option -syncrefresh
SwitchRes: Setting option -waitvsync
SwitchRes: Setting option -nofilter
Available videodrivers: x11 wayland KMSDRM dummy
Current Videodriver: x11
   Display #0
      Renderdrivers:
             opengl (0x0)
          opengles2 (0x0)
           software (0x0)
Available audio drivers:
   pulseaudio         
   alsa               
   dsp                 
   jack               
   disk               
   dummy               
Build version:      0.204 (mame0204-dirty)
Build architecure: 
Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1
Build defines 1:    LSB_FIRST=1 PTR64=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=2009 USE_OPENGL=1
Compiler defines A: __GNUC__=8 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="8.2.1 20181105 (Red Hat 8.2.1-5)"
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
Enter init_monitors
Adding monitor screen0 (512 x 448)
Leave init_monitors
Enter sdlwindow_init
Using SDL multi-window soft driver (SDL 2.0+)

Hints:
   SDL_FRAMEBUFFER_ACCELERATION             (null)
   SDL_RENDER_DRIVER                        (null)
   SDL_RENDER_OPENGL_SHADERS                (null)
   SDL_RENDER_SCALE_QUALITY                 (null)
   SDL_RENDER_VSYNC                         (null)
   SDL_VIDEO_X11_XVIDMODE                   (null)
   SDL_VIDEO_X11_XINERAMA                   (null)
   SDL_VIDEO_X11_XRANDR                     (null)
   SDL_GRAB_KEYBOARD                        (null)
   SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS         (null)
   SDL_IOS_IDLE_TIMER_DISABLED              (null)
   SDL_IOS_ORIENTATIONS                     (null)
   SDL_XINPUT_ENABLED                       (null)
   SDL_GAMECONTROLLERCONFIG                 (null)
   SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS     (null)
   SDL_ALLOW_TOPMOST                        (null)
   SDL_TIMER_RESOLUTION                     (null)
   SDL_RENDER_DIRECT3D_THREADSAFE           (null)
   SDL_VIDEO_ALLOW_SCREENSAVER              (null)
   SDL_ACCELEROMETER_AS_JOYSTICK            (null)
   SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK   (null)
   SDL_VIDEO_WIN_D3DCOMPILER                (null)
   SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT      (null)
   SDL_VIDEO_MAC_FULLSCREEN_SPACES          (null)
   SDL_MOUSE_RELATIVE_MODE_WARP             (null)
   SDL_RENDER_DIRECT3D11_DEBUG              (null)
   SDL_VIDEO_HIGHDPI_DISABLED               (null)
   SDL_WINRT_PRIVACY_POLICY_URL             (null)
   SDL_WINRT_PRIVACY_POLICY_LABEL           (null)
   SDL_WINRT_HANDLE_BACK_BUTTON             (null)
Leave sdlwindow_init
Enter sdl_info::create
window: using renderer opengl
renderer: flag SDL_RENDERER_PRESENTVSYNC
renderer: flag SDL_RENDERER_ACCELERATED
Leave renderer_sdl2::create
Audio: Start initialization
Audio: Driver is pulseaudio
Audio: frequency: 48000, channels: 2, samples: 256
sdl_create_buffers: creating stream buffer of 25600 bytes
Audio: End initialization
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied
Keyboard: Start initialization
Input: Adding keyboard #0: System keyboard (device id: System keyboard)
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding mouse #0: System mouse (device id: System mouse)
Mouse: Registered System mouse
Mouse: End initialization
Joystick: Start initialization
Joystick: End initialization
Searching font Liberation Sans in -. path/s
Matching font: /usr/share/fonts/liberation/LiberationSans-Regular.ttf
Region ':maincpu' created
Region ':soundcpu' created
Region ':mdslot:rom' created
unzip: opened archive file /home/share/pkg/mame-roms/mame-roms/genesis.zip
unzip: found /home/share/pkg/mame-roms/mame-roms/genesis.zip ECD
unzip: /home/share/pkg/mame-roms/mame-roms/genesis.zip has no ZIP64 ECD locator
unzip: read /home/share/pkg/mame-roms/mame-roms/genesis.zip central directory
unzip: closing archive file /home/share/pkg/mame-roms/mame-roms/genesis.zip and sending to cache
unzip: opened archive file /tmp/megadriv/sonic.zip
unzip: found /tmp/megadriv/sonic.zip ECD
unzip: /tmp/megadriv/sonic.zip has no ZIP64 ECD locator
unzip: read /tmp/megadriv/sonic.zip central directory
unzip: closing archive file /tmp/megadriv/sonic.zip and sending to cache
Optional memory region ':tmss' not found
Optional device ':segacd' not found
Optional device ':sega32x' not found
Optional device ':genesis_snd_z80:finder_dummy_tag' not found
Optional device ':genesis_snd_z80:finder_dummy_tag' not found
Optional device ':genesis_snd_z80:finder_dummy_tag' not found
Optional device ':gen_vdp:finder_dummy_tag' not found
Optional device ':gen_vdp:finder_dummy_tag' not found
Optional device ':gen_vdp:finder_dummy_tag' not found
Optional device ':gen_vdp:finder_dummy_tag' not found
Optional device ':gen_vdp:finder_dummy_tag' not found
Optional device ':gen_vdp:finder_dummy_tag' not found
Optional memory region ':gen_vdp:palette:finder_dummy_tag' not found
Optional device ':gen_vdp:snsnd:finder_dummy_tag' not found
Optional device ':megadriv:finder_dummy_tag' not found
Optional device ':megadriv:finder_dummy_tag' not found
Optional device ':megadriv:finder_dummy_tag' not found
Optional device ':ymsnd:finder_dummy_tag' not found
Starting Genesis (USA, NTSC) ':'
  (missing dependencies; rescheduling)
Starting Motorola MC68000 ':maincpu'
Starting Zilog Z80 ':genesis_snd_z80'
Starting Timer ':md_scan_timer'
Starting Sega 315-5313 Megadrive VDP ':gen_vdp'
  (missing dependencies; rescheduling)
Starting palette ':gen_vdp:palette'
Starting Sega VDP PSG ':gen_vdp:snsnd'
Starting Video Screen ':megadriv'
Starting Speaker ':lspeaker'
  (missing dependencies; rescheduling)
Starting Speaker ':rspeaker'
  (missing dependencies; rescheduling)
Starting YM2612 OPN2 ':ymsnd'
Starting Mega Drive Cartridge Slot ':mdslot'
Starting MD Standard cart ':mdslot:rom'
Starting Software List ':cart_list'
Starting Genesis (USA, NTSC) ':'
  (missing dependencies; rescheduling)
Starting Sega 315-5313 Megadrive VDP ':gen_vdp'
Starting Speaker ':lspeaker'
Starting Speaker ':rspeaker'
Starting Genesis (USA, NTSC) ':'
Region ':mdslot:cart:rom' created
Attempting to parse: default.cfg
Attempting to parse: genesis.cfg
Average speed: 96.39% (4 seconds)
sdl_kill: closing audio
Sound buffer: overflows=0 underflows=2
Enter sdlwindow_exit
Leave sdlwindow_exit
SwitchRes: xrandr original video mode restored.
Switchres: xrandr error in XRRDestroyMode


Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #5 on: December 08, 2018, 04:39:15 pm »
Could you check if there's any genesis.ini file available for GM that might be getting in the middle?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #6 on: December 08, 2018, 05:17:09 pm »
No genesis.ini file anywere. I carefully checked, removed any other files but mame.ini in my ~/.mame directory. I changed inipath to be "$HOME/.mame" only. Issue remains.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #7 on: December 10, 2018, 01:02:00 pm »
The scale is properly calculated as it's shown in the log:

rng(0):  512 x 448_60.000000p 31.440000 [integ] scale(2, 2, 1)

So it's either some random .ini getting in the middle or some weird problem in sdl. Just to make sure, run groovymame from command line with the option -aspect 4:3. This will override any ini contents.

If everything else fails, you have the pair of options intscalex & intescaley, that you can force either from command line or inside an ini file.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #8 on: December 10, 2018, 03:29:17 pm »
Using `-aspect 4:3` from command line does not fixes the issues (the same as in mame.ini)

If i understand the purpose of intscale(x|y) option correctly, i tried using `intscalex 2`. The screen seems now a little too wide, picture is cropped (noticeable by text in top left):



Interestingly i found the game Contra to have the "Konami logo sequence" correctly sized (test made using -aspect 4:3 only):





It seems the megadrive supports 2 or 3 resolutions. Could this be a resolution switch issue ?
The monitor does not seems to change resolution in game (changeres is set to 1)





tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #9 on: December 10, 2018, 03:57:39 pm »
According to Wikipedia, The genesis has two resolutions: 320x224 and 256x224.

Forcing a resolution of 640 442 (double of 320x224) now give correct picture for sonic and contra menu/in-game.

Code: [Select]
[crt@localhost ~]$ gtf 640 448 60

  # 640x448 @ 60.00 Hz (GTF) hsync: 27.84 kHz; pclk: 22.27 MHz
  Modeline "640x448_60.00"  22.27  640 656 720 800  448 449 452 464  -HSync +Vsync


and using:

Code: [Select]
modeline_generation     1
modeline                22.27  640 656 720 800  448 449 452 464  -HSync +Vsync

On the other hand Konami Logo sequence seems to be at 256 224, the screen as correct aspect but pixels are not good.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #10 on: December 10, 2018, 04:08:05 pm »
Yes, now that you mention that, it's clearly an issue with in-game mode switching not working. However, your log doesn't even show a mode change during game, but maybe it's because you exited too early to catch the change. Could you confirm this by a running a longer log? I want to check whether it's sdl not being able to switch modes (I don't remember what was the current state of this as things tend to break on Linux every few months) or it's actually Swichres not catching the mode change.

In either case, you may bypass the issue by using super resolutions (set -resolution 2560x0)
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #11 on: December 10, 2018, 04:24:26 pm »
Attached to this post are logs of a 5/10min run of contra

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #12 on: December 10, 2018, 04:39:00 pm »
-resolution 2560x0 gives the following resutlts:




Maybe a limitation of my monitor ?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #13 on: December 10, 2018, 04:40:29 pm »
The mode switch is certainly not catched, for whatever reason. I'll need to check this. God knows how long this has been broken.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #14 on: December 10, 2018, 04:42:46 pm »
-resolution 2560x0 gives the following resutlts:

?? What resolution is it using?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #15 on: December 10, 2018, 04:51:08 pm »
About 2056x0 resolution:


About resolution switch,  maybe the mame genesis driver is broken ? I can test another driver (arcade game or other) which has resolution switch if you know one..

Thank you for your help Calamity.

**EDIT**: Maybe the strange 2056x0 ratio is a bug in nvidia binary drivers. I'll try with nouveau. However it has nothing to do with initial bug as i tried with both drivers with same results.
« Last Edit: December 10, 2018, 04:53:21 pm by tiben »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #16 on: December 10, 2018, 05:01:29 pm »
About 2056x0 resolution:

I don't understand why it picks 2560x224, while in theory you're using the arcade_31 preset. It should be scaling the vertical by 2. I'd need to see a log to figure out what it's doing.

Quote
About resolution switch,  maybe the mame genesis driver is broken ? I can test another driver (arcade game or other) which has resolution switch if you know one..

Genesis driver is fine. It's a bug with the sdl build. Anyway the last log you posted was from Konami, not Genesis.

Quote
**EDIT**: Maybe the strange 2056x0 ratio is a bug in nvidia binary drivers. I'll try with nouveau. However it has nothing to do with initial bug as i tried with both drivers with same results.

No, it has nothing to do with that.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #17 on: December 10, 2018, 05:21:10 pm »
command line:

./mame64 -resolution 2560x0 genesis contra &> /tmp/groovymame-genesis-contra.txt

Logs are attached.

Note: -aspect is set to 4:3. Here are the result when set to auto:


(logs are attached too)

Quote
Genesis driver is fine. It's a bug with the sdl build. Anyway the last log you posted was from Konami, not Genesis.

To avoid confusion, it is the Genesis (US megadrive) game "contra" (which is a Konami game).

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #18 on: December 10, 2018, 05:32:43 pm »
-aspect 4:3 is compulsory on GA due to how the desktop is configured (we'd need to set by default in the cd), so don't touch that.

I'm seeing an issue with super resolutions on Linux & 31 kHz (one case I had never tested).

By now, I believe using -resolution 2560x480 should fix it.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #19 on: December 11, 2018, 01:25:08 pm »
Quote
By now, I believe using -resolution 2560x480 should fix it.

It is far too slow to be playable but the screen resolution is OK. My nvidia card is a PCI-e 1x, i believe this resolution is simply too high for my system.

Anyway, GM works pretty well for most of the Mame drivers i use so i'm happy with that.

By the way i can run tests to debug "in-game resolution switch" and "2560x0 resolution" issues above in Linux if it could help. Let me know.

Again thanks for your help.


Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #20 on: December 11, 2018, 01:57:05 pm »
Yeah, I'll let you know when I have a fix. Two bugs found in a thread, not bad  :D
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

tiben

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:September 17, 2019, 12:54:34 pm
  • I want to build my own arcade controls!
Re: [Linux][SVGA 15" CRT monitor] - geometry issues on some systems
« Reply #21 on: December 11, 2018, 02:47:13 pm »
haha. Where do i enter my name in the hall of fame ?   ;D